/*  HERO  */
#contacto-hero {
    padding: 96px 0 80px;
    background: #FFFFFF;
    background-image: radial-gradient(circle, rgba(84, 86, 90, .07) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

#contacto-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 125, 0, .06) 0%, transparent 65%);
    pointer-events: none;
}

.contacto-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contacto-hero-text h1 {
    margin: 8px 0 20px;
    font-size: clamp(42px, 5.5vw, 68px);
}

/* Animación cromo naranja igual que servicios */
.contacto-hero-text h1 .text-orange {
    background: linear-gradient(105deg,
            #C46700 0%, #EF7D00 15%, #FFD080 28%,
            #EF7D00 40%, #8B4500 55%, #EF7D00 68%,
            #FFE8A0 80%, #EF7D00 90%, #C46700 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(239, 125, 0, .30));
    animation: barrido-cromo 15s linear infinite;
}

@keyframes barrido-cromo {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.contacto-hero-text .lead {
    margin-bottom: 32px;
}

/* Stats hero */
.contacto-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.contacto-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}

.contacto-stat-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -.02em;
}

.contacto-stat-label {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 500;
}

.contacto-stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 32px 0 0;
    align-self: center;
    flex-shrink: 0;
}


/* Tarjetas derecha hero */
.contacto-hero-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: all var(--t-base);
    text-decoration: none;
    color: inherit;
}

.hero-contact-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(239, 125, 0, .12);
    transform: translateX(6px);
}

.hero-contact-card-icon {
    width: 46px;
    height: 46px;
    background: var(--orange-muted);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.hero-contact-card-icon svg {
    width: 20px;
    height: 20px;
}

.hero-contact-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 3px;
}

.hero-contact-card-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}

/*  GRID INFO   */
#contacto-info {
    padding: 80px 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

#contacto-info .section-header {
    max-width: 560px;
    margin: 0 auto 48px;
    text-align: center;
}

.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.info-card:hover {
    box-shadow: 0 12px 36px rgba(239, 125, 0, .10);
    border-color: rgba(239, 125, 0, .25);
    transform: translateY(-4px);
}

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

.info-card-icon {
    width: 52px;
    height: 52px;
    background: var(--orange-muted);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 4px;
    flex-shrink: 0;
}

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

.info-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.info-card-val {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
}

.info-card-val a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--t-fast);
    display: inline;
}

.info-card-val a:hover {
    color: var(--orange);
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    margin-top: 8px;
    transition: gap var(--t-fast);
}

.info-card-link:hover {
    gap: 10px;
}

/* Horario dentro de tarjeta */
.horario-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.horario-item:last-child {
    border-bottom: none;
}

.horario-dia {
    color: var(--ink-2);
}

.horario-hora {
    font-weight: 600;
    color: var(--ink);
}

.horario-closed .horario-hora {
    color: var(--ink-4);
}

.horario-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #16A34A;
    background: rgba(22, 163, 74, .08);
    border: 1px solid rgba(22, 163, 74, .15);
    border-radius: var(--r-2xl);
    padding: 5px 12px;
    margin-top: 8px;
    width: fit-content;
}

/*  MAPA  */
#contacto-mapa {
    padding: 80px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.mapa-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: center;
}

.mapa-frame {
    height: 460px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .10);
}

.mapa-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.mapa-info h2 {
    margin: 10px 0 16px;
}

.mapa-info .lead {
    margin-bottom: 28px;
}

/*  CTA WHATSAPP  */
#contacto-cta {
    padding: 80px 0;
    background: var(--ink);
    background-image: radial-gradient(circle, rgba(239, 125, 0, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    overflow: hidden;
}

#contacto-cta::before {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 125, 0, .10) 0%, transparent 70%);
    pointer-events: none;
}

.contacto-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-wa-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.cta-wa-icon {
    width: 72px;
    height: 72px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(37, 211, 102, .30);
    animation: wa-ring 3.5s infinite;
}

.cta-wa-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.cta-wa-text h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-wa-text .lead {
    color: rgba(255, 255, 255, .55);
    max-width: 480px;
}

.cta-wa-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--r-2xl);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .70);
    border: 1.5px solid rgba(255, 255, 255, .20);
    text-decoration: none;
    transition: all var(--t-base);
}

.btn-ghost-white:hover {
    border-color: rgba(255, 255, 255, .50);
    color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .contacto-hero-inner {
        gap: 48px;
    }

    .mapa-inner {
        gap: 40px;
    }
}

@media (max-width: 900px) {

    .contacto-hero-inner,
    .mapa-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-info-grid {
        grid-template-columns: 1fr;
    }

    .mapa-frame {
        height: 320px;
    }

    .contacto-cta-inner {
        grid-template-columns: 1fr;
    }

    .cta-wa-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Formulario contacto */
#contacto-formulario {
    padding: 80px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.contacto-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    margin-top: 48px;
}
@media (max-width: 600px) {
    #contacto-formulario {
        padding: 56px 0;
    }
}

/* Mediaqueries */

@media (max-width: 600px) {
    #contacto-hero {
        padding: 56px 0 48px;
    }

    #contacto-info,
    #contacto-mapa,
    #contacto-cta {
        padding: 56px 0;
    }

    .contacto-hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .contacto-stat-sep {
        display: none;
    }

    .cta-wa-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-wa-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-ghost-white {
        justify-content: center;
    }

    .mapa-frame {
        height: 260px;
    }
}

/*  Reveal letra por letra  */
.titulo-reveal {
    display: block;
}

.titulo-reveal .letra {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s ease, transform .4s ease;
}

.titulo-reveal.animado .letra {
    opacity: 1;
    transform: translateY(0);
}

.titulo-reveal .espacio {
    display: inline-block;
    width: .28em;
    white-space: pre;
}