/* ========================================
   PSICOLOGÍA INFANTIL - LIC. CYNTHIA CASTILLO
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Navbar sombra ---------- */
.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* ---------- WhatsApp flotante ---------- */
@keyframes pulse-custom {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-custom 2s infinite;
}

/* ---------- Hero logo fondo ---------- */
.hero-logo-bg {
    position: absolute;
    top: 57%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 1500px;
    max-width: none;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-logo-bg {
        width: 850px;
        top: 45%;
        left: 46%;
    }
}

/* ========================================
   SECCIÓN EXPERIENCIA
   ======================================== */
.experience-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.10);
    border: 1px solid #f3f0ff;
}

.experience-year-block {
    background: linear-gradient(160deg, #4c1d95 0%, #6d28d9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}

.experience-year-block::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.experience-year-block::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.experience-since {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.experience-number {
    font-family: 'Poppins', sans-serif;
    font-size: 68px;
    font-weight: 700;
    color: white;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.experience-line {
    width: 36px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.experience-content {
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Credenciales ---------- */
.experience-credentials {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid #f0ecfa;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credential-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #f0ecfa;
    color: #4c1d95;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.credential-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.credential-value {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.credential-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Responsiva experiencia */
@media (max-width: 900px) {
    .experience-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .experience-year-block {
        padding: 32px 24px;
        flex-direction: row;
        gap: 16px;
    }

    .experience-number {
        font-size: 48px;
    }

    .experience-line {
        display: none;
    }

    .experience-content {
        padding: 36px 28px;
    }

    .experience-credentials {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-top: 24px;
    }

    .credential-divider {
        display: none;
    }
}

@media (max-width: 500px) {
    .experience-year-block {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 28px 20px;
    }

    .experience-number {
        font-size: 42px;
    }

    .experience-since {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .experience-content {
        padding: 28px 20px;
    }

    .credential-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .credential-value {
        font-size: 13px;
    }
}

/* ========================================
   UBICACIÓN
   ======================================== */
.location-card {
    display: grid;
    grid-template-columns: 40% 60%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.12);
}

.location-info {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
}

.location-item {            
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.location-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #ede9fe;
    color: #4c1d95;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.location-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.location-item p {
    color: #4b5563;
    line-height: 1.7;
}

.location-btn {
    margin-top: 10px;
    background: #4c1d95;
    color: white;
    text-align: center;
    padding: 18px 28px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(76, 29, 149, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.location-btn:hover {
    background: #3b0764;
    transform: translateY(-2px);
}

.maps-btn {
    background: #1e293b !important;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2) !important;
}

.maps-btn:hover {
    background: #0f172a !important;
}

.location-map {
    min-height: 560px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .location-card {
        display: flex;
        flex-direction: column;
        border-radius: 28px;
    }

    .location-info {
        padding: 32px 24px;
        gap: 28px;
    }

    .location-item {
        gap: 16px;
    }

    .location-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

    .location-item h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .location-item p {
        font-size: 16px;
        line-height: 1.6;
    }

    .location-btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 0;
    }
}

/* ---------- Hero flecha móvil ---------- */
@media (max-width: 768px) {
    .hero-arrow {
        left: 46% !important;
    }
}

/* ---------- Tarjetas servicio (toggle móvil) ---------- */
.service-card {
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-toggle {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.service-toggle:focus-visible {
    outline: 2px solid #4c1d95;
    outline-offset: 2px;
    border-radius: 8px;
}

.service-card.open .service-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .service-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease;
        opacity: 0;
    }

    .service-card.open .service-content {
        max-height: 200px;
        opacity: 1;
        margin-top: 14px;
    }
}