/* Estructura compartida por las plantillas individuales de servicio — Diseño estilizado y premium */
.sh-service-page {
    --service-accent: var(--hg-gold);
    padding: 16px 0 56px;
    background: var(--hg-bg);
}
.sh-service-roofs { --service-accent: #38bdf8; }
.sh-service-doors { --service-accent: #d6a96c; }
.sh-service-interiors { --service-accent: #7dd3a7; }
.sh-service-facades { --service-accent: var(--hg-gold); }
.sh-service-craft { --service-accent: #c4a7e7; }
.sh-service-restoration { --service-accent: #e7a96b; }

.sh-service-page .sh-breadcrumbs-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--hg-muted);
    font-size: 0.84rem;
}
.sh-service-page .sh-breadcrumbs-bar a {
    color: var(--hg-navy);
    font-weight: 750;
    transition: color 0.2s ease;
}
.sh-service-page .sh-breadcrumbs-bar a:hover {
    color: var(--hg-gold-dark);
}
.sh-service-page .sh-breadcrumbs-bar > span:not(:last-child) {
    color: #94a3b8;
}
.sh-service-page .sh-breadcrumbs-bar > span:last-child {
    color: #64748b;
    font-weight: 500;
}

/* HERO COMPACTO Y PREMIUM */
.sh-service-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    min-height: 320px;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 3px solid var(--service-accent);
    border-radius: var(--hg-radius-lg);
    background: linear-gradient(135deg, #04122d 0%, #071d45 55%, #0c2b80 100%);
    box-shadow: 0 10px 30px rgba(7, 29, 69, 0.12);
}

.sh-service-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
}

.sh-service-kicker,
.sh-service-content-heading > span,
.sh-service-detail-cta span,
.sh-service-editorial-grid span,
.sh-service-visual-copy > span,
.sh-service-benefit-panel span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--service-accent);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sh-service-detail-copy h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: var(--hg-font-sans);
    font-weight: 850;
    font-size: clamp(1.6rem, 2.7vw, 2.3rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.sh-service-detail-copy p {
    max-width: 580px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 1.58;
}

.sh-service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

/* BOTONES */
.sh-service-page .sh-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border-radius: var(--hg-radius-full);
    background: linear-gradient(135deg, #f2b604 0%, #e5aa00 100%);
    color: var(--hg-navy);
    font-family: var(--hg-font-sans);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(242, 182, 4, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.sh-service-page .sh-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(242, 182, 4, 0.48);
    background: linear-gradient(135deg, #ffc414 0%, #f2b604 100%);
    color: var(--hg-navy);
}

.sh-service-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--hg-radius-full);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-weight: 750;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sh-service-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
}

.sh-service-detail-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 20px 0;
    overflow: hidden;
}

.sh-service-detail-media img {
    width: 100%;
    height: 100%;
    max-height: 330px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(4, 18, 45, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-service-detail-media > span {
    position: absolute;
    right: -8px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    transform: rotate(-6deg);
    pointer-events: none;
}

/* BLOQUE DE BENEFICIOS / HIGHLIGHTS */
.sh-service-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.sh-service-benefits article {
    padding: 20px 22px;
    border: 1px solid var(--hg-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(7, 29, 69, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sh-service-benefits article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 29, 69, 0.07);
}

.sh-service-benefits strong {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--service-accent);
    font-size: 0.9rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.sh-service-benefits h2 {
    margin: 0 0 6px;
    color: var(--hg-navy);
    font: 800 1.02rem/1.22 var(--hg-font-sans);
}

.sh-service-benefits p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.5;
}

/* TARJETA PRINCIPAL DE CONTENIDO */
.sh-service-content-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
    gap: 36px;
    margin-top: 30px;
    padding: 30px 34px;
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(7, 29, 69, 0.03);
}

.sh-service-content-heading h2 {
    margin: 0;
    color: var(--hg-navy);
    font: 850 clamp(1.35rem, 2.2vw, 1.85rem)/1.18 var(--hg-font-sans);
    letter-spacing: -0.02em;
}

.sh-service-content-heading > p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.sh-service-entry {
    min-width: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.68;
}

.sh-service-entry > :first-child { margin-top: 0; }
.sh-service-entry > :last-child { margin-bottom: 0; }

.sh-service-entry p {
    margin: 0 0 14px;
}

.sh-service-entry h2,
.sh-service-entry h3 {
    margin: 22px 0 8px;
    color: var(--hg-navy);
    font-weight: 800;
    font-size: 1.18rem;
    line-height: 1.25;
}

.sh-service-entry a {
    color: var(--hg-blue);
    font-weight: 750;
}

.sh-service-entry img {
    height: auto;
    border-radius: 12px;
    margin: 14px 0;
}

/* CARACTERÍSTICA VISUAL EQUILIBRADA */
.sh-service-visual-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
    min-height: 350px;
    max-height: 370px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid rgba(7, 29, 69, 0.08);
    border-radius: 16px;
    background: var(--hg-navy);
    box-shadow: 0 8px 24px rgba(7, 29, 69, 0.08);
}

.sh-service-visual-media {
    position: relative;
    height: 100%;
    min-height: 350px;
    max-height: 370px;
    margin: 0;
    overflow: hidden;
}

.sh-service-visual-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.sh-service-visual-media figcaption {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(4, 18, 45, 0.85);
    backdrop-filter: blur(4px);
    color: #e2e8f0;
    font-size: 0.74rem;
    line-height: 1.35;
}

.sh-service-visual-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 34px;
    height: 100%;
}

.sh-service-visual-copy h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font: 850 clamp(1.25rem, 1.9vw, 1.55rem)/1.18 var(--hg-font-sans);
    letter-spacing: -0.02em;
}

.sh-service-visual-copy p {
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.52;
}

.sh-service-visual-copy ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-service-visual-copy li {
    position: relative;
    padding-left: 18px;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.45;
}

.sh-service-visual-copy li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--service-accent);
    font-weight: 900;
}

.sh-service-visual-reverse .sh-service-visual-media { grid-column: 2; }
.sh-service-visual-reverse .sh-service-visual-copy { grid-column: 1; grid-row: 1; }

/* GRILLA EDITORIAL DINÁMICA */
.sh-service-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sh-service-editorial-grid article {
    padding: 28px 32px;
    border: 1px solid var(--hg-border);
    border-top: 3.5px solid var(--service-accent);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(7, 29, 69, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sh-service-editorial-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(7, 29, 69, 0.09);
}

.sh-service-editorial-grid span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--service-accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sh-service-editorial-grid h2 {
    margin: 0 0 12px;
    color: var(--hg-navy);
    font: 850 1.25rem/1.2 var(--hg-font-sans);
    letter-spacing: -0.015em;
}

.sh-service-editorial-grid p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.62;
    margin: 0 0 10px;
}

.sh-service-editorial-grid p:last-child {
    margin-bottom: 0;
}

/* SECCIÓN DE TIPOS (DIAGNÓSTICO ESPECÍFICO) CON RELIEVE Y DINAMISMO */
.sh-service-types {
    margin-top: 30px;
    padding: 32px 36px;
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(7, 29, 69, 0.04);
}

.sh-service-type-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.sh-service-type-list-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-service-type-list > div {
    padding: 22px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(7, 29, 69, 0.08);
    border-left: 3.5px solid var(--service-accent);
    box-shadow: 0 4px 14px rgba(7, 29, 69, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-left-color 0.25s ease;
}

.sh-service-type-list > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(7, 29, 69, 0.08);
    border-left-color: var(--hg-navy);
}

.sh-service-type-list strong {
    display: block;
    color: var(--hg-navy);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sh-service-type-list p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* CLAVES / KEY GRID */
.sh-service-keys {
    margin-top: 30px;
    padding: 32px 36px;
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(7, 29, 69, 0.04);
}

.sh-service-key-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.sh-service-key-grid article {
    grid-column: span 2;
    padding: 20px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(7, 29, 69, 0.07);
    border-top: 3px solid var(--service-accent);
    box-shadow: 0 4px 14px rgba(7, 29, 69, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sh-service-key-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(7, 29, 69, 0.07);
}

.sh-service-key-grid article:nth-last-child(-n+2) {
    grid-column: span 3;
}

.sh-service-key-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--service-accent);
    font-size: 0.85rem;
    font-weight: 850;
}

.sh-service-key-grid h3 {
    margin: 0 0 6px;
    color: var(--hg-navy);
    font-size: 0.95rem;
    font-weight: 800;
}

.sh-service-key-grid p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.48;
}

/* PROCESO DETALLADO INTERACTIVO */
.sh-service-process-detail {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 30px;
    padding: 34px 38px;
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(7, 29, 69, 0.04);
}

.sh-service-process-detail ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-service-process-detail li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 12px;
    border-radius: 12px;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sh-service-process-detail li:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.sh-service-process-detail li:last-child {
    border-bottom: 0;
    padding-bottom: 8px;
}

.sh-service-process-detail li:first-child {
    padding-top: 8px;
}

.sh-service-process-detail li > strong {
    display: flex;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--service-accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    border: 1.5px solid var(--service-accent);
    margin-top: 2px;
}

.sh-service-process-detail li > div {
    flex: 1;
    min-width: 0;
}

.sh-service-process-detail h3 {
    margin: 0 0 4px;
    color: var(--hg-navy);
    font-size: 1rem;
    font-weight: 750;
}

.sh-service-process-detail p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.52;
}

/* PANEL DE VENTAJAS CONTRASTADO Y ELEGANTE */
.sh-service-benefit-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
    gap: 36px;
    margin-top: 30px;
    padding: 32px 38px;
    border-radius: 20px;
    background: linear-gradient(135deg, #071d45 0%, #0c2b80 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(7, 29, 69, 0.12);
}

.sh-service-benefit-panel h2 {
    margin: 0;
    color: #ffffff;
    font: 850 1.4rem/1.18 var(--hg-font-sans);
    letter-spacing: -0.02em;
}

.sh-service-benefit-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-service-benefit-panel li {
    position: relative;
    padding-left: 24px;
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.sh-service-benefit-panel li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hg-gold);
    font-size: 1.05rem;
    font-weight: 900;
}

/* BANNER CTA INFERIOR */
.sh-service-detail-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 30px;
    padding: 28px 34px;
    border-radius: 20px;
    background: linear-gradient(135deg, #04122d 0%, #071d45 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(7, 29, 69, 0.12);
}

.sh-service-detail-cta h2 {
    margin: 0;
    color: #ffffff;
    font: 850 clamp(1.3rem, 2.2vw, 1.7rem)/1.15 var(--hg-font-sans);
    letter-spacing: -0.02em;
}

.sh-service-detail-cta p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.sh-service-detail-cta .sh-btn-gold {
    flex: 0 0 auto;
}

/* MEDIA QUERIES RESPONSIVAS */
@media (max-width: 900px) {
    .sh-service-detail-hero {
        grid-template-columns: 1fr;
    }
    .sh-service-detail-media {
        min-height: 240px;
        padding: 20px 20px 0 20px;
        grid-row: 1;
    }
    .sh-service-detail-media img {
        max-height: 260px;
    }
    .sh-service-detail-copy {
        padding: 24px 22px 28px;
    }
    .sh-service-benefits {
        grid-template-columns: 1fr;
    }
    .sh-service-content-card,
    .sh-service-process-detail,
    .sh-service-benefit-panel,
    .sh-service-visual-feature {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sh-service-visual-feature {
        max-height: none;
        gap: 0;
    }
    .sh-service-visual-media,
    .sh-service-visual-reverse .sh-service-visual-media {
        height: 220px;
        max-height: 220px;
        grid-column: 1;
    }
    .sh-service-visual-copy {
        height: auto;
        padding: 22px 20px;
    }
    .sh-service-visual-copy ul {
        grid-template-columns: 1fr;
    }
    .sh-service-visual-reverse .sh-service-visual-copy {
        grid-column: 1;
        grid-row: auto;
    }
    .sh-service-type-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sh-service-key-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sh-service-key-grid article,
    .sh-service-key-grid article:nth-last-child(-n+2) {
        grid-column: auto;
    }
    .sh-service-detail-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .sh-service-page {
        padding: 12px 0 44px;
    }
    .sh-service-detail-copy {
        padding: 20px 18px 24px;
    }
    .sh-service-detail-copy h1,
    .sh-service-entry h2,
    .sh-service-entry h3 {
        overflow-wrap: anywhere;
    }
    .sh-service-actions > a {
        width: 100%;
        justify-content: center;
    }
    .sh-service-detail-media,
    .sh-service-visual-media {
        min-height: 180px;
        max-height: 200px;
    }
    .sh-service-benefits article,
    .sh-service-content-card,
    .sh-service-editorial-grid article,
    .sh-service-types,
    .sh-service-process-detail,
    .sh-service-benefit-panel,
    .sh-service-keys,
    .sh-service-visual-copy,
    .sh-service-detail-cta {
        min-width: 0;
        padding: 20px 18px;
    }
    .sh-service-editorial-grid,
    .sh-service-type-list,
    .sh-service-benefit-panel ul,
    .sh-service-key-grid {
        grid-template-columns: 1fr;
    }
    .sh-service-process-detail li {
        gap: 14px;
        padding: 12px 6px;
    }
}
