/* Contacto — visual polish aligned with Nosotros / home (texts unchanged) */

.contact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
    background:
        radial-gradient(ellipse 90% 70% at 50% -25%, rgba(203, 108, 230, 0.18), transparent 58%),
        radial-gradient(ellipse 45% 50% at 0% 70%, rgba(37, 211, 102, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 45% at 100% 40%, rgba(243, 156, 18, 0.07), transparent 50%),
        linear-gradient(180deg, #fdf2e9 0%, #faf5ef 48%, #f7f0e8 100%);
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image: radial-gradient(rgba(44, 62, 80, 0.035) 0.6px, transparent 0.7px);
    background-size: 3px 3px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 75%);
}

.contact-hero > .container {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.contact-hero h1 {
    font-size: clamp(1.75rem, 3.8vw, 2.45rem);
    margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-dark);
    text-wrap: balance;
    animation: contact-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-hero h1::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 2px;
    margin: 0.9rem auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(203, 108, 230, 0.7),
        rgba(37, 211, 102, 0.45),
        transparent
    );
}

.contact-hero p {
    font-size: var(--type-lead-size);
    max-width: 36rem;
    margin: 0 auto;
    line-height: var(--type-lead-lh);
    color: var(--type-copy);
    text-wrap: pretty;
    animation: contact-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-hero p + p {
    margin-top: 0.65rem;
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    color: var(--text-light);
}

.contact-info {
    padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(2.5rem, 5vw, 3.75rem);
    background: #fff;
}

.contact-info > .container {
    max-width: 980px;
}

/* WhatsApp hub — green identity, less “blob card” */
.whatsapp-hub {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
        linear-gradient(145deg, #22c55e 0%, #16a34a 48%, #128c7e 100%);
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 1.35rem;
    color: #fff;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(18, 140, 126, 0.08),
        0 24px 48px rgba(18, 140, 126, 0.22);
    animation: contact-rise 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.whatsapp-hero {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.whatsapp-icon-large {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1.15rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contact-wa-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

.whatsapp-icon-large svg {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem;
    max-height: 2rem;
    color: #fff;
    display: block;
}

@keyframes contact-wa-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.whatsapp-hub h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 0.65rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.whatsapp-text {
    color: #fef08a;
    font-weight: 700;
}

.whatsapp-subtitle {
    font-size: var(--type-lead-size);
    opacity: 0.92;
    max-width: 32rem;
    margin: 0 auto;
    line-height: var(--type-lead-lh);
}

.whatsapp-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.whatsapp-option {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    padding: 1.25rem 1rem 1.15rem;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    text-align: left;
    min-height: 100%;
}

.whatsapp-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.whatsapp-option:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.option-icon {
    font-size: 1.65rem;
    margin-bottom: 0.65rem;
    display: block;
    line-height: 1;
}

.option-icon--purple {
    filter: hue-rotate(250deg) saturate(1.6) brightness(0.95);
}

.whatsapp-option h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
}

.whatsapp-option p {
    margin: 0 0 0.75rem;
    opacity: 0.88;
    font-size: 0.9rem;
    line-height: 1.45;
}

.whatsapp-preview {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.12);
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    display: block;
    line-height: 1.4;
}

.whatsapp-direct {
    text-align: center;
}

.whatsapp-button-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    color: #128c7e;
    padding: 0.9rem 1.65rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.02rem;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        background 0.3s ease;
    border: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.whatsapp-button-main:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    color: #0f766e;
}

.whatsapp-button-main svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
    max-width: 1.35rem;
    max-height: 1.35rem;
    flex-shrink: 0;
}

.location-info {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.location-card {
    background: transparent;
    border-radius: 0;
    padding: 1.15rem 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: none;
    border-top: 1px solid rgba(203, 108, 230, 0.14);
}

.location-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(203, 108, 230, 0.1);
}

.location-details h3 {
    color: var(--primary-color);
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.location-details p {
    color: var(--text-dark);
    margin: 0;
    font-size: 1rem;
}

/* Social */
.contact-social-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 0%, rgba(203, 108, 230, 0.1), transparent 55%),
        var(--bg-light);
}

.contact-social-section > .container {
    position: relative;
    z-index: 1;
}

.contact-social-section h2 {
    font-size: clamp(1.75rem, 3.8vw, 2.45rem);
    margin: 0 0 0.85rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-dark);
    text-wrap: balance;
}

.contact-social-section h2::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 2px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(203, 108, 230, 0.7),
        rgba(243, 156, 18, 0.4),
        transparent
    );
}

.contact-social-section > .container > p {
    font-size: var(--type-lead-size);
    max-width: 36rem;
    margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: var(--type-lead-lh);
    color: var(--type-copy);
    text-wrap: pretty;
}

.contact-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
    max-width: 720px;
    margin-inline: auto;
}

.contact-social-card {
    background: transparent;
    padding: 1.35rem 1.15rem 1.45rem;
    border-radius: 1rem;
    box-shadow: none;
    border: 1px solid rgba(203, 108, 230, 0.16);
    text-align: left;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.contact-social-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(203, 108, 230, 0.35);
    box-shadow: 0 14px 32px rgba(203, 108, 230, 0.1);
    text-decoration: none;
    color: inherit;
}

.contact-social-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.contact-social-icon-container {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, rgba(203, 108, 230, 0.9), rgba(243, 156, 18, 0.75));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-social-card:hover .contact-social-icon-container {
    transform: scale(1.06);
}

.contact-social-card-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.contact-social-card h3 {
    color: var(--primary-color);
    margin: 0 0 0.25rem;
    font-size: var(--type-sub-size);
    line-height: var(--type-sub-lh);
}

.contact-social-card p {
    color: var(--text-light);
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    max-width: none;
}

.contact-social-card p:last-of-type {
    color: var(--type-copy);
    font-weight: 400;
    margin-bottom: 0;
    line-height: var(--type-body-lh);
}

@keyframes contact-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero h1,
    .contact-hero p,
    .whatsapp-hub {
        animation: none;
    }

    .whatsapp-icon-large {
        animation: none;
    }

    .whatsapp-option,
    .contact-social-card,
    .contact-social-icon-container {
        transition: none;
    }
}

@media (max-width: 900px) {
    .whatsapp-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 1.75rem 0 1.35rem;
    }

    .contact-info {
        padding: 1.5rem 0 2.25rem;
    }

    .whatsapp-hub {
        padding: 1.5rem 1.1rem;
        border-radius: 1.1rem;
    }

    .whatsapp-option {
        text-align: left;
        padding: 1.15rem;
    }

    .location-card {
        flex-direction: row;
        text-align: left;
        gap: 0.85rem;
    }

    .contact-social-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .contact-social-section {
        padding: 2.25rem 0;
    }
}

@media (max-width: 480px) {
    .whatsapp-button-main {
        width: 100%;
        padding: 0.95rem 1.25rem;
    }
}
