/* Importar una fuente amigable para niños */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&family=Fredoka+One&display=swap');

/* Reseteo básico y box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    /* Fondo de estrellas repetitivo con capa oscura para toda la página */
    background: linear-gradient(rgba(12, 0, 31, 0.80), rgba(12, 0, 31, 0.90)), url('../images/bg.jpg');
    background-repeat: no-repeat, repeat; /* Gradiente cubre, imagen se repite */
    background-attachment: fixed, fixed; /* Ambos fijos para efecto parallax */
    background-size: cover, auto; /* Gradiente cubre viewport, imagen tamaño natural */
    background-color: #0c001f; /* Color de respaldo si la imagen no carga */
    color: #ffffff;
    overflow-x: hidden; /* Evitar scroll horizontal */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0; /* Padding vertical para el contenido dentro de los contenedores */
}

/* Header y Navegación */
header {
    padding: 10px 0; 
    background-color: rgba(12, 0, 31, 0.85); 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav { /* El .container dentro del header hereda el padding de .container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.logo {
  height: 130px; /* Adjust as needed: visible part after cropping */
  overflow: hidden;
  position: relative;
}

.logo img {
  width: 180px; 
  height: auto; 
  display: block;
  position: relative;
  top: -10px; /* This crops the top 100px */
}

nav ul {
    list-style: none;
    /* padding: 0; Ya está en el reset */
    /* margin: 0; Ya está en el reset */
    display: flex;
    flex-wrap: wrap; 
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffc107; 
}

.menu-toggle {
    display: none; 
    font-size: 2em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Ajuste para el scroll y el header fijo */
.hero, .section { 
    scroll-margin-top: 90px; 
}


/* Hero Section */
.hero {
    min-height: 80vh; 
    display: flex; /* Para centrar el .container verticalmente si es necesario */
    align-items: center; /* Para centrar el .container verticalmente */
    padding: 40px 0; /* Padding vertical de la sección hero */
}

.hero > .container { /* Estilos para el .container específico del hero */
    display: flex;
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan en pantallas pequeñas */
    align-items: center;
    justify-content: space-between; /* Para separar el contenido y la imagen */
    width: 100%; /* Asegurar que el contenedor use el ancho disponible */
}

.hero-content {
    flex: 1 1 50%; /* Crecer, encoger, base del 50% */
    max-width: 50%; /* No exceder el 50% */
    padding-right: 20px; /* Espacio a la derecha del texto, reducido */
    animation: slideInFromLeft 1s ease-out;
}

.hero-image-placeholder {
    flex: 1 1 45%; /* Crecer, encoger, base del 45% */
    max-width: 45%; /* No exceder el 45% */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; 
    animation: slideInFromRight 1s ease-out;
}

.hero-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero h1 {
    font-family: 'Fredoka One', cursive; 
    font-size: 3.5em; 
    color: #ffc107; 
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff6f00; 
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 50px; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
}

.cta-button:hover {
    background-color: #ff8f00; 
    transform: scale(1.05); 
}
.cta-button .rocket-icon {
    margin-right: 10px;
}

/* Secciones Generales */
.section {
    padding: 60px 0; 
    text-align: center;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8em;
    color: #ffc107;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.section-title::after { 
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ff6f00;
    margin: 10px auto 0;
    border-radius: 2px;
}


/* Sección "Nuestra Estación de Juegos" */
#park-features .park-image-container {
    margin-bottom: 40px;
    position: relative; 
}
#park-features .park-image-container img.main-park-image { 
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.overlay-illustration {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-illustration img { 
    max-width: 100%;
    height: auto;
}
.overlay-illustration.alien1 { top: 10%; left: 5%; transform: rotate(-15deg); width: 100px; height: 100px;}
.overlay-illustration.rocket1 { bottom: 15%; right: 10%; transform: rotate(20deg); width: 90px; height: 90px;}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    text-align: left;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #ff6f00;
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-10px);
}
.feature-item h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5em;
    color: #ffc107;
    margin-top: 0;
    margin-bottom: 10px;
}
.feature-item .feature-icon { 
    font-size: 1.5em;
    margin-right: 10px;
    color: #ff6f00;
}

/* Sección "Mapa Estelar" (Ubicación) */
#location .location-content {
    display: flex;
    flex-wrap: wrap; 
    align-items: flex-start; 
    gap: 30px;
}
#location .map-container {
    flex: 1; 
    min-width: 300px; 
    height: 400px; 
    border-radius: 15px;
    overflow: hidden; 
    display: flex; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
#location .map-container iframe {
    width: 100%; 
    height: 100%; 
    border: none; 
}

#location .contact-info {
    flex: 1; 
    min-width: 300px; 
    text-align: left;
    background-color: rgba(255,255,255,0.05); 
    padding: 20px;
    border-radius: 15px;
}
#location .contact-info h4 {
    font-family: 'Fredoka One', cursive;
    color: #ffc107;
    font-size: 1.4em;
    margin-top:0;
}
#location .contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}
.location-illustration-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-illustration-placeholder img {
    max-width: 100%;
    height: auto;
}


/* Footer */
footer {
    background-color: rgba(7, 0, 17, 0.9); 
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}
footer p { margin: 5px 0; } /* Sobrescribe el reset para los p del footer si es necesario */
footer a { color: #ffc107; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.social-icons a {
    margin: 0 10px;
    font-size: 1.5em; 
}

/* Animaciones Sutiles */
@keyframes slideInFromLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Media Queries para Responsividad Básica */
@media (max-width: 768px) {
    .logo img {
        width: 150px; 
    }
    .hero, .section {
         scroll-margin-top: 80px; 
    }
    .hero > .container { /* Ajuste para el hero en tablet */
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%; /* Permitir que el contenido ocupe todo el ancho */
        padding-right: 0; /* Sin padding a la derecha cuando está apilado */
        margin-bottom: 30px;
    }
    .hero-image-placeholder {
         max-width: 80%; 
         margin: 0 auto;
         flex-basis: auto; /* Resetear flex-basis */
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .cta-button {
        font-size: 1.2em;
        padding: 12px 25px;
    }

    .section-title {
        font-size: 2em;
    }
    
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(12, 0, 31, 0.95);
        padding: 10px 0;
    }
    nav ul.active {
        display: flex; 
    }
    nav ul li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block; 
    }
    
    #location .location-content {
        flex-direction: column;
    }
     #location .map-container {
        height: 300px; 
    }
}
 
@media (max-width: 480px) {
    .logo img {
        width: 120px; 
    }
    .hero, .section {
         scroll-margin-top: 70px; 
    }
     nav ul li a {
        font-size: 1em; 
    }
     nav ul li {
        margin-left: 15px; 
    }
    .hero h1 {
        font-size: 2.2em; /* Ajustar más el título del hero */
    }
}
/* =============================================== */
/* === ESTILOS PARA FORMULARIO DE RESERVA === */
/* =============================================== */

#contact #bookingForm {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ff6f00;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
    color: #ffc107;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #222;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
}

/* --- Estilos para el nuevo selector numérico (Stepper) --- */
.number-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222;
    border-radius: 5px;
    border: 1px solid #555;
    padding: 5px;
    width: 150px; /* Ancho del componente */
}

.number-stepper button {
    background-color: #ffc107;
    color: #0c001f;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    line-height: 35px;
    text-align: center;
    transition: background-color 0.3s;
}

.number-stepper button:hover {
    background-color: #ff8f00;
}

.number-stepper input[type="number"] {
    width: 50px;
    text-align: center;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    /* Ocultar las flechas por defecto del input number */
    -moz-appearance: textfield;
}

.number-stepper input[type="number"]::-webkit-outer-spin-button,
.number-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =============================================== */
/* === ESTILOS PARA EL POPUP DE NOTIFICACIÓN === */
/* =============================================== */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInPopup 0.5s forwards;
}

.popup.success {
    background-color: #28a745; /* Verde éxito */
}

.popup.failure {
    background-color: #dc3545; /* Rojo fracaso */
}

@keyframes fadeInPopup {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}