/* ==========================================================================
   AUSTIN KIDS EVENTS - ESTILOS DE DIRECTORIO & STORYTELLING (DIRECTORY.CSS)
   ========================================================================== */

.directory-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #9EC5E6 0%, #e2f4f5 35%, #ffffff 70%, #dff2ec 100%);
    color: #0A2540;
    position: relative;
    overflow-x: hidden;
}

.directory-page .site-header {
    background: #ffffff;
    padding: 18px 30px;
    border-bottom: 2px solid rgba(10, 37, 64, 0.08);
}

.directory-page .site-logo {
    height: 82px;
}

/* Decoraciones de Fondo */
.directory-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.directory-cloud {
    position: absolute;
    background-image: url('../assets/setups/texas ranch/VECTORES/clouds.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.65;
}

.cloud-top-left {
    width: 220px;
    height: 120px;
    top: 5%;
    left: -40px;
    animation: cloudDriftSlow 30s linear infinite alternate;
}

.cloud-top-right {
    width: 260px;
    height: 140px;
    top: 8%;
    right: -50px;
    animation: cloudDriftFast 24s linear infinite alternate;
}

.cloud-bottom-left {
    width: 240px;
    height: 130px;
    bottom: 15%;
    left: -60px;
    opacity: 0.45;
}

.cloud-bottom-right {
    width: 280px;
    height: 150px;
    bottom: 20%;
    right: -60px;
    opacity: 0.45;
}

.directory-sun {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -50px;
    right: 8%;
    background: url('../assets/brand/sun.png') center/contain no-repeat;
    filter: drop-shadow(0 10px 25px rgba(255, 180, 0, 0.35));
    animation: sunPulse 6s ease-in-out infinite alternate;
    opacity: 0.85;
}

@keyframes sunPulse {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.08) rotate(12deg); }
}

@keyframes cloudDriftSlow {
    from { transform: translateX(0); }
    to { transform: translateX(45px); }
}

@keyframes cloudDriftFast {
    from { transform: translateX(0); }
    to { transform: translateX(-40px); }
}

/* ==========================================================================
   LAYOUT Y NAVEGACIÓN
   ========================================================================== */
.directory-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 138px);
    padding: 36px 20px 90px;
}

.directory-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.top-nav-bar {
    max-width: 980px;
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.directory-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #0A2540;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 0 rgba(10, 37, 64, 0.18), 0 10px 20px rgba(10, 37, 64, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.directory-back-link:hover {
    transform: translateY(-2px);
    background: #FF5A60;
}

/* Selector de Pestañas (Directorio vs Formulario) */
.contact-tabs-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: 999px;
    border: 2px solid #9EC5E6;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
    gap: 6px;
}

.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    color: #5F7D95;
    transition: all 0.25s ease;
}

.tab-pill:hover {
    color: #0A2540;
    background: rgba(158, 197, 230, 0.2);
}

.tab-pill.active {
    background: #52B79A;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(82, 183, 154, 0.35);
}

.tab-icon {
    font-size: 1.1em;
}

/* ==========================================================================
   1. SECCIÓN STORYTELLING & AGRADECIMIENTO
   ========================================================================== */
.story-card {
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(32px, 5vw, 56px);
    border: 3px solid #ffffff;
    box-shadow: 0 20px 48px rgba(10, 37, 64, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.story-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 90, 96, 0.12);
    color: #FF5A60;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.story-headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #0A2540;
    line-height: 1.15;
    margin-bottom: 14px;
}

.sparkle-emoji {
    display: inline-block;
    animation: sparkleSpin 3s ease-in-out infinite alternate;
}

@keyframes sparkleSpin {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.25) rotate(15deg); }
}

.story-intro {
    max-width: 680px;
    margin: 0 auto 20px;
    color: #5F7D95;
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.55;
    font-weight: 500;
}

/* Insignias de confianza */
.trust-pills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.trust-pill {
    background: #f0f7fb;
    border: 1.5px solid #9EC5E6;
    color: #0A2540;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(10, 37, 64, 0.04);
}

.story-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.story-divider .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.story-divider .color-1 { background-color: #0A2540; }
.story-divider .color-2 { background-color: #52B79A; }
.story-divider .color-3 { background-color: #FF5A60; }
.story-divider .color-4 { background-color: #FFB400; }
.story-divider .color-5 { background-color: #9EC5E6; }

.story-body {
    max-width: 760px;
    margin: 0 auto;
    background: #f8fcff;
    border: 2px dashed #9EC5E6;
    border-radius: 20px;
    padding: 28px clamp(20px, 3.5vw, 36px);
    text-align: left;
}

.about-kicker {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #52B79A;
    margin-bottom: 14px;
}

.story-body p {
    color: #0A2540;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.story-quote {
    font-weight: 700;
    color: #0A2540 !important;
    font-style: italic;
    margin-top: 18px !important;
    margin-bottom: 16px !important;
    padding-top: 10px;
}

.story-mascot {
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(10, 37, 64, 0.14));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.mascot-farmer { width: 110px; animation: mascotBob 4s ease-in-out infinite; }
.mascot-rocket { width: 125px; animation: mascotBob 4.5s ease-in-out infinite 0.5s; }
.mascot-car { width: 140px; animation: mascotBob 5s ease-in-out infinite 1s; }

.story-mascot:hover {
    transform: scale(1.18) translateY(-10px) rotate(4deg);
}

@keyframes mascotBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   2. DIRECTORIO DE CANALES (GRID INTERACTIVO)
   ========================================================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.section-tag {
    display: inline-block;
    color: #FF5A60;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.section-title-wrap h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0A2540;
    line-height: 1.15;
}

.section-subtitle {
    max-width: 600px;
    margin: 8px auto 0;
    color: #5F7D95;
    font-size: 1rem;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.16);
}

.channel-link-area {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    min-width: 0;
}

.channel-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-card:hover .channel-icon-wrap {
    transform: scale(1.12) rotate(-4deg);
}

.channel-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.channel-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.channel-main-text {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0A2540;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-subtext {
    font-size: 0.82rem;
    color: #5F7D95;
    font-weight: 500;
}

.channel-arrow {
    font-size: 1.4rem;
    font-weight: 800;
    color: #5F7D95;
    padding-left: 6px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.channel-card:hover .channel-arrow {
    transform: translateX(5px);
    color: #0A2540;
}

.channel-copy-btn {
    border: none;
    background: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.channel-copy-btn:hover {
    background: #52B79A;
    color: #ffffff;
    transform: scale(1.15);
}

/* Colores temáticos por canal */
.card-whatsapp .channel-icon-wrap { background: #25D366; color: #ffffff; }
.card-whatsapp .channel-label { color: #1ebe5d; }
.card-whatsapp:hover { border-color: #25D366; }

.card-phone .channel-icon-wrap { background: #FF5A60; color: #ffffff; }
.card-phone .channel-label { color: #FF5A60; }
.card-phone:hover { border-color: #FF5A60; }

.card-email .channel-icon-wrap { background: #FFB400; color: #0A2540; }
.card-email .channel-label { color: #d69800; }
.card-email:hover { border-color: #FFB400; }

.card-instagram .channel-icon-wrap { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: #ffffff; 
}
.card-instagram .channel-label { color: #dc2743; }
.card-instagram:hover { border-color: #e6683c; }

.card-facebook .channel-icon-wrap { background: #1877F2; color: #ffffff; }
.card-facebook .channel-label { color: #1877F2; }
.card-facebook:hover { border-color: #1877F2; }


/* ==========================================================================
   3. SECCIÓN: MEET OUR PLAY WORLDS (DISEÑO EXACTO)
   ========================================================================== */
.play-worlds-section {
    margin-top: 10px;
}

.explore-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: #E6F7F3;
    color: #52B79A;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.worlds-main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #0A2540;
    line-height: 1.15;
    margin-bottom: 12px;
}

/* Barra de filtros */
.worlds-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.filter-btn {
    border: 1.5px solid #CBD5E1;
    background: #ffffff;
    color: #0A2540;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #94A3B8;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #0A2540;
    color: #ffffff;
    border-color: #0A2540;
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.22);
}

/* Lista de Tarjetas de Mundos */
.worlds-cards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 28px;
}

.world-showcase-card {
    display: grid;
    grid-template-columns: 42% 58%;
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(24px, 3vw, 36px);
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
    border: 2px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.world-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(10, 37, 64, 0.12);
}

/* Fondos y bordes personalizados por tema */
.card-ranch { background: #FFFDF8; border-color: #FDE68A; }
.card-space { background: #F3F9FD; border-color: #BAE6FD; }
.card-mini-space { background: #F8F7FF; border-color: #DDD6FE; }
.card-city { background: #F2FBF6; border-color: #BBF7D0; }

/* Contenedor de la escena ilustrada (Izquierda) */
.card-scene-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.08);
}

.scene-full-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.world-showcase-card:hover .scene-full-img {
    transform: scale(1.03);
}

/* Contenido de la Tarjeta (Derecha) */
.card-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.theme-tag-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.tag-ranch { background: #FFE4E6; color: #FF5A60; }
.tag-space { background: #E0F2FE; color: #0284C7; }
.tag-mini-space { background: #F3E8FF; color: #7C3AED; }
.tag-city { background: #DCFCE7; color: #16A34A; }

.theme-title {
    font-size: clamp(1.8rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: #0A2540;
    line-height: 1.15;
    margin: 0 0 4px;
}

.theme-tagline {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.tagline-ranch { color: #FF5A60; }
.tagline-space { color: #0284C7; }
.tagline-mini-space { color: #7C3AED; }
.tagline-city { color: #10B981; }

.theme-copy {
    font-size: 0.94rem;
    color: #5F7D95;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Fila de 5 Iconos de Características */
.theme-features-grid {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin: 4px 0 16px;
    padding: 0;
    background: transparent;
    border: none;
}

.feature-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
    min-width: 50px;
}

.feature-badge img {
    height: 32px;
    width: auto;
    max-width: 42px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(10, 37, 64, 0.1));
    transition: transform 0.2s ease;
}

.feature-badge:hover img {
    transform: scale(1.15);
}

.feature-badge span {
    font-size: 0.68rem;
    font-weight: 800;
    color: #5F7D95;
    line-height: 1.15;
}

/* Botón de Acción */
.card-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
    padding-right: 32px;
    padding-bottom: 8px;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.theme-btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-ranch { background: #FF5A60; }
.btn-space { background: #3B82F6; }
.btn-mini-space { background: #7C3AED; }
.btn-city { background: #10B981; }

/* ==========================================================================
   BARRA INFERIOR DE VALORES / TRUST FOOTER (COMO EN LA IMAGEN)
   ========================================================================== */
.worlds-trust-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    padding: 24px 20px;
    gap: 20px;
    margin-top: 36px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
}

.trust-footer-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-footer-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
}

.trust-footer-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 3px;
}

.trust-footer-text p {
    font-size: 0.78rem;
    color: #5F7D95;
    line-height: 1.4;
    margin: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.dir-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0A2540;
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.35);
    border: 2px solid #52B79A;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    pointer-events: none;
}

.dir-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsividad para móviles y tablets */
@media (max-width: 860px) {
    .top-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-back-link {
        align-self: flex-start;
    }

    .contact-tabs-toggle {
        justify-content: center;
    }

    .story-mascot-row {
        gap: 18px;
    }

    .mascot-farmer { width: 85px; }
    .mascot-rocket { width: 95px; }
    .mascot-car { width: 110px; }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .world-showcase-card {
        grid-template-columns: 1fr;
    }

    .card-scene-wrapper {
        min-height: 240px;
        height: 240px;
    }

    .worlds-trust-footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-action-row {
        justify-content: flex-end;
        padding-right: 0;
        padding-top: 12px;
    }
}

@media (max-width: 540px) {
    .worlds-trust-footer {
        grid-template-columns: 1fr;
    }
    .theme-features-grid {
        gap: 8px;
    }
    .card-action-row {
        justify-content: center;
        width: 100%;
    }
    .theme-btn {
        width: 100%;
        justify-content: center;
    }
}
