/* ================================================================
   STYLES.CSS — Estilos Globales Complementarios (Deferred)
   ================================================================ */

/* ---- NAV MAIN Y DROPDOWN ---- */
.nav-main {
    display: none;
}

/* CTA del menú: solo visible en móvil/tablet */
.nav-cta-mobile {
    display: none;
}

/* Reset visual del trigger <button> (homepage) para igualar a los <a> */
.nav-dropdown-toggle {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-main {
        display: block;
        margin: 0 auto;
    }

    .nav-main ul {
        display: flex;
        gap: 28px;
        align-items: center;
        list-style: none;
    }

    .nav-main a,
    .nav-main .nav-dropdown-toggle {
        color: var(--color-bg-dark);
        font-weight: 600;
        font-size: 0.95rem;
        position: relative;
        padding: 5px 0;
    }

    .nav-main a:hover,
    .nav-main a.nav-active,
    .nav-main .nav-dropdown-toggle:hover {
        color: var(--color-primary);
    }

    .has-dropdown {
        position: relative;
    }

    /* Chevron indicator */
    .has-dropdown > a::after,
    .has-dropdown > .nav-dropdown-toggle::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        margin-left: 5px;
        vertical-align: middle;
        transition: transform 0.2s;
    }

    .has-dropdown:hover > a::after,
    .has-dropdown:hover > .nav-dropdown-toggle::after {
        transform: rotate(-180deg);
    }

    .dropdown {
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        background: var(--color-surface);
        min-width: 200px;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.05);
        padding: 6px 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        z-index: 999;
    }

    /* Puente invisible para evitar perder hover */
    .dropdown::before {
        content: '';
        position: absolute;
        top: -18px;
        left: 0;
        right: 0;
        height: 18px;
    }

    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown a {
        padding: 6px 20px;
        display: block;
        color: var(--color-text);
        font-weight: 500;
        font-size: 0.88rem;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 4px;
        margin: 0 6px;
    }

    .dropdown a:hover {
        background: rgba(46, 107, 176, 0.07);
        color: var(--color-primary);
    }

    /* Group label inside dropdown */
    .dropdown-group-label {
        display: block;
        padding: 6px 20px 2px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-primary);
        pointer-events: none;
        margin-top: 2px;
    }

    .dropdown-divider {
        height: 1px;
        background: rgba(0,0,0,0.07);
        margin: 4px 12px;
    }
}


/* HEADER ACTIONS */
.header-phone {
    display: none;
}

@media (min-width: 768px) {
    .header-phone {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--color-bg-dark);
        font-weight: 700;
        font-size: 1.1rem;
        background: var(--color-bg);
        padding: 8px 16px;
        border-radius: 50px;
    }

    .header-phone svg {
        width: 18px;
        height: 18px;
        fill: var(--color-primary);
    }

    .header-phone:hover {
        background: var(--color-primary);
        color: white;
    }

    .header-phone:hover svg {
        fill: white;
    }
}

/* ---- MOBILE NAVIGATION IMPROVEMENTS ---- */
@media (max-width: 1023px) {
    /* Anclado al borde inferior del header (sticky) → sin desfases con la top-bar */
    .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 12px 16px 28px;
        min-height: calc(100dvh - 80px);
        max-height: calc(100dvh - 65px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        z-index: 800;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-main.is-open {
        display: block;
    }

    /* CTA de captación dentro del menú móvil (no hay CTA en header <1024px) */
    .nav-cta-mobile {
        display: block;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .nav-cta-mobile .btn {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.05rem;
        padding: 14px 18px;
    }

    .nav-main > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        list-style: none;
    }

    /* Links simples (sin dropdown) */
    .nav-main > ul > li:not(.has-dropdown) > a {
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--color-bg-dark);
        padding: 12px 14px;
        text-align: left;
        border-radius: var(--radius);
    }

    .nav-main > ul > li:not(.has-dropdown) > a:hover {
        background: var(--color-bg);
        color: var(--color-primary);
    }

    /* Cabecera del acordeón */
    .has-dropdown > a,
    .has-dropdown > .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--color-bg-dark);
        padding: 12px 14px;
        background: var(--color-bg);
        border-radius: var(--radius);
        cursor: pointer;
        width: 100%;
        text-align: left;
    }

    .has-dropdown.open > a,
    .has-dropdown.open > .nav-dropdown-toggle {
        color: var(--color-primary);
        border-radius: var(--radius) var(--radius) 0 0;
    }

    /* Chevron */
    .has-dropdown > a::after,
    .has-dropdown > .nav-dropdown-toggle::after {
        content: '';
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        margin-top: -2px;
    }

    .has-dropdown.open > a::after,
    .has-dropdown.open > .nav-dropdown-toggle::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    /* Panel del acordeón */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        list-style: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        background: var(--color-bg);
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 0 8px;
    }

    .has-dropdown.open > .dropdown {
        max-height: 600px;
        padding: 4px 8px 10px;
    }

    .dropdown li {
        margin: 0;
    }

    .dropdown a {
        display: block;
        font-size: 0.92rem;
        font-weight: 500;
        color: var(--color-muted);
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        text-align: left;
    }

    .dropdown a:hover {
        background: rgba(46, 107, 176, 0.07);
        color: var(--color-primary);
    }

    .dropdown-group-label {
        display: block;
        padding: 8px 10px 2px;
        font-size: 0.62rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-primary);
        pointer-events: none;
    }

    .dropdown-divider {
        height: 1px;
        background: rgba(0,0,0,0.07);
        margin: 4px 4px;
    }
}

/* NAV TOGGLE MÓVIL */
.nav-toggle {
    display: block;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-bg-dark);
    position: absolute;
    transition: var(--transition);
}

.nav-toggle span:first-child {
    top: 4px;
}

.nav-toggle span:nth-child(2) {
    top: 11px;
}

.nav-toggle span:last-child {
    top: 18px;
}

/* Hamburguesa → X cuando el menú está abierto */
.nav-toggle[aria-expanded="true"] span:first-child {
    top: 11px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
    top: 11px;
    transform: rotate(-45deg);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

/* SECTIONS BASE */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--color-bg);
}

.section-dark {
    background: var(--color-bg-dark);
    color: white;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* FONDOS DINÁMICOS */
.bg-subtle-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    color: white;
}

.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h3,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h3 {
    color: white;
}

/* BANNER CTA */
.cta-banner {
    padding: 60px 24px;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white !important; /* Forzar texto blanco */
}

.cta-banner h2, 
.cta-banner h3 {
    color: white !important;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
    color: white !important; /* Forzar párrafo blanco */
}

.cta-banner .btn {
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* Solo el botón sin variante hereda el estilo blanco; .btn-whatsapp/.btn-primary conservan su color */
.cta-banner .btn:not(.btn-whatsapp):not(.btn-primary) {
    background: white;
    color: var(--color-bg-dark) !important;
    border-color: white;
}

.cta-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-label {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--color-bg-dark);
}

.section-dark .section-title {
    color: white;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* GRID SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 107, 176, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-title a {
    color: inherit;
    text-decoration: none;
}

.service-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.service-card {
    position: relative;
}

.service-card:hover .service-title a {
    color: var(--color-primary);
}

.service-desc {
    color: var(--color-muted);
    flex-grow: 1;
    line-height: 1.6;
}

/* WHATSAPP + LLAMADA FLOTANTES */
.whatsapp-float,
.call-float {
    position: fixed;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s;
}

.whatsapp-float {
    bottom: 24px;
    background: #25D366;
}

.call-float {
    bottom: 96px;
    background: #e67e22;
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg,
.call-float svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 767px) {

    .whatsapp-float,
    .call-float {
        width: 50px;
        height: 50px;
        right: 16px;
    }

    .whatsapp-float {
        bottom: 20px;
    }

    .call-float {
        bottom: 80px;
    }

    .whatsapp-float svg,
    .call-float svg {
        width: 26px;
        height: 26px;
    }
}

/* FOOTER */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.25fr 1fr 1.35fr;
    gap: 48px 32px;
    align-items: start;
    margin-bottom: 56px;
}

.footer-brand .logo { display: inline-flex; align-items: center; margin-bottom: 20px; }
.footer-brand .logo span { white-space: nowrap; line-height: 1.1; }
.footer-brand > p { max-width: 320px; }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand > p { max-width: 520px; }
}

@media (max-width: 720px) {
    .footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; margin-bottom: 40px; }
    .footer-brand, .footer-hours { grid-column: 1 / -1; }
    .footer-hours { max-width: 420px; }
}

@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: block;
}

.footer-desc {
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    list-style: none;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* ---- Columna Atención al Cliente (horarios) ---- */
.footer-schedule {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-size: 0.92rem;
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-schedule li:last-child { border-bottom: 0; }
.footer-schedule .fs-day { color: rgba(255, 255, 255, 0.7); }
.footer-schedule .fs-time { color: #fff; font-weight: 600; white-space: nowrap; }
.footer-schedule .fs-closed { color: #f87171; font-weight: 600; }

.footer-open-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.footer-open-now::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.footer-urgency {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Franja de autoridad y confianza ---- */
.footer-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px 24px;
    align-items: center;
    padding: 22px 28px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.ft-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.ft-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
}

.ft-stars { color: #fbbf24; letter-spacing: 1px; }

.footer-disclaimer {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    margin: 0 0 8px;
}

.footer-disclaimer a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-disclaimer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

/* El descargo ya aporta el separador superior */
.footer-disclaimer + .footer-bottom { border-top: 0; padding-top: 8px; }

.legal-links { flex-wrap: wrap; }

@media (max-width: 720px) {
    .footer-trust { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: white;
}

/* ---- TESTIMONIOS TRUSTINDEX STYLE ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 32px;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
}

.testimonial-card-google {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    transition: var(--transition);
}

.testimonial-card-google:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.testimonial-card-google .google-logo-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
}

.testimonial-stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
}

.author-info h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--color-bg-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: #64748b;
}

/* ---- WHY CHOOSE US ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-item:hover .feature-icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: rotate(10deg);
}

.feature-icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--color-muted);
}

/* ---- BEFORE/AFTER MINI SECTION ---- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.showcase-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.showcase-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

.showcase-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---- SERVICE PAGE ENHANCEMENTS ---- */
.service-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.benefit-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.process-list {
    counter-reset: process-counter;
    position: relative;
    padding-left: 20px;
    margin: 40px 0;
}

.process-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 40px;
}

.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e2e8f0;
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cta-banner-service {
    background: var(--color-bg-dark);
    padding: 60px 40px;
    border-radius: 16px;
    color: white;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-service::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.cta-banner-service h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-banner-service p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Gallery inside services */
.service-mini-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Service Landing Grid (servicios/index.html) */
.services-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-full-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.service-full-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card-img {
    height: 220px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-full-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-bg-dark);
}

.service-card-body p {
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Utility Elements */
.checklist-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.checklist-box h3 {
    margin-top: 0;
    color: var(--color-bg-dark);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.checklist-items li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.comparison-table th {
    background: var(--color-bg-dark);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.info-banner-authority {
    background: #e7f3ef;
    border-left: 5px solid var(--color-primary);
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.info-banner-authority h3 {
    margin: 0 0 10px;
    color: #1a4d3a;
}

.info-banner-authority p {
    margin: 0;
    font-size: 0.95rem;
    color: #2c5e4a;
}

/* --- Premium Service Design Enhancement — Benefits 2×2 Grid --- */

.benefits-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px 0;
}

@media (max-width: 640px) {
    .benefits-bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.benefit-tile {
    background: #fff;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    border: 1.5px solid #f0f4f8;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative corner accent */
.benefit-tile::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(46, 107, 176,0.07) 0%, transparent 70%);
    border-radius: 0 20px 0 80px;
    pointer-events: none;
}

.benefit-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(46, 107, 176,0.12);
    border-color: var(--color-primary);
}

/* All tiles span 1 column — 2×2 layout */
.benefit-tile.large,
.benefit-tile.medium,
.benefit-tile.small {
    grid-column: span 1;
}

/* Icon wrapper */
.benefit-tile svg {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: var(--color-primary);
    background: rgba(46, 107, 176, 0.08);
    border-radius: 14px;
    padding: 10px;
    box-sizing: content-box;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.benefit-tile:hover svg {
    background: var(--color-primary);
    color: #fff;
}

.benefit-tile h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.benefit-tile p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Service detail list (icon feature rows) ── */
.svc-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 48px;
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .svc-list { grid-template-columns: 1fr 1fr; }
}
.svc-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1.5px solid #f0f4f8;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(46, 107, 176,.10);
    border-color: var(--color-primary);
}
.svc-list svg {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    box-sizing: border-box;
    color: var(--color-primary);
    background: rgba(46, 107, 176,.08);
    border-radius: 12px;
    transition: background .3s ease, color .3s ease;
}
.svc-list li:hover svg {
    background: var(--color-primary);
    color: #fff;
}
.svc-list strong {
    display: block;
    color: var(--color-bg-dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -.2px;
}
.svc-list li > div {
    color: var(--color-muted);
    font-size: .96rem;
    line-height: 1.6;
}

/* Glassmorphism Sidebar Form */
.sidebar-glass {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.sidebar-glass h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Price Cards */
.price-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.price-card {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: scale(1.02);
}

.price-card .price-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    line-height: 1;
    margin: 20px 0;
}

.price-card .price-val small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-muted);
}

.price-card .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary);
}

/* Expert Advice Highlight */
.quote-highlight {
    background: #0F2A43;
    padding: 40px;
    border-radius: 24px;
    color: white;
    position: relative;
    margin: 60px 0;
}

.quote-highlight::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 120px;
    color: rgba(255,255,255,0.1);
    font-family: serif;
}

.quote-highlight h3 {
    color: var(--color-accent) !important;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.quote-highlight p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    color: rgba(255,255,255,0.95) !important;
}

.quote-highlight .author {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quote-highlight .author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
}

.quote-highlight .author-info span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ================================================================
   ZONAS PAGE STYLES (PREMIUM REDESIGN)
   ================================================================ */

.zonas-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 24px;
    margin: 64px 0;
}

.zona-card-premium {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    color: white !important;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.zona-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.zona-card-premium img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
    z-index: 0;
}

.zona-card-premium:hover img {
    transform: scale(1.15);
}

.zona-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.zona-card-premium:hover .zona-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.9) 100%);
}

.zona-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.zona-card-premium h3 {
    font-size: 2rem;
    color: white !important;
    margin-bottom: 12px;
    font-weight: 800;
}

.zona-card-premium p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 24px;
    max-width: 90%;
    line-height: 1.5;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.zona-card-premium:hover p {
    transform: translateY(0);
    opacity: 1;
}

.zona-card-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
}

.zona-card-link-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-bg-dark);
    background: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.zona-card-premium:hover .zona-card-link-new {
    transform: translateX(0);
    background: var(--color-primary);
    color: white;
}

/* Bento Spans */
.zona-card-premium.span-8 { grid-column: span 8; }
.zona-card-premium.span-4 { grid-column: span 4; }
.zona-card-premium.span-6 { grid-column: span 6; }
.zona-card-premium.span-12 { grid-column: span 12; }

@media (max-width: 1024px) {
    .zona-card-premium.span-8,
    .zona-card-premium.span-4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .zonas-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 450px;
        gap: 16px;
        margin: 40px 0;
    }
    .zona-card-premium.span-8,
    .zona-card-premium.span-4,
    .zona-card-premium.span-6 {
        grid-column: span 1;
    }
    .zona-card-content { padding: 30px; }
    .zona-card-premium h3 { font-size: 1.7rem; }
    .zona-card-premium p { opacity: 1; transform: none; }
}

/* Coverage List New Style */
.coverage-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.coverage-card-premium {
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: center;
}

.coverage-card-premium:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.coverage-icon-circle {
    width: 50px;
    height: 50px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.coverage-info h3 {
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: var(--color-bg-dark);
}

.coverage-info p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}


/* Shadow variables */
:root {
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ================================================================
   TRUSTINDEX TESTIMONIALS — Realistic Google review widget
   ================================================================ */
.ti-section { background: #f8fafc; }

.ti-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    overflow: hidden;
}

.ti-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 16px;
}

.ti-brand { display: flex; align-items: center; gap: 14px; }

.ti-google-logo { width: 38px; height: 38px; }

.ti-rating-block { display: flex; flex-direction: column; }

.ti-score {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-bg-dark);
    line-height: 1;
    font-family: var(--font-heading);
}

.ti-stars-row {
    display: flex;
    gap: 1px;
    margin: 5px 0 3px;
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.ti-count { font-size: 0.82rem; color: var(--color-muted); }

.ti-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ti-verified svg { width: 14px; height: 14px; stroke: #15803d; }

.ti-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1px;
    background: #f1f5f9;
}

.ti-review-card {
    background: white;
    padding: 22px 24px;
    transition: background 0.2s;
}

.ti-review-card:hover { background: #fafcff; }

.ti-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ti-reviewer { display: flex; align-items: center; gap: 10px; }

.ti-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: white;
}

.ti-reviewer-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-bg-dark);
    margin: 0 0 2px;
}

.ti-reviewer-meta { font-size: 0.75rem; color: var(--color-muted); }

.ti-g-icon { width: 16px; height: 16px; }

.ti-review-stars {
    display: flex;
    gap: 1px;
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.ti-review-date { font-size: 0.75rem; color: #94a3b8; margin-bottom: 10px; }

.ti-review-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.ti-footer {
    padding: 14px 28px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ti-footer-text { font-size: 0.78rem; color: var(--color-muted); }

.ti-footer a {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4285F4;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================================================
   SERVICE PAGE — Works Gallery
   ================================================================ */
.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.work-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #e5e7eb;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.work-item:hover img { transform: scale(1.06); }

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-label {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.work-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   ZONA PILLS — zones coverage section
   ================================================================ */
.zona-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.zona-pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 107, 176,0.35);
}

/* ================================================================
   URGENCY BAND — Albañil urgente / a domicilio
   ================================================================ */
.urgency-band {
    background: linear-gradient(90deg, var(--color-primary) 0%, #22507E 100%);
    padding: 24px 0;
    color: white;
    box-shadow: 0 8px 24px -12px rgba(15, 42, 67, 0.5);
}

.urgency-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.urgency-inner > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.urgency-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.urgency-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #B9F6CA;
    margin-bottom: 4px;
}

.urgency-live-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    animation: urgencyPulse 1.8s infinite;
}

@keyframes urgencyPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.urgency-inner strong {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.urgency-inner span {
    font-size: 0.88rem;
    opacity: 0.9;
}

.urgency-band .btn-pulse {
    animation: urgencyBtnPulse 2.2s infinite;
}

@keyframes urgencyBtnPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .urgency-live-dot span,
    .urgency-band .btn-pulse {
        animation: none;
    }
}

.urgency-band .btn-white {
    background: white;
    color: var(--color-primary) !important;
    border: 2px solid white;
    padding: 10px 22px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.urgency-band .btn-white:hover {
    background: var(--color-bg-dark);
    color: white !important;
    border-color: var(--color-bg-dark);
}

@media (max-width: 768px) {
    .urgency-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .urgency-inner > div {
        justify-content: center;
    }
}

/* ================================================================
   STATS COUNTER SECTION — dark background
   ================================================================ */
.stats-section {
    background: var(--color-bg-dark);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(46, 107, 176,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(29, 78, 122,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-lbl {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 480px) {
    .stat-num { font-size: 2.4rem; }
}

/* ================================================================
   KW SERVICES GRID — dark section for keyword enrichment
   ================================================================ */
.kw-section {
    background: #1e2a3a;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.kw-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 107, 176,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.kw-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.kw-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.kw-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(46, 107, 176,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.kw-card:hover::before {
    transform: scaleX(1);
}

.kw-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(46, 107, 176,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition);
}

.kw-card:hover .kw-icon-wrap {
    background: var(--color-primary);
}

.kw-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.kw-card:hover .kw-icon-wrap svg {
    stroke: white;
}

.kw-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.kw-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    margin: 0;
}

/* ================================================================
   FEATURE ITEM — enhanced card style
   ================================================================ */
.feature-item {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: rgba(46, 107, 176,0.2);
}

/* ================================================================
   STANDARDIZED SERVICE LAYOUT
   ================================================================ */
.service-layout {
    display: grid;
    gap: 40px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .service-layout {
        /* Standardizing to a wider content area, optional sidebar */
        grid-template-columns: 1fr; 
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* If a page uses a sidebar, it can override this with .has-sidebar */
    .service-layout.has-sidebar {
        grid-template-columns: 2.8fr 1.2fr;
        max-width: var(--container);
    }
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- BENTO GRID BENEFITS (2x2) ---- */
.benefits-bento-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin: 40px 0;
}
@media(min-width: 768px) {
    .benefits-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.benefit-tile {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(46, 107, 176,0.1);
    border-color: rgba(46, 107, 176,0.2);
}
.benefit-tile svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
    background: rgba(46, 107, 176,0.05);
    padding: 10px;
    border-radius: 12px;
}
.benefit-tile h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-bg-dark);
}
.benefit-tile p {
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Enhanced FAQ Accordion ── */
.faq-accordion-enhanced {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item-enhanced {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-item-enhanced:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.faq-item-enhanced.active {
    border-color: #2E6BB0;
    box-shadow: 0 8px 24px rgba(46, 107, 176,0.15);
}
.faq-question-enhanced {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    transition: all 0.3s ease;
}
.faq-item-enhanced.active .faq-question-enhanced {
    background: linear-gradient(135deg, #EEF4FB 0%, #DCEBF8 100%);
}
.faq-icon { display: none !important; }
.faq-question-enhanced h3 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.5;
}
.faq-item-enhanced.active .faq-question-enhanced h3 { color: #2E6BB0; }
.faq-toggle {
    width: 32px;
    height: 32px;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.faq-item-enhanced.active .faq-toggle {
    background: linear-gradient(135deg, #2E6BB0 0%, #3B7DC4 100%);
    transform: rotate(45deg);
}
.faq-item-enhanced.active .faq-toggle svg { stroke: white; }
.faq-answer-enhanced {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item-enhanced.active .faq-answer-enhanced {
    max-height: 500px;
    padding: 0 28px 28px 28px !important;
}
.faq-answer-enhanced p {
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0;
}
.faq-answer-enhanced strong { color: #2E6BB0; font-weight: 700; }
@media (max-width: 640px) {
    .faq-question-enhanced { padding: 18px 20px; gap: 12px; }
    .faq-icon { width: 38px; height: 38px; }
    .faq-question-enhanced h3 { font-size: 0.95rem; }
    .faq-item-enhanced.active .faq-answer-enhanced { padding: 0 20px 20px 20px !important; }
}

/* ================================================================
   SERVICIOS · SECCIONES — REDISEÑO v2 (centralizado)
   Autoridad única para las secciones de las páginas de servicio.
   Sobrescribe definiciones previas por orden de cascada.
   Marca: acero #2E6BB0 · marino #0F2A43 · Sora.
   ================================================================ */
:root {
    --svc-primary: #2E6BB0;
    --svc-primary-2: #3B7DC4;
    --svc-ink: #16202e;
    --svc-slate: #0F2A43;
    --svc-line: #e8edf3;
    --svc-soft: #f6f8fb;
    --svc-grad: linear-gradient(135deg, #2E6BB0 0%, #3B7DC4 100%);
    --svc-grad-dark: linear-gradient(135deg, #22303f 0%, #16202e 100%);
    --svc-shadow: 0 18px 50px -18px rgba(22,32,46,.28);
}

/* ── Kicker + título de sección reutilizable ── */
.svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--svc-primary);
    margin-bottom: 14px;
}
.svc-eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--svc-grad);
}

/* ── Encabezados de sección dentro del artículo de servicio ── */
.service-main > h2 {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.18;
    letter-spacing: -.5px;
    color: var(--svc-ink);
    margin: 64px 0 18px;
    padding-left: 20px;
}
.service-main > h2::before {
    content: "";
    position: absolute;
    left: 0; top: .18em; bottom: .18em;
    width: 5px;
    border-radius: 5px;
    background: var(--svc-grad);
}

/* ================= TRUST STRIP ================= */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 34px 0;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px 11px 14px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--svc-slate);
    background: #fff;
    border: 1.5px solid var(--svc-line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(22,32,46,.04);
    transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .25s ease, border-color .25s ease;
}
.trust-chip svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    flex-shrink: 0;
    color: #fff;
    background: var(--svc-grad);
    border-radius: 9px;
    stroke: #fff;
    fill: none;
    box-shadow: 0 4px 10px rgba(46, 107, 176,.28);
}
.trust-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 107, 176,.4);
    box-shadow: 0 12px 24px -10px rgba(46, 107, 176,.35);
}

/* ================= BENTO BENEFICIOS v2 ================= */
.benefits-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 44px 0;
}
@media (min-width: 700px) {
    .benefits-bento-grid { grid-template-columns: repeat(3, 1fr); }
    /* Primer bloque destacado a lo ancho (icono | título / texto) */
    .benefits-bento-grid > .benefit-tile:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 26px;
        row-gap: 6px;
        align-items: center;
        background: var(--svc-grad-dark);
        border-color: transparent;
    }
    .benefits-bento-grid > .benefit-tile:first-child svg {
        grid-row: 1 / span 2;
        align-self: center;
        margin: 0;
        width: 58px; height: 58px;
        background: rgba(255,255,255,.12);
        color: #fff;
    }
    .benefits-bento-grid > .benefit-tile:first-child h3 { grid-column: 2; align-self: end; color: #fff; font-size: 1.5rem; margin: 0; }
    .benefits-bento-grid > .benefit-tile:first-child p { grid-column: 2; align-self: start; color: rgba(255,255,255,.82); font-size: 1.02rem; max-width: 70ch; margin: 0; }
    .benefits-bento-grid > .benefit-tile:first-child:hover svg { transform: none; }
    .benefits-bento-grid > .benefit-tile:first-child::before { opacity: .5; }
}
.benefit-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 30px 30px 32px;
    border-radius: 20px;
    border: 1.5px solid var(--svc-line);
    box-shadow: 0 6px 26px rgba(22,32,46,.05);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.23,1,.32,1), box-shadow .35s ease, border-color .35s ease;
}
/* Barra de acento superior que crece en hover */
.benefit-tile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--svc-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.benefit-tile:hover {
    transform: translateY(-7px);
    border-color: rgba(46, 107, 176,.35);
    box-shadow: 0 26px 50px -20px rgba(46, 107, 176,.4);
}
.benefit-tile:hover::before { transform: scaleX(1); }
.benefit-tile svg {
    width: 52px;
    height: 52px;
    padding: 13px;
    margin-bottom: 20px;
    flex-shrink: 0;
    color: var(--svc-primary);
    background: rgba(46, 107, 176,.09);
    border-radius: 15px;
    box-sizing: border-box;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}
.benefit-tile:hover svg {
    background: var(--svc-grad);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}
.benefit-tile h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--svc-ink);
    line-height: 1.3;
}
.benefit-tile p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.68;
    color: var(--color-muted);
}

/* ================= CHECK LIST v2 ================= */
.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 26px 0 8px;
    padding: 0;
}
.check-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px 15px 15px;
    font-weight: 600;
    color: var(--svc-slate);
    background: #fff;
    border: 1.5px solid var(--svc-line);
    border-radius: 13px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.check-list li::before {
    content: "";
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #2E6BB0, #3B7DC4);
    background-repeat: no-repeat;
    background-position: center, center;
    background-size: 15px, cover;
    box-shadow: 0 4px 10px rgba(46, 107, 176,.28);
}
.check-list li:hover {
    transform: translateX(4px);
    border-color: rgba(46, 107, 176,.35);
    box-shadow: 0 10px 22px -12px rgba(46, 107, 176,.4);
}

/* ================= TIMELINE DE PASOS v2 ================= */
.steps-list {
    position: relative;
    display: grid;
    gap: 0;
    margin: 30px 0 8px;
    padding-left: 4px;
}
.step-it {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    align-items: start;
    padding: 0 0 30px 0;
    background: none;
    border: 0;
    border-radius: 0;
}
/* Línea vertical conectora */
.step-it::before {
    content: "";
    position: absolute;
    left: 25px; top: 46px; bottom: -4px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(46, 107, 176,.35), var(--svc-line));
}
.step-it:last-child { padding-bottom: 0; }
.step-it:last-child::before { display: none; }
.step-n {
    position: relative;
    z-index: 1;
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    background: var(--svc-grad);
    border-radius: 16px;
    box-shadow: 0 10px 22px -8px rgba(46, 107, 176,.55);
}
.step-it > div:last-child {
    background: #fff;
    border: 1.5px solid var(--svc-line);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 6px 22px rgba(22,32,46,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-it:hover > div:last-child {
    transform: translateY(-3px);
    border-color: rgba(46, 107, 176,.3);
    box-shadow: 0 16px 32px -18px rgba(46, 107, 176,.4);
}
.step-it h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--svc-ink);
}
.step-it p { margin: 0; color: var(--color-muted); font-size: .92rem; line-height: 1.62; }

/* ================= CTA INLINE v2 ================= */
.cta-inline {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 60px 0;
    padding: 50px 40px;
    border-radius: 24px;
    color: #fff;
    background: var(--svc-grad-dark);
    box-shadow: var(--svc-shadow);
    isolation: isolate;
}
/* Halo terracota decorativo */
.cta-inline::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -40% -10% auto auto;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(59, 125, 196,.45) 0%, transparent 68%);
    pointer-events: none;
}
.cta-inline::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto auto -50% -12%;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(46, 107, 176,.35) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inline h3 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.cta-inline p {
    margin: 0 auto 26px;
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
}
.cta-inline .btn {
    box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cta-inline .btn:hover { transform: translateY(-3px); }

/* ================= GALERÍA DE TRABAJOS v2 ================= */
.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.work-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
    box-shadow: 0 8px 26px -12px rgba(22,32,46,.4);
    transition: transform .35s cubic-bezier(.23,1,.32,1), box-shadow .35s ease;
}
.work-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 46px -20px rgba(22,32,46,.55);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.work-item:hover img { transform: scale(1.08); }
.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(to top, rgba(11,17,28,.82) 0%, rgba(11,17,28,.15) 55%, transparent 100%);
    opacity: 0;
    transition: opacity .35s ease;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-label {
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.3;
    transform: translateY(8px);
    transition: transform .35s ease;
}
.work-item:hover .work-label { transform: translateY(0); }
.work-badge {
    position: absolute;
    top: 12px; right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--svc-grad);
    border-radius: 50px;
    box-shadow: 0 6px 14px -4px rgba(46, 107, 176,.6);
}

@media (max-width: 640px) {
    .service-main > h2 { margin-top: 48px; }
    .cta-inline { padding: 40px 24px; }
    .step-it { grid-template-columns: 44px 1fr; gap: 15px; }
    .step-it::before { left: 21px; top: 40px; }
    .step-n { width: 44px; height: 44px; font-size: 1rem; border-radius: 13px; }
}

/* ================================================================
   REDISEÑO 2026 · "Azul Confianza" — capa de refinamiento minimalista
   Marca: acero #2E6BB0 · marino #0F2A43 · dorado #E8A93C · Sora + Inter
   ================================================================ */
html { scroll-behavior: smooth; }

/* Tipografía Sora: títulos más compactos y limpios */
h1, h2, h3, h4,
.section-title, .brand-name {
    letter-spacing: -0.02em;
}
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Etiqueta de sección con marcador acero (look editorial y ordenado) */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}
.section-dark .section-label { color: #7FB0E0; }
.section-dark .section-label::before { background: #7FB0E0; }

/* Foco visible coherente y accesible (WCAG 2.2) */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 107, 176, 0.15);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Radios de inputs unificados */
input, select, textarea { border-radius: var(--radius-sm); }

/* Bordes hairline fríos en las tarjetas de fondo claro (sustituye el gris neutro) */
.service-card,
.benefit-tile,
.price-card,
.faq-item-enhanced,
.testimonial-card-google {
    border-color: var(--color-border);
}

/* Degradado de marca coherente con la nueva paleta */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-secondary) 55%, var(--color-primary) 100%);
}

/* ================================================================
   SERVICIOS · LAYOUT DE SECCIONES v3 (centralizado)
   Página de servicio ordenada en bandas alternas: secciones
   contenidas (.svc-section) + bandas a ancho completo (.cta-band,
   .svc-textband, .ti-section). Cabeceras centradas y equilibradas.
   Marca: acero #2E6BB0 · marino #0F2A43 · Sora.
   ================================================================ */
body { overflow-x: hidden; }

/* ── Ritmo vertical de secciones contenidas ── */
.svc-section { padding: 72px 0; }
.svc-section--tight { padding: 52px 0; }
.svc-section--soft { background: var(--svc-soft); }
@media (max-width: 640px) { .svc-section { padding: 52px 0; } }

/* ── Cabecera de sección centrada y equilibrada ── */
.svc-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.svc-head .svc-eyebrow { justify-content: center; }
.svc-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--svc-ink);
    margin: 0 0 14px;
}
.svc-head p {
    margin: 0 auto;
    max-width: 62ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--color-muted);
}
.svc-head--left { text-align: left; margin-left: 0; }
.svc-head--left .svc-eyebrow { justify-content: flex-start; }
.svc-head--left p { margin-left: 0; }

/* ── Texto+imagen / imagen+texto (split) ── */
.svc-split {
    display: grid;
    gap: 48px;
    align-items: center;
}
@media (min-width: 860px) {
    .svc-split { grid-template-columns: 1.05fr .95fr; }
    .svc-split--reverse .svc-split-media { order: 2; }
}
.svc-split-media { position: relative; }
.svc-split-media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--svc-shadow);
    display: block;
}
.svc-split-badge {
    position: absolute;
    right: -14px; bottom: -18px;
    background: var(--svc-grad);
    color: #fff;
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 16px 34px -12px rgba(46,107,176,.6);
    text-align: center;
    line-height: 1;
}
.svc-split-badge b { display: block; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; }
.svc-split-badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: .92; }
.svc-split-body h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.18;
    letter-spacing: -.5px;
    color: var(--svc-ink);
    margin: 0 0 18px;
}
.svc-split-body p { font-size: 1.06rem; line-height: 1.75; color: var(--color-muted); margin: 0 0 18px; }
.svc-split-body .trust-strip-simple { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.svc-split-body .trust-strip-simple > div { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--svc-slate); }
.svc-split-body .trust-strip-simple svg { width: 20px; height: 20px; stroke: var(--svc-primary); flex-shrink: 0; }

@media (max-width: 860px) { .svc-split-badge { position: static; display: inline-block; margin-top: 16px; } }

/* ── Cluster de subservicios relacionados ── */
.svc-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .svc-cluster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-cluster { grid-template-columns: 1fr; } }
.cluster-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--svc-line);
    border-radius: 18px;
    padding: 26px 24px 22px;
    text-decoration: none;
    box-shadow: 0 6px 26px rgba(22,32,46,.05);
    transition: transform .32s cubic-bezier(.23,1,.32,1), box-shadow .32s ease, border-color .32s ease;
}
a.cluster-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46,107,176,.35);
    box-shadow: 0 24px 46px -20px rgba(46,107,176,.4);
}
.cluster-card .cluster-ico {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    margin-bottom: 18px;
    color: var(--svc-primary);
    background: rgba(46,107,176,.09);
    border-radius: 14px;
    transition: background .32s ease, color .32s ease, transform .32s ease;
}
.cluster-card .cluster-ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }
a.cluster-card:hover .cluster-ico { background: var(--svc-grad); color: #fff; transform: rotate(-6deg); }
.cluster-card h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.12rem; font-weight: 800; color: var(--svc-ink); line-height: 1.3; }
.cluster-card p { margin: 0 0 16px; font-size: .93rem; line-height: 1.62; color: var(--color-muted); }
div.cluster-card p { margin-bottom: 0; }
.cluster-card .cluster-link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: .86rem; color: var(--svc-primary);
}
.cluster-card .cluster-link svg { width: 16px; height: 16px; transition: transform .3s ease; }
a.cluster-card:hover .cluster-link svg { transform: translateX(4px); }

/* ── Banda CTA a ancho completo ── */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    color: #fff;
    background: var(--svc-grad-dark);
    isolation: isolate;
    text-align: center;
}
.cta-band::before {
    content: "";
    position: absolute; z-index: -1;
    inset: -30% -5% auto auto;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(59,125,196,.4) 0%, transparent 68%);
}
.cta-band::after {
    content: "";
    position: absolute; z-index: -1;
    inset: auto auto -40% -8%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(46,107,176,.32) 0%, transparent 70%);
}
.cta-band .svc-eyebrow { justify-content: center; color: #7FB0E0; }
.cta-band .svc-eyebrow::before { background: #7FB0E0; }
.cta-band h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 auto 16px;
    max-width: 20ch;
}
.cta-band p { margin: 0 auto 30px; max-width: 60ch; font-size: 1.12rem; line-height: 1.65; color: rgba(255,255,255,.85); }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.14); }
.cta-band .wa-legal { margin: 18px auto 0; max-width: 58ch; font-size: .72rem; line-height: 1.5; color: rgba(255,255,255,.6); }

/* ── Texto + imagen (bloques largos de texto): imagen fija a un lado ── */
.svc-split--top { align-items: start; }
.svc-split--top .svc-split-media img { height: auto; max-height: none; aspect-ratio: 16 / 10; }
.svc-split--top .svc-split-body h2 { margin-bottom: 20px; }
.svc-split--top .svc-split-body p { font-size: 1.02rem; line-height: 1.72; margin-bottom: 16px; }
.svc-split--top .svc-split-body p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
    .svc-split--top { grid-template-columns: .8fr 1.2fr; }
    .svc-split--top .svc-split-media { position: sticky; top: 110px; }
    .svc-split--top .svc-split-media img { aspect-ratio: 1 / 1; }
}
.svc-split-extra { max-width: 900px; margin: 56px auto 0; }

/* ── Galería de trabajos forzada a 3×2 ── */
.works-gallery.works-3x2 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .works-gallery.works-3x2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .works-gallery.works-3x2 { grid-template-columns: 1fr; } }

/* ── Mapa a ancho contenido, centrado ── */
.svc-section .map-container { margin: 0 auto; max-width: 1000px; }

/* ================================================================
   BLOG · ARTÍCULOS & PORTADA — v1 (centralizado)
   ================================================================ */

/* Meta de artículo (fecha · lectura · autor) sobre el hero */
.article-meta { display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:center; margin-top:20px; font-size:.9rem; color:rgba(255,255,255,.85); }
.article-meta .am-item { display:inline-flex; align-items:center; gap:6px; }
.article-meta svg { width:16px; height:16px; flex-shrink:0; }

/* Índice de contenidos */
.blog-toc { background:#f8fafc; border:1px solid #e5e7eb; border-left:4px solid var(--color-primary); border-radius:8px; padding:22px 26px; margin:32px 0 40px; font-size:1rem; }
.blog-toc__title { font-family:'Sora',sans-serif; font-size:1.05rem; font-weight:700; color:var(--color-bg-dark); margin:0 0 14px; display:flex; align-items:center; gap:8px; }
.blog-toc__title svg { width:20px; height:20px; color:var(--color-primary); }
.blog-toc ol { margin:0; padding-left:22px; color:#4b5563; }
.blog-toc li { margin-bottom:8px; }
.blog-toc a { color:var(--color-primary-dark); text-decoration:none; font-weight:500; }
.blog-toc a:hover { text-decoration:underline; }

/* Cita destacada */
.blog-cita { margin:34px 0; padding:24px 30px; background:linear-gradient(135deg, rgba(46,107,176,.07), rgba(46,107,176,.02)); border-left:4px solid var(--color-primary); border-radius:0 8px 8px 0; font-size:1.18rem; line-height:1.6; font-style:italic; color:var(--color-bg-dark); }
.blog-cita p { margin:0 !important; color:var(--color-bg-dark) !important; }
.blog-cita cite { display:block; margin-top:14px; font-size:.9rem; font-style:normal; font-weight:600; color:var(--color-primary-dark); }

/* Callout / dato clave */
.blog-key { display:flex; gap:14px; align-items:flex-start; background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:18px 22px; margin:30px 0; }
.blog-key svg { flex-shrink:0; width:24px; height:24px; color:var(--color-accent); margin-top:2px; }
.blog-key p { margin:0 !important; color:#78350f !important; font-size:1rem; }
.blog-key strong { color:#78350f; }

/* Tabla de datos genérica */
.blog-table { width:100%; border-collapse:collapse; margin:12px 0 34px; font-size:1rem; }
.blog-table th, .blog-table td { padding:12px 14px; border:1px solid #e5e7eb; text-align:left; vertical-align:top; color:#374151; }
.blog-table thead th { background:var(--color-bg-dark); color:#fff; font-weight:600; }
.blog-table tbody tr:nth-child(even) { background:#f8fafc; }
.blog-table td.num, .blog-table th.num { text-align:right; white-space:nowrap; }
.blog-table .hl { color:var(--color-primary); font-weight:700; }
.blog-table-wrap { overflow-x:auto; margin:12px 0 34px; }
.blog-table-wrap .blog-table { margin:0; }

/* Figura de artículo (imagen + pie de texto) */
.blog-figure { margin:32px 0 36px; }
.blog-figure img { width:100%; height:auto; display:block; border-radius:10px; border:1px solid #e5e7eb; object-fit:cover; aspect-ratio:16/10; }
.blog-figure figcaption { margin-top:10px; font-size:.92rem; line-height:1.5; color:#6b7280; font-style:italic; border-left:3px solid var(--color-primary); padding-left:12px; }

/* Caja de autor */
.blog-author { display:flex; gap:20px; align-items:center; background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px; padding:24px; margin:48px 0 0; }
.blog-author__avatar { flex-shrink:0; width:72px; height:72px; border-radius:50%; background:var(--color-bg-dark); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Sora',sans-serif; font-weight:800; font-size:1.6rem; }
.blog-author__name { font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:700; color:var(--color-bg-dark); margin:0 0 4px; }
.blog-author__role { font-size:.82rem; color:var(--color-primary); font-weight:600; margin:0 0 8px; text-transform:uppercase; letter-spacing:.03em; }
.blog-author__bio { font-size:.95rem; color:#4b5563; margin:0; }

/* Etiquetas / tags */
.blog-tags { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:40px 0 0; }
.blog-tags__label { width:100%; font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#6b7280; margin-bottom:4px; }
.blog-tag { display:inline-block; padding:6px 14px; background:#eef2f7; color:var(--color-primary-dark); border-radius:999px; font-size:.85rem; font-weight:500; text-decoration:none; transition:background .2s, color .2s; }
.blog-tag:hover { background:var(--color-primary); color:#fff; }

/* Artículos relacionados */
.related-posts { margin:56px 0 0; }
.related-posts__title { font-family:'Sora',sans-serif; font-size:1.4rem; color:var(--color-bg-dark); margin:0 0 24px; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.related-card { display:block; background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:20px; text-decoration:none; transition:transform .2s, box-shadow .2s; }
.related-card:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(15,42,67,.1); }
.related-card__cat { font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--color-primary); }
.related-card__title { font-size:1rem; font-weight:600; color:var(--color-bg-dark); margin:8px 0 0; line-height:1.4; }

/* Portada blog · filtro de categorías */
.blog-cats { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; padding:8px 0 0; }
.blog-cat-btn { padding:9px 18px; border:1px solid #d1d5db; background:#fff; border-radius:999px; font-size:.9rem; font-weight:600; color:#374151; cursor:pointer; transition:all .2s; font-family:inherit; }
.blog-cat-btn:hover { border-color:var(--color-primary); color:var(--color-primary); }
.blog-cat-btn.is-active { background:var(--color-bg-dark); border-color:var(--color-bg-dark); color:#fff; }
.blog-card.is-hidden { display:none; }

/* Portada blog · secciones auxiliares (etiquetas, autor) */
.blog-aside { background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px; padding:32px; margin:16px 0 0; }
.blog-aside__title { font-family:'Sora',sans-serif; font-size:1.4rem; color:var(--color-bg-dark); margin:0 0 20px; }

@media (max-width:560px){
  .blog-author { flex-direction:column; text-align:center; }
  .blog-cita { font-size:1.06rem; padding:20px 22px; }
  .blog-toc { padding:20px; }
}

/* Blog · alias de compatibilidad (variantes con guion simple usadas en algunos posts) */
.blog-toc-title { font-family:'Sora',sans-serif; font-size:1.05rem; font-weight:700; color:var(--color-bg-dark); margin:0 0 14px; display:flex; align-items:center; gap:8px; }
.blog-toc-title svg { width:20px; height:20px; color:var(--color-primary); }
.blog-author-info { flex:1; }
.blog-author-avatar { flex-shrink:0; width:72px; height:72px; border-radius:50%; background:var(--color-bg-dark); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Sora',sans-serif; font-weight:800; font-size:1.6rem; }
.blog-author-name { font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:700; color:var(--color-bg-dark); margin:0 0 4px; }
.blog-author-role, .blog-author-label { font-size:.82rem; color:var(--color-primary); font-weight:600; margin:0 0 8px; text-transform:uppercase; letter-spacing:.03em; }
.blog-author-bio { font-size:.95rem; color:#4b5563; margin:0; }
.blog-tags-label { width:100%; font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#6b7280; margin-bottom:4px; }
.related-title { font-family:'Sora',sans-serif; font-size:1.4rem; color:var(--color-bg-dark); margin:0 0 24px; }
.related-cat, .related-card-cat { font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--color-primary); }
.related-card-title { font-size:1rem; font-weight:600; color:var(--color-bg-dark); margin:8px 0 0; line-height:1.4; }

/* Blog · refuerzo de especificidad dentro de .article-content (evita que .article-content p pise los colores) */
.article-content .blog-toc__title, .article-content .blog-toc-title,
.article-content .blog-author__name, .article-content .blog-author-name,
.article-content .related-posts__title, .article-content .related-title { color:var(--color-bg-dark); }
.article-content .blog-author__role, .article-content .blog-author-role, .article-content .blog-author-label { color:var(--color-primary); }
.article-content .blog-author__bio, .article-content .blog-author-bio { color:#4b5563; }
.article-content .blog-cita p { color:var(--color-bg-dark); }
.article-content .blog-key p { color:#78350f; }
.article-content .related-card__title, .article-content .related-card-title { color:var(--color-bg-dark); }
.article-content .related-card__cat, .article-content .related-cat, .article-content .related-card-cat { color:var(--color-primary); }

/* Las cabeceras de artículo usan ahora el componente unificado
   .page-hero--title (ver critical.css). */

/* ================================================================
   BLOG HIGHLIGHTS (home) — "Consejos de Expertos"
   ================================================================ */
.bh-section { padding: 80px 0; }

.bh-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.bh-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.bh-head h2 { font-size: 2rem; margin: 0 0 6px; }
.bh-head p { color: var(--color-muted); margin: 0; }

.bh-all {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bh-all:hover { text-decoration: underline; }

.bh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bh-thumb {
    display: block;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
    margin-bottom: 16px;
}

.bh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bh-post:hover .bh-thumb img { transform: scale(1.05); }

.bh-cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bh-post h3 { font-size: 1.15rem; margin: 8px 0 12px; line-height: 1.35; }
.bh-post h3 a { color: inherit; text-decoration: none; }
.bh-post h3 a:hover { color: var(--color-primary); }
.bh-post p { font-size: 0.95rem; color: var(--color-muted); margin: 0; }

@media (max-width: 900px) {
    .bh-grid { grid-template-columns: 1fr; gap: 28px; }
    .bh-card { padding: 32px 24px; }
    .bh-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
    .bh-section { padding: 56px 0; }
}

/* ================================================================
   LEAD FORM SECTION — formulario express de la home
   (extraído del hero para unificar la altura de las cabeceras)
   ================================================================ */
.lead-form-section {
    background: #f8fafc;
    padding: 64px 0;
    border-bottom: 1px solid #eef2f7;
    scroll-margin-top: 90px;
}

.lead-form-card {
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

.lead-form-card h2 {
    color: var(--color-bg-dark);
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.lead-form-intro {
    color: var(--color-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* --- Rejilla horizontal: 2 columnas (campos | mensaje) --- */
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.lead-form-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.lead-form-col .lf-wide { grid-column: 1 / -1; }

.lead-form-msg { display: flex; }

.lead-form-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
}

textarea.lead-form-field { resize: vertical; min-height: 100%; }

.lead-form-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 107, 176, 0.12);
}

.lead-form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 700;
}

.lead-form-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
    margin: 14px 0 0;
    line-height: 1.4;
}

@media (max-width: 860px) {
    .lead-form-grid { grid-template-columns: 1fr; }
    textarea.lead-form-field { min-height: 92px; }
}

@media (max-width: 640px) {
    .lead-form-section { padding: 48px 0; }
    .lead-form-card { padding: 28px 22px; }
    .lead-form-col { grid-template-columns: 1fr; }
}

/* ================================================================
   §FORM-STATUS v1 — Feedback de envío de los formularios de lead
   Aplica a #contact-form (contacto.html) y #hero-contact-form (index.html)
   ================================================================ */
.form-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}

.form-status.is-pending,
.form-status.is-success,
.form-status.is-error { display: block; }

.form-status.is-pending {
    background: #F1F4F8;
    border-left-color: var(--color-muted);
    color: var(--color-muted);
}

.form-status.is-success {
    background: #ECFAF1;
    border-left-color: #1E9E5A;
    color: #145F38;
    font-weight: 600;
}

.form-status.is-error {
    background: #FDEDED;
    border-left-color: #C0392B;
    color: #8C231A;
}

.form-control[aria-invalid="true"],
.lead-form-field[aria-invalid="true"] {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: progress;
}

/* ================================================================
   SECCIÓN COMPARADOR ANTES / DESPUÉS (SLIDERS INTERACTIVOS 2x2)
   ================================================================ */
.ba-section {
    background: #ffffff;
    position: relative;
    padding: 80px 0;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 44px;
}

@media (max-width: 900px) {
    .ba-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.ba-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ba-slider-container {
    position: relative;
    width: 100%;
    background: var(--color-bg-dark);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 960 / 644;
    overflow: hidden;
    --pos: 50%;
}

.ba-img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-img-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    clip-path: inset(0 0 0 var(--pos, 50%));
    -webkit-clip-path: inset(0 0 0 var(--pos, 50%));
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    background: #ffffff;
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    pointer-events: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-card:hover .ba-handle {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ba-handle svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ba-badge {
    position: absolute;
    bottom: 14px;
    z-index: 4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 11px;
    border-radius: 6px;
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    line-height: 1.2;
    font-family: var(--font-base);
}

.ba-badge-before {
    left: 14px;
    background: #dc2626;
}

.ba-badge-after {
    right: 14px;
    background: #16a34a;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    touch-action: pan-y;
}

.ba-card-body {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.ba-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ba-category svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.ba-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-bg-dark);
    line-height: 1.35;
    margin: 0;
}

.ba-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
    flex: 1;
}

.ba-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--color-border);
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.ba-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ba-meta-item svg {
    width: 14px;
    height: 14px;
    fill: var(--color-primary);
    opacity: 0.95;
    flex-shrink: 0;
}

/* ── _gra: zonas + fichas de obra + RGPD (2026-10-02) ── */
/* RGPD (antes en cookies.css) */
.gdpr-consent-group{display:flex;align-items:flex-start;gap:12px;margin:16px 0 18px;padding:12px 14px;background:#F0F6FC;border:1px solid rgba(46,107,176,.2);border-radius:8px}
.gdpr-consent-group input[type=checkbox]{width:18px;height:18px;min-width:18px;margin-top:2px;accent-color:#2E6BB0;cursor:pointer}
.gdpr-consent-group label{font-size:.85rem;color:#4b5563;line-height:1.5;cursor:pointer;font-weight:400!important;margin-bottom:0!important}
.gdpr-consent-group label a{color:#22507E;text-decoration:underline;text-underline-offset:2px;font-weight:600}
.wa-legal{font-size:.78rem;line-height:1.45;color:var(--color-muted);margin:8px 0 0}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Hero de zona / ficha: altura flexible para que nada se recorte */
.zx-hero{height:auto;min-height:var(--page-hero-h);padding:64px 0}
.zx-hero .page-hero-ctas{justify-content:center}
.zx-chips{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:0;margin:22px 0 0}
.zx-chips li{padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:.88rem;font-weight:600}
@media(max-width:640px){.zx-hero{padding:44px 0}.zx-chips li{font-size:.8rem}}

/* Migas de pan */
.zx-crumbs{padding-top:20px;font-size:.9rem;color:var(--color-muted)}
.zx-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.zx-crumbs li+li::before{content:"›";margin-right:6px;color:var(--color-muted)}
.zx-crumbs a{color:var(--color-primary);text-decoration:none}
.zx-crumbs a:hover{text-decoration:underline}

/* Cluster 3×2 centrado */
.grid-3-center{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.grid-3-center>*{flex:0 1 calc((100% - 40px)/3);min-width:0}
@media(max-width:960px){.grid-3-center>*{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:620px){.grid-3-center>*{flex-basis:100%}}
.zx-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:22px;background:var(--color-surface);border:1px solid var(--color-border);border-top:3px solid var(--color-primary);border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease}
.zx-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.zx-card:focus-within{outline:2px solid var(--color-primary);outline-offset:2px}
.zx-card h3{font-size:1.08rem;margin:0;line-height:1.3}
.zx-card h3 a{color:var(--color-bg-dark);text-decoration:none}
.zx-card h3 a::after{content:"";position:absolute;inset:0}
.zx-card p{margin:0;color:var(--color-muted);font-size:.95rem}
.service-card__perks{list-style:none;display:grid;gap:6px;margin:4px 0 0;padding:0}
.service-card__perks li{position:relative;padding-left:22px;font-size:.92rem;color:var(--color-text)}
.service-card__perks li::before{content:"";position:absolute;left:2px;top:.42em;width:11px;height:6px;border-left:2px solid var(--color-primary);border-bottom:2px solid var(--color-primary);transform:rotate(-45deg)}

/* Bloque local + formulario lateral */
.zona-content{display:grid;gap:48px}
@media(min-width:1024px){.zona-content{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
.zona-main h2{font-size:clamp(1.5rem,2.4vw,2rem);margin:36px 0 18px;color:var(--color-bg-dark)}
.zona-main h2:first-child{margin-top:0}
.zona-main h3{font-size:1.2rem;margin:28px 0 14px;color:var(--color-bg-dark)}
.zona-main p{margin-bottom:18px;font-size:1.05rem;line-height:1.7}
.zx-figure{margin:28px 0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.zx-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.usp-list{list-style:none;padding:0;margin:0 0 28px}
.usp-list li{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;font-size:1.02rem;line-height:1.6}
.usp-list svg{width:22px;height:22px;flex-shrink:0;margin-top:3px;color:var(--color-primary)}
.sidebar-box{position:sticky;top:96px;padding:28px;background:var(--color-surface);border-radius:var(--radius);box-shadow:var(--shadow-lg);border-top:4px solid var(--color-primary)}
.sidebar-title{font-size:1.3rem;margin:0 0 10px;color:var(--color-bg-dark)}
.sidebar-intro{color:var(--color-muted);margin:0 0 18px;font-size:.95rem}
.zx-form{display:grid;gap:6px}
.zx-label{font-size:.85rem;font-weight:600;color:var(--color-bg-dark);margin-top:6px}
.zx-label span{font-weight:400;color:var(--color-muted)}
.zx-form input:not([type=checkbox]),.zx-form textarea{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;font-size:16px;background:#fff}
.zx-form textarea{resize:vertical}
.zx-form input:focus,.zx-form textarea:focus{outline:2px solid var(--color-primary);outline-offset:1px;border-color:var(--color-primary)}
.zx-submit{width:100%;min-height:48px}
.zx-wa{width:100%;margin-top:12px;min-height:44px;justify-content:center;gap:8px}
@media(max-width:1023px){.sidebar-box{position:static}}

/* Quién hará tu obra */
.zx-pro__grid{display:grid;gap:36px;align-items:center}
@media(min-width:900px){.zx-pro__grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}}
.zx-pro p{font-size:1.05rem;line-height:1.7;margin:0 0 14px}
.zx-pro h2{margin:6px 0 16px}
.zx-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.zx-stat{display:flex;flex-direction:column-reverse;justify-content:center;padding:18px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);text-align:center}
.zx-stat dt{font-size:.85rem;color:var(--color-muted)}
.zx-stat dd{margin:0 0 4px;font-family:var(--font-heading);font-weight:800;font-size:1.45rem;color:var(--color-primary)}
.zx-more{font-weight:600;color:var(--color-primary);text-decoration:underline;text-underline-offset:3px}
.zx-center{text-align:center;margin-top:24px}

/* Obras: tarjetas y lista */
.obra-grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.obra-card{position:relative;display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease}
.obra-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.obra-card:focus-within{outline:2px solid var(--color-primary);outline-offset:2px}
.obra-card__img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.obra-card__body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px}
.obra-card__cat{font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--color-primary)}
.obra-card h2,.obra-card h3{font-size:1.1rem;margin:0;line-height:1.3}
.obra-card h2 a,.obra-card h3 a{color:var(--color-bg-dark);text-decoration:none}
.obra-card h2 a::after,.obra-card h3 a::after{content:"";position:absolute;inset:0}
.obra-card p{margin:0;color:var(--color-muted);font-size:.93rem}
.obra-card__meta{font-size:.85rem;color:var(--color-muted)}
.zx-worklist{margin-top:28px;padding:22px 24px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius)}
.zx-worklist h3{font-size:1.1rem;margin:0 0 12px}
.zx-worklist ul{margin:0 0 12px;padding-left:20px;display:grid;gap:6px;list-style:disc}

/* Cobertura + mapa OSM */
.zx-cover__grid{display:grid;gap:28px;align-items:start}
@media(min-width:900px){.zx-cover__grid{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}
.zx-cover h3{font-size:1.05rem;margin:18px 0 10px}
.zx-pills{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.zx-pills a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid var(--color-border);background:#fff;color:var(--color-bg-dark);font-weight:600;text-decoration:none}
.zx-pills a:hover{border-color:var(--color-primary);color:var(--color-primary)}
.zx-map{display:block;width:100%;aspect-ratio:4/3;min-height:280px;border:0;border-radius:var(--radius);box-shadow:var(--shadow)}
.section>.zx-map{aspect-ratio:auto;height:clamp(300px,50vh,450px);min-height:0;border-radius:0;box-shadow:none}

/* CTA final */
.zx-cta{padding:56px 0;background:var(--color-bg-dark);color:#fff;text-align:center}
.zx-cta h2{color:#fff;margin:0 0 10px}
.zx-cta p{color:rgba(255,255,255,.85);margin:0 auto 24px;max-width:60ch}
.zx-cta__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}

/* Ficha de obra */
.ficha-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px;margin:0 0 28px;padding:18px;background:#F0F6FC;border-radius:var(--radius)}
.ficha-facts dt{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-muted)}
.ficha-facts dd{margin:2px 0 0;font-weight:700;color:var(--color-bg-dark)}
.ficha-facts a{color:var(--color-primary)}
.ficha-steps{list-style:none;counter-reset:paso;padding:0;margin:0 0 12px;display:grid;gap:16px}
.ficha-step{counter-increment:paso;position:relative;padding:16px 18px 16px 64px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius)}
.ficha-step::before{content:counter(paso);position:absolute;left:16px;top:16px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--color-primary);color:#fff;font-weight:800;font-family:var(--font-heading)}
.ficha-step h3{margin:0 0 6px!important;font-size:1.05rem!important}
.ficha-step p{margin:0!important;font-size:1rem!important}
.ficha-ba{display:grid;gap:18px;margin-bottom:12px}
@media(min-width:720px){.ficha-ba{grid-template-columns:1fr 1fr}}
.ficha-ba__col{padding:18px;border-radius:var(--radius);border:1px solid var(--color-border);background:#fff}
.ficha-ba__col--antes{background:#f8fafc}
.ficha-ba__col h3{margin:0 0 12px!important}
.ficha-ba__col ul{margin:0;padding-left:20px;display:grid;gap:6px;list-style:disc}
.ficha-ba__main figcaption{font-size:.85rem;color:var(--color-muted);padding:8px 12px;background:#fff}
.ficha-ba__fig{margin:0;border-radius:8px;overflow:hidden}
.ficha-ba__fig img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.ficha-ba__fig figcaption{font-size:.82rem;color:var(--color-muted);padding:6px 2px 0}
.ficha-mats{width:100%;border-collapse:collapse;margin:0 0 12px;font-size:.98rem}
.ficha-mats th,.ficha-mats td{padding:10px 12px;border-bottom:1px solid var(--color-border);text-align:left;vertical-align:top}
.ficha-mats th{width:38%;color:var(--color-muted);font-weight:600}
.ficha-tip{margin-top:32px;padding:22px 24px;border-left:4px solid var(--color-primary);background:#F0F6FC;border-radius:0 var(--radius) var(--radius) 0}
.ficha-tip h2{margin:0 0 10px!important;font-size:1.3rem!important}
.ficha-tip p{margin:0!important}
