/* Reset de márgenes, padding y box-sizing para todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para los colores de la paleta proporcionada */
:root {
    --coral: #E85A4F;      /* Color coral de la paleta */
    --yellow: #F4D35E;     /* Color amarillo para fondo */
    --dark-gray: #4A4E69;  /* Color gris oscuro de la paleta */
    --white: #FFFFFF;      /* Blanco para contraste */
    --light-gray: #F8F9FA; /* Gris claro para efectos hover */
    --nav-bg: #452C63;     /* Color de fondo del navbar */
}

/* Configuración general del body */
body {
    font-family: 'Fredoka', sans-serif; /* Fuente infantil pero profesional */
    background: linear-gradient(to right, #FD5759, #8D52FC);
    min-height: 100vh;                  /* Altura mínima de toda la ventana */
    overflow-x: hidden;                 /* Evita scroll horizontal */
    position: relative;                 /* Para posicionamiento de elementos decorativos */
    padding-top: 180px; /* Para compensar la altura de ambas barras */
    transition: padding-top 0.3s ease;
}

/* ==========================================
   TÍTULO DINÁMICO
   ========================================== */
.dynamic-title {
    font-family: "Monotype Corsiva", cursive;
    font-weight: bold;
    color: #FFFFFF; /* Blanco */
    text-align: center;
    margin: 2px auto 2px;
    padding: 0 20px;
    max-width: 1000px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
    font-size: 3.5rem;
    line-height: 1.2;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 25px rgba(255, 255, 255, 0.8),
            0 0 35px rgba(255, 255, 255, 0.6),
            0 0 45px rgba(255, 255, 255, 0.4);
    }
}

/* ==========================================
   NAVBAR PRINCIPAL
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Logo a la izquierda */
.nav-logo {
    width: 160px;
    height: auto;
    transition: all 0.3s ease;
}

/* Número de teléfono a la derecha */
.phone-number {
    color: var(--nav-bg);
    background-color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 2rem;
    border-bottom: 3px solid white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka', sans-serif;
}

.phone-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

/* ==========================================
   NAVBAR SECUNDARIO (BOTONES FLOTANTES)
   ========================================== */
.nav-buttons {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Alineación a la derecha */
    align-items: center;
    gap: 30px;
    padding: 15px 40px;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Contenedor para logo y botones alineados a la derecha */
.nav-right-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: transparent;
}

/* Estilo de los botones de navegación */
.nav-button {
    color: var(--nav-bg);
    background-color: white;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 25px;
    border-radius: 25px;
    display: block;
    white-space: nowrap;
    border: 4px solid var(--nav-bg);
}

.nav-button:hover {
    background-color: var(--nav-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Efecto de línea inferior animada */
.nav-button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--nav-bg);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-button:hover::after {
    width: 80%;
}

/* Logo pequeño en navbar secundario */
.nav-logo-small {
    width: 150px;
    height: auto;
    transition: all 0.3s ease;
    display: none;
}

/* ==========================================
   ESTILOS CUANDO SE HACE SCROLL
   ========================================== */
.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-buttons.scrolled {
    top: 0;
    padding: 10px 40px;
    background-color: transparent;
}

.nav-buttons.scrolled .nav-logo-small {
    display: block;
}

/* ==========================================
   ELEMENTOS DECORATIVOS DE FONDO
   ========================================== */

/* Contenedor de elementos decorativos que flotan en el fondo */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;           /* Detrás de todo el contenido */
    pointer-events: none; /* No interfiere con clics */
    overflow: hidden;     /* Oculta el confeti que se sale del contenedor */
}

/* Base de los elementos de confeti */
.confetti {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--white); /* Color por defecto, sobrescrito por clases */
    top: -20px;
    animation: fall 10s linear infinite; /* Animación de caída */
    opacity: 0.8;
}

/* Colores específicos para el confeti */
.confetti.red {
    background-color: var(--coral);
}

.confetti.silver {
    background-color: #C0C0C0; /* Color plata */
}

.confetti.white {
    background-color: var(--white);
}

/* Variaciones de tamaño y forma para realismo */
.confetti:nth-child(2n) {
    width: 8px;
    height: 8px;
    border-radius: 50%; /* Confeti circular */
}

.confetti:nth-child(3n) {
    width: 15px;
    height: 8px;
    transform: rotate(45deg); /* Confeti en forma de rombo */
}

/* ==========================================
   ANIMACIÓN DE CONFETI
   ========================================== */

/* Animación de caída y rotación */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.2;
    }
}

/* ==========================================
   CONTENEDOR PRINCIPAL
   ========================================== */

/* Contenedor que centra y limita el ancho del contenido */
.container {
    max-width: 1200px;    /* Ancho máximo responsive */
    margin: -40px auto 40px;       /* Centrado horizontal */
    padding: 0 20px;      /* Padding lateral */
    position: relative;   /* Para z-index */
    z-index: 1;          /* Por encima de elementos decorativos */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
    text-align: center;
}

/* ==========================================
   HEADER - ENCABEZADO
   ========================================== */

.main-title {
    font-size: 4rem;                              /* Tamaño grande para impacto */
    font-weight: 700;                             /* Peso bold */
    color: var(--dark-gray);                      /* Color principal */
    text-shadow: 3px 3px 0px rgb(255, 255, 255); /* Sombra coral */
    margin-bottom: 20px;                          /* Separación del subtítulo */
    letter-spacing: -0.02em;                      /* Spacing ajustado */
    line-height: 1.1;   
    text-align: center;                         /* Altura de línea compacta */
}

@keyframes rollIn {
    0% {
        transform: rotateZ(-90deg) translateY(-200px);
        opacity: 0;
    }
    100% {
        transform: rotateZ(0deg) translateY(0);
        opacity: 1;
    }
}

.main-title span {
    display: inline-block; /* Crucial to apply transforms to each letter */
    transform-origin: bottom left; /* Rueda desde la esquina inferior izquierda */
    opacity: 0;
    animation: rollIn 0.8s forwards; /* La animación se ejecuta una vez y se queda en el 100% */
}

/* Subtítulo descriptivo */
.subtitle {
    font-size: 1.4rem;        /* Tamaño mediano */
    color: var(--dark-gray);   /* Mismo color que título */
    font-weight: 400;         /* Peso normal */
    opacity: 0.8;             /* Ligeramente transparente */
}

@keyframes squeeze {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(0.1); }
    100% { transform: scaleX(1); }
}

/* Animation for the bus icon */
@keyframes busLeave {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100vw); } /* Avanza por toda la pantalla */
}

/* ==========================================
   CONTENIDO PRINCIPAL
   ========================================== */

/* Contenedor de los botones principales */
.main-content {
    display: flex;                /* Flexbox para alineación */
    justify-content: center;      /* Centrado horizontal */
    align-items: center;          /* Centrado vertical */
    min-height: 400px;           /* Altura mínima */
    gap: 20px;                   /* Espacio entre botones */
    padding: 20px 0;             /* Padding vertical */
}

/* ==========================================
   BOTONES PRINCIPALES
   ========================================== */

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 100%;   /* en lugar de 90vw */
    margin: 40px auto;   /* centra respecto al contenedor */
}

.buttons a {
    flex: 1;
    max-width: 1000px;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buttons a img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Animación al pasar/click */
.buttons a:hover,
.buttons a:active {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* Estilos para los íconos de belleza que se generan */
.beauty-icon {
    position: absolute;
    font-size: 1.5rem; /* Tamaño del ícono */
    opacity: 0;
    pointer-events: none; /* No interfiere con el botón */
    animation: fade-up-and-out 1s ease-out forwards;
    z-index: 3; /* Asegura que esté por encima de todo */
}

/* Animación de los íconos */
@keyframes fade-up-and-out {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0.8);
        opacity: 0;
    }
}

.button-container:has(.party-button2)::before {
    content: '';
    position: absolute;
    top: -15px; /* Ajusta este valor para el tamaño del resplandor */
    left: -8px; /* Ajusta este valor para el tamaño del resplandor */
    right: -8px; /* Ajusta este valor para el tamaño del resplandor */
    bottom: -8px; /* Ajusta este valor para el tamaño del resplandor */
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    border-radius: 25px; /* Debe coincidir con el border-radius del .button-container */
    z-index: 1; /* Ahora lo ponemos por encima del z-index del botón, pero debajo del botón en sí */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Crucial para que puedas hacer clic en el botón */
}

/* Animación del degradado para el borde (sin cambios) */
@keyframes rgb-border-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Al pasar el cursor, activamos la visibilidad y la animación del borde */
/* Ahora el hover se aplica al .button-container */
.button-container:has(.party-button2):hover::before {
    opacity: 1;
    animation: rgb-border-animation 4s linear infinite;
}

/* ==========================================
   BOOKINGS SECTION
   ========================================== */

.bookings {
    padding: 60px 0;
    border-radius: 0;
    margin: 0 auto;
}

.bookings .header {
    padding: 20px 0 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--coral), var(--yellow));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(232, 90, 79, 0.2);
    border-color: var(--coral);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.service-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    font-family: 'Fredoka', sans-serif;
}

/* ==========================================
   Galeria
   ========================================== */

/* Gallery Container */
.gallery {
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
    cursor: grab;
    user-select: none;
    position: relative;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* Base style for all gallery items */
.gallery-item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scales and styles for the active (main) image */
.gallery-item.active {
    width: 450px;
    height: 300px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #FFF9F0;
    transform: scale(1.1); /* Slightly larger */
}

/* Scales for the images on the sides */
.gallery-item:not(.active) {
    transform: scale(0.7);
    opacity: 0.7;
    z-index: 1;
}

/* Adjustments for images further away from the center */
.gallery-item:not(.active).hidden {
    transform: scale(0.5);
    opacity: 0;
}

/* Footer fijo en la parte inferior */
.footer {
    background: var(--dark-gray); /* Fondo gris oscuro */
    padding: 15px 0;          /* Padding vertical */
    z-index: 10;              /* Por encima de todo */
}

/* Contenido del footer */
.footer-content {
    text-align: center;       /* Centrado */
    color: var(--white);      /* Texto blanco */
    font-size: 0.9rem;       /* Tamaño pequeño */
    font-weight: 400;        /* Peso normal */
}

/* ==========================================
   ANIMACIONES PREPARADAS PARA FUTURO USO
   ========================================== */

/* Clase para animar las manchas de fondo */
.animate-blob {
    animation: pulse 3s ease-in-out infinite;
}

/* Animación de pulso para las manchas */
@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.7;
    }
}

/* Clase para animar botones */
.animate-button {
    animation: bounce 2s ease-in-out infinite;
}

/* Animación de rebote para botones */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.boton-llamada-fijo i {
    font-size: 3rem;
}

.boton-llamada-fijo:hover{
    background-color: #128c7e; /* Verde de WhatsApp más oscuro */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.boton-llamada-fijo {
    background-color: #338045; /* Verde más fuerte */
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    bottom: 50px; /* Colocado encima del botón de WhatsApp */
    right: 20px;
    z-index: 1000;
    font-size: 1.5rem;
}

/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */

.contact-section {
    padding: 60px 0;
    margin-top: 40px;
    position: relative;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--nav-bg);
    font-family: 'Fredoka', sans-serif;
    text-shadow: 2px 2px 0px rgba(232, 90, 79, 0.2);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-form {
    background-color: var(--nav-bg);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }
.form-group:nth-child(6) { animation-delay: 0.5s; }
.form-group:nth-child(7) { animation-delay: 0.6s; }
.form-group:nth-child(8) { animation-delay: 0.7s; }
.form-group:nth-child(9) { animation-delay: 0.8s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    color: #FFF9F0;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
}

/* Indicador visual para campos requeridos */
.form-group:has([required]) label::after {
    content: '*';
    color: #FFD700;
    font-weight: 700;
    margin-left: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    background-color: #FFF9F0;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para select */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 249, 240, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Estados de hover mejorados */
@media (hover: hover) and (pointer: fine) {
    .form-group input:hover:not(:focus),
    .form-group textarea:hover:not(:focus),
    .form-group select:hover:not(:focus) {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15), inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Efectos de focus mejorados */
.form-group.focused label {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilos para campos con error */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    background-color: rgba(255, 182, 193, 0.8) !important;
    box-shadow: 0 0 0 2px #ff6b6b, inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

/* Animación de shake para errores */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(-3px);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Estilos para campos válidos */
.form-group input:valid:not(:placeholder-shown):not(:focus),
.form-group textarea:valid:not(:placeholder-shown):not(:focus),
.form-group select:valid:not([value=""]):not(:focus) {
    background-color: rgba(144, 238, 144, 0.3);
    box-shadow: 0 0 0 2px #4CAF50, inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background-color: #FFF9F0;
    color: var(--nav-bg);
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 30px auto 0;
    min-width: 180px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.9s;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color: var(--dark-gray);
    color: #FFF9F0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para el botón en estado de carga */
.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
    background-color: var(--dark-gray);
    color: #FFF9F0;
}

/* Spinner para el estado de carga */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de éxito/error mejorado */
.form-message {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: linear-gradient(135deg, rgba(255, 249, 240, 0.95) 0%, rgba(255, 249, 240, 0.8) 100%);
    color: var(--dark-gray);
    border: 3px solid #4CAF50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.form-message.error {
    background: linear-gradient(135deg, rgba(255, 249, 240, 0.95) 0%, rgba(255, 249, 240, 0.8) 100%);
    color: var(--dark-gray);
    border: 3px solid #f44336;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.form-message.info {
    background: linear-gradient(135deg, rgba(255, 249, 240, 0.95) 0%, rgba(255, 249, 240, 0.8) 100%);
    color: var(--dark-gray);
    border: 3px solid #2196F3;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Efectos de fondo decorativos */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(232, 90, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(244, 211, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(74, 78, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.banner{
    height: 25%;
    width: 25%;
    margin-bottom: 30px;
}

/* ==========================================
   SECCIONES DE CONTENIDO
   ========================================== */

.content-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 500px;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-text {
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}

.click{
    font-family: "Arial";
    color: white;
    text-align: right;
    font-size: 1.1;
}

.click.right{
    color: white;
    text-align: left;
}

/* ==========================================
   RESPONSIVE DESIGN - TABLETS
   ========================================== */

@media (max-width: 768px) {
    .dynamic-title {
        margin: 100px auto 10px;
    }

    .container .buttons {
    display: flex !important;
    flex-direction: row !important;   /* fila */
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;   
    margin: 50px auto 10px;
  }
  .container .buttons a {
    flex: 1 1 0 !important;           /* que se repartan el ancho */
    max-width: 50% !important;        /* cada uno ~la mitad */
  }

    .btn1, .btn2 {
        max-width: 250px;
    }

    .btn1 img {
        content: url("img/btnc1.png");
    }
    .btn2 img {
        content: url("img/btnc2.png");
    }

    /* Título más pequeño en tablets */
    .main-title {
        font-size: 2.5rem;
        text-align: center;
    }

    /* Botones en columna en lugar de fila */
    .main-content {
        flex-direction: column;  /* Cambio a columna */
        gap: 40px;              /* Menos espacio entre botones */
        padding: 50px 0;        /* Menos padding */
    }
    
    .click{
    color: white;
    text-align: right;
    font-size: 1.1rem;
}

.click.right{
    color: white;
    text-align: left;
}
    
    .bookings {
        padding: 20px 0 40px; /* ← Top reducido, bottom normal */
        margin-top: -230px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }

    .gallery {
        padding: 20px 0;
    }

    /* Ajustes para el contenedor de las imágenes */
    .gallery-wrapper {
        gap: 10px; /* Reducimos el espacio entre imágenes */
    }

    /* Dimensiones para la imagen activa (central) */
    .gallery-item.active {
        width: 250px;
        height: 167px; /* Mantiene la proporción 2:3 */
        border: 2px solid var(--coral); /* Borde más delgado */
        transform: scale(1.05); /* Escala ligeramente menor para que quepa */
    }

    /* Dimensiones para las imágenes laterales */
    .gallery-item:not(.active) {
        width: 150px;
        height: 100px; /* Mantiene la proporción 2:3 */
        transform: scale(0.7);
        opacity: 0.7;
    }

    /* Dimensiones para las imágenes de los extremos */
    .gallery-item:not(.active).hidden {
        width: 90px;
        height: 60px; /* Mantiene la proporción 2:3 */
        transform: scale(0.5);
        opacity: 0;
    }

    /* Ajustes en el texto y títulos para pantallas pequeñas si es necesario */
    .main-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    /* Navbar responsive para tablets */
    .navbar {
        height: 80px;
        padding: 0 20px;
    }

    .nav-logo {
        width: 110px;
        margin: 0 auto;
    }

    .phone-number {
        display: none;
    }

    .nav-button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .nav-buttons {
        top: 80px;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-right-container {
        gap: 15px;
    }
    
    .nav-buttons.scrolled {
        padding: 10px 20px;
    }
    
    .nav-logo-small {
        width: 90px;
    }
    
    body {
        padding-top: 150px;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - MÓVILES
   ========================================== */

@media (max-width: 480px) {
    .dynamic-title {
        margin: 50px auto 10px;
    }

    .container .buttons {
    display: flex !important;
    flex-direction: row !important;   /* fila */
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;   
    margin: 50px auto 10px;
  }
  .container .buttons a {
    flex: 1 1 0 !important;           /* que se repartan el ancho */
    max-width: 50% !important;        /* cada uno ~la mitad */
  }

    .btn1 img {
        content: url("img/btnc1.png");
    }
    .btn2 img {
        content: url("img/btnc2.png");
    }

    .bookings {
        padding: 20px 0 40px; /* ← Top reducido, bottom normal */
        margin-top: -260px;
    }

    .contact-section {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
    }

    /* Navbar responsive para móviles */
    .navbar {
        height: 70px;
        padding: 0 15px;
    }

    .nav-logo {
        width: 90px;
    }

    .phone-number {
        display: none;
    }

    .nav-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .nav-buttons {
        top: 70px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
        justify-content: flex-end;
    }
    
    .nav-right-container {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-buttons.scrolled {
        padding: 8px 15px;
    }
    
    .nav-logo-small {
        width: 90px;
    }

    body {
        padding-top: 120px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .buttons a {
        max-width: 200px;
    }
    
    .content-section {
        padding: 20px;
        min-height: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
}

/* ==========================================
   ANIMACIÓN DE RIPPLE (AGREGADA POR JS)
   ========================================== */

/* Esta animación se agrega dinámicamente por JavaScript */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (orientation: landscape) {
    .boton-llamada-fijo {
        display: none !important;
    }
}

/* Mostrar el botón fijo solo en dispositivos en vertical */
@media (orientation: portrait) {
    .boton-llamada-fijo {
        display: flex !important; /* o block, según cómo lo tengas */
    }
}