/* ========================================
   CONTACTO PAGE — SICOAS
   Design Tokens: var(--primary), var(--secondary), var(--text-dark), var(--text-muted)
   Typography: Plus Jakarta Sans (headings), Outfit (body)
   Methodology: BEM-influenced naming
   ======================================== */

/* ─── Hero ─── */
.ct-hero {
    position: relative;
    padding: 9rem 0 4.5rem;
    text-align: center;
    overflow: hidden;
}

.ct-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(81, 155, 233, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(212, 74, 89, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ct-hero > .container {
    position: relative;
    z-index: 1;
}

.ct-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(81, 155, 233, 0.08);
    border: 1px solid rgba(81, 155, 233, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ct-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.ct-hero__subtitle {
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Cards Grid ─── */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ct-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--light-bg);
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ct-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.ct-card:hover::before {
    opacity: 1;
}

/* Color variants for hover glow */
.ct-card:has(.ct-card__icon--blue):hover {
    border-color: rgba(81, 155, 233, 0.2);
}
.ct-card:has(.ct-card__icon--blue)::before {
    background: linear-gradient(135deg, rgba(81, 155, 233, 0.04) 0%, transparent 60%);
}

.ct-card:has(.ct-card__icon--green):hover {
    border-color: rgba(37, 211, 102, 0.2);
}
.ct-card:has(.ct-card__icon--green)::before {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.04) 0%, transparent 60%);
}

.ct-card:has(.ct-card__icon--purple):hover {
    border-color: rgba(139, 92, 246, 0.2);
}
.ct-card:has(.ct-card__icon--purple)::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
}

/* Icon */
.ct-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-card:hover .ct-card__icon {
    transform: scale(1.08);
}

.ct-card__icon--blue {
    background: rgba(81, 155, 233, 0.1);
    color: var(--primary);
}
.ct-card__icon--green {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}
.ct-card__icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* Card text */
.ct-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.ct-card__primary {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.ct-card:hover .ct-card__primary {
    color: var(--primary);
}

.ct-card__secondary {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Arrow action */
.ct-card__action {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.ct-card:hover .ct-card__action {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

/* ─── Map ─── */
.ct-map {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
}

.ct-map__header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ct-map__header i {
    color: var(--secondary);
}

.ct-map__iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ─── CTA WhatsApp button ─── */
.ct-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ct-cta__wa {
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-cta__wa:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

/* ─── Focus visible (a11y) ─── */
.ct-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ct-hero {
        padding: 7rem 0 3rem;
    }

    .ct-hero h1 {
        font-size: 2.2rem;
    }

    .ct-hero__subtitle {
        font-size: 1rem;
    }

    .ct-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ct-card {
        padding: 2rem 1.5rem 1.5rem;
    }

    .ct-map__iframe {
        height: 300px;
    }

    .ct-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ct-hero {
        padding: 6rem 0 2rem;
    }

    .ct-hero h1 {
        font-size: 1.75rem;
    }

    .ct-hero__badge {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    .ct-card__icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-radius: 14px;
    }

    .ct-map {
        border-radius: 14px;
    }

    .ct-map__iframe {
        height: 240px;
    }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .ct-card {
        transition: none;
    }
    .ct-card__icon {
        transition: none;
    }
    .ct-cta__wa {
        transition: none;
    }
}
