@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

/* ==========================================================================
   AUSTIN KIDS EVENTS - ESTILOS PRINCIPALES (STYLES.CSS)
   ========================================================================== */

/* 1. Reseteo y Variables Globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    min-height: 100vh;
    font-family: 'Fredoka', sans-serif;
    background-color: #f8fafc;
    color: #0A2540;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   2. HEADER Y LOGO PRINCIPAL (Cabecera limpia y destacada)
   ========================================================================== */
.site-header {
    width: 100%;
    background-color: #ffffff;
    padding: 24px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.04);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    width: 100%;
}

.header-lang-switch {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #0A2540;
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.lang-option {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option.is-active {
    background: #ffffff;
    color: #0A2540;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Logo con gran protagonismo visual en la parte superior */
.site-logo {
    height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}


/* ==========================================================================
   3. LAYOUT PRINCIPAL (Contenedor central del Banner y Botones)
   ========================================================================== */
.site-main {
    width: auto;
    min-height: calc(100vh - 158px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px) 14px clamp(48px, 5vw, 72px);
    background: transparent;
}

/* Lienzo amplio para dar espacio al cuadro ampliado del carrusel */
.hero-showcase-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-copy {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto clamp(16px, 2.2vw, 26px);
    z-index: 3;
    text-align: center;
    padding: 0 12px;
    animation: hero-copy-enter 0.8s ease both;
    transition: all 0.4s ease;
}

/* Título Principal con Relieve y Sombra 3D */
.hero-copy h1 {
    font-family: 'Fredoka', sans-serif;
    max-width: 860px;
    margin: 0 auto 10px;
    font-size: clamp(1.85rem, 3.8vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-wrap: balance;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

body[data-theme="ranch"] .hero-copy h1,
body[data-theme="city"] .hero-copy h1 {
    color: #0A2540;
    text-shadow: 0 3px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(10, 37, 64, 0.16);
}

body[data-theme="space"] .hero-copy h1 {
    color: #FFFFFF;
    text-shadow: 0 0 18px rgba(82, 183, 154, 0.7), 0 3px 6px rgba(0, 0, 0, 0.8);
}

/* Subtítulo Estilizado en Pastilla */
.hero-subtitle {
    display: inline-block;
    margin: 0 auto 12px;
    max-width: 780px;
    font-size: clamp(0.85rem, 1.2vw, 1.08rem);
    line-height: 1.35;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 999px;
    text-wrap: balance;
    transition: all 0.4s ease;
}

body[data-theme="ranch"] .hero-subtitle,
body[data-theme="city"] .hero-subtitle {
    background: rgba(255, 255, 255, 0.92);
    color: #0A2540;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.08);
    border: 1.5px solid rgba(158, 197, 230, 0.6);
}

body[data-theme="space"] .hero-subtitle {
    background: rgba(10, 37, 64, 0.75);
    color: #9EC5E6;
    border: 1.5px solid rgba(82, 183, 154, 0.45);
    box-shadow: 0 0 14px rgba(82, 183, 154, 0.25);
}

/* Descripción */
.hero-description {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(0.82rem, 1.05vw, 0.96rem);
    line-height: 1.5;
    font-weight: 500;
    text-wrap: balance;
    transition: all 0.4s ease;
}

body[data-theme="ranch"] .hero-description,
body[data-theme="city"] .hero-description {
    color: #0A2540;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-theme="space"] .hero-description {
    color: #E2E8F0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-backdrop-decor {
    position: absolute;
    inset: -72px -165px -48px;
    z-index: 1;
    pointer-events: none;
}

.scene-vector {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 6px rgba(10, 37, 64, 0.12));
}

.scene-cloud {
    width: 220px;
    opacity: 0.9;
}

.cloud-left { left: 10%; top: 0; }
.cloud-right { right: 10%; top: 8%; transform: scale(0.8); }

.scene-tree {
    width: 470px;
    top: 18%;
}

.scene-tree-left { left: 2%; transform: scale(0.98); transform-origin: bottom left; }
.scene-tree-right { right: 2%; transform: scale(0.86); transform-origin: bottom right; }

.scene-farmer {
    width: 255px;
    left: 14%;
    bottom: -12%;
    transform: rotate(-4deg);
}

.scene-horse {
    width: 440px;
    right: 0;
    bottom: 3%;
    transform: scaleX(-1) rotate(-2deg);
}

.scene-barn {
    width: 350px;
    left: -1%;
    bottom: -3%;
    transform: scale(0.82);
    transform-origin: bottom left;
}

.scene-tractor {
    width: 275px;
    right: 13%;
    bottom: -2%;
    transform: rotate(-5deg);
}

.scene-cow {
    width: 245px;
    left: 26%;
    bottom: -4%;
    transform: scaleX(-1);
}

.scene-chicken {
    width: 155px;
    right: 25%;
    bottom: -2%;
}

.scene-flowers {
    width: 220px;
    bottom: -5%;
}

.flowers-left { left: 32%; }
.flowers-right { right: 31%; transform: scale(0.8); transform-origin: bottom right; }

@keyframes prop-float {
    from { translate: 0 0; }
    to { translate: 0 -10px; }
}


/* ==========================================================================
   4. SECCIÓN DEL CARRUSEL (Más grande hacia arriba, izquierda y derecha)
   ========================================================================== */
.hero-carousel-section {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    position: relative;
    margin-top: 0;
    margin-inline: auto;
    z-index: 2;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(10, 37, 64, 0.09);
    border: 2px solid #e2e8f0;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 16 / 9.5; 
    background-color: #f1f5f9;
    position: relative;
}

.carousel-caption {
    position: absolute;
    right: 5%;
    bottom: 18px;
    left: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.2vw, 14px);
    padding: clamp(7px, 0.8vw, 10px) clamp(10px, 1.5vw, 18px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(82, 183, 154, 0.94);
    color: #0A2540;
    font-size: clamp(0.72rem, 1.25vw, 1rem);
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    z-index: 4;
    animation: caption-rise 0.9s 0.25s ease both;
}

.caption-spark {
    color: #FFB400;
    font-size: 1.25em;
    animation: spark-pulse 1.8s ease-in-out infinite;
}

.carousel-track {
    list-style: none;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.carousel-slide.current {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Flechas de navegación laterales del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #9EC5E6;
    border: 3px solid #ffffff;
    width: clamp(34px, 3.5vw, 48px);
    height: clamp(34px, 3.5vw, 48px);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
    color: #0A2540;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-control:hover {
    background-color: #52B79A;
    color: #ffffff;
    border-color: #ffffff;
}

.carousel-control.prev { left: clamp(-24px, -2vw, -12px); }
.carousel-control.next { right: clamp(-24px, -2vw, -12px); }


/* ==========================================================================
   5. BOTONES CIRCULARES (Anclados firmemente en la base inferior)
   ========================================================================== */
.action-btn {
    position: absolute;
    bottom: clamp(10px, 2vw, 36px);
    width: clamp(90px, 12vw, 150px);
    height: clamp(90px, 12vw, 150px);
    border-radius: 50%;
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(8px, 1.4vw, 18px);
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(0.68rem, 1vw, 0.95rem);
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.15);
    z-index: 20;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: action-breathe 3s ease-in-out infinite;
}

.action-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.22);
}

.action-services {
    left: max(8px, calc((100% - 1060px) / 2));
    background-color: #FF5A60;
    color: #ffffff;
}

.action-contact {
    right: max(8px, calc((100% - 1060px) / 2));
    background-color: #0A2540;
    color: #ffffff;
}

@keyframes hero-copy-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes caption-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spark-pulse {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.25) rotate(12deg); }
}

@keyframes action-breathe {
    0%, 100% { box-shadow: 0 10px 25px rgba(10, 37, 64, 0.15); }
    50% { box-shadow: 0 14px 30px rgba(10, 37, 64, 0.24); }
}


/* ==========================================================================
   6. BARRA INFERIOR DECORATIVA DE COLOR
   ========================================================================== */
.brand-bottom-color-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 10px; /* Grosor elegante de la franja */
    display: flex;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.color-segment {
    flex: 1;
    height: 100%;
}

/* Paleta de colores oficial basada en la referencia visual */
.color-1 { background-color: #0f172a; } /* Azul oscuro / Marino */
.color-2 { background-color: #5eead4; } /* Turquesa suave / Menta */
.color-3 { background-color: #ff6b6b; } /* Coral vibrante */
.color-4 { background-color: #fbbf24; } /* Amarillo cálido / Oro */
.color-5 { background-color: #93c5fd; } /* Azul cielo claro */


/* ==========================================================================
   7. ADAPTABILIDAD MÓVIL (Responsive Design)
   ========================================================================== */
@media (max-width: 960px) {
    .action-services {
        left: 4px;
    }

    .action-contact {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .site-logo {
        height: 52px;
    }

    .site-main {
        padding: 20px 10px 48px;
    }

    .hero-showcase-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 16px;
        row-gap: 20px;
        padding: 10px 12px 20px;
    }

    .hero-copy {
        position: relative;
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        margin: 0 0 4px;
        padding: 0;
    }

    .hero-copy h1 {
        font-size: clamp(1.45rem, 6.2vw, 2.1rem);
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.82rem;
        line-height: 1.35;
        padding: 6px 16px;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .hero-carousel-section {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0 auto;
    }

    .hero-backdrop-decor {
        inset: -35px -62px -28px;
    }

    .scene-tree { width: 260px; }
    .scene-cloud { width: 112px; }
    .scene-farmer { width: 135px; left: 4%; }
    .scene-horse { width: 230px; right: -8%; }
    .scene-barn { width: 190px; }
    .scene-tractor { width: 150px; right: 5%; }
    .scene-cow { width: 132px; left: 18%; }
    .scene-chicken { width: 84px; right: 18%; }
    .scene-flowers { width: 120px; }

    .carousel-container {
        padding: 10px;
        border-radius: 20px;
    }

    .carousel-caption {
        right: 4%;
        bottom: 12px;
        left: 4%;
        gap: 7px;
        padding: 8px 10px;
        line-height: 1.15;
    }

    .carousel-track-container {
        aspect-ratio: 4 / 3;
    }

    .action-btn {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: clamp(92px, 24vw, 120px);
        height: clamp(92px, 24vw, 120px);
        border-width: 3.5px;
        font-size: clamp(0.68rem, 2.2vw, 0.82rem);
        line-height: 1.2;
        padding: 8px;
        justify-self: center;
    }

    .action-services {
        grid-column: 1;
        grid-row: 3;
    }

    .action-contact {
        grid-column: 2;
        grid-row: 3;
    }

    .action-btn:hover {
        transform: translateY(-4px) scale(1.04);
    }
}

body[data-theme="city"] {
    background: #9EC5E6;
}

h1, h2, h3, .card-title-overlay, .rental-cta {
    font-family: 'Fredoka', sans-serif;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 16px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #0A2540;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 0 rgba(10, 37, 64, 0.16), 0 10px 20px rgba(10, 37, 64, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover {
    transform: translateY(-3px);
    background: #FFB400;
    color: #0A2540;
}

.services-back-link {
    position: absolute;
    top: 1.5rem;
    left: max(1rem, calc((100% - 1180px) / 2));
    margin-bottom: 0;
    z-index: 5;
}

.contact-back-link {
    position: relative;
    z-index: 3;
    background: #9EC5E6;
    color: #0A2540;
}