/* General SEO Optimizado con fondo lila */
body { 
    margin: 0; 
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f0ff 0%, #e8d5ff 50%, #f0e6ff 100%);
    min-height: 100vh;
}

/* Performance CSS */
* {
    box-sizing: border-box;
}

.block { 
    padding: 60px 20px; 
    text-align: center; 
    border-bottom: 2px solid #fff;
    min-height: 400px;
    scroll-margin-top: 80px;
}

/* Colores de Bloques con fondo lila integrado */
.block-intro { background: rgba(255, 249, 196, 0.7); backdrop-filter: blur(5px); }
.block-calendar { background: rgba(245, 245, 220, 0.7); backdrop-filter: blur(5px); }
.block-reservations { background: rgba(225, 245, 254, 0.7); backdrop-filter: blur(5px); }
.block-prices { background: rgba(232, 245, 233, 0.7); backdrop-filter: blur(5px); }
.block-reviews { background: rgba(252, 228, 236, 0.7); backdrop-filter: blur(5px); }

/* Portada - Imagen más grande y visible */
.header-content { position: relative; width: 100%; height: 450px; }
.header-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.header-overlay { position: absolute; bottom: 0; background: rgba(0,0,0,0.4); color: white; width: 100%; padding: 20px; }

/* Semáforo del Calendario */
.legend { margin-top: 15px; font-weight: bold; }
.dot { height: 15px; width: 15px; border-radius: 50%; display: inline-block; margin: 0 5px; }
.libre { background-color: #2ecc71; }   /* Verde */
.parcial { background-color: #f39c12; } /* Naranja */
.ocupado { background-color: #e74c3c; } /* Rojo */

/* Estados en el Calendario */
.estado-libre { background-color: #d5f5e3 !important; }
.estado-parcial { background-color: #fdebd0 !important; }
.estado-ocupado { background-color: #fadbd8 !important; }

/* Animales Animados */
.animal { position: absolute; font-size: 2.5rem; opacity: 0.15; pointer-events: none; z-index: -1; animation: float 25s linear infinite; }
@keyframes float { from { left: -100px; } to { left: 110vw; } }

/* Botones y Inputs */
button { background: #ff8fb1; color: white; border: none; padding: 15px 30px; border-radius: 50px; cursor: pointer; font-size: 1.1rem; }
textarea, input { width: 90%; max-width: 400px; margin: 10px auto; padding: 12px; border-radius: 10px; border: 1px solid #ccc; display: block; }
.date-badge { background: white; padding: 10px; border-radius: 10px; display: inline-block; margin-bottom: 10px; font-weight: bold; color: #3498db; }

/* Responsive Design - Mobile First */

/* Estilos base para móviles (actuales - sin cambios) */

/* TABLET (768px+) - Transición suave */
@media (min-width: 768px) {
    .block {
        padding: 40px 30px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    #calendar {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* DESKTOP (1024px+) - Versión optimizada */
@media (min-width: 1024px) {
    .block {
        padding: 30px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Calendario 50% ancho - Versión compacta */
    #calendar {
        max-width: 50% !important;
        margin: 0 auto 20px auto;
        font-size: 0.9em;
    }
    
    /* Contenedor de reservas más compacto */
    .block-reservations {
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* Formularios centrados y más compactos */
    .reserva-select,
    textarea,
    #user-notes {
        max-width: 70% !important;
        margin: 8px auto;
    }
    
    /* Checkboxes optimizados - dos columnas con iconos */
    .services-checkboxes {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Labels con icono izquierda y checkbox derecha */
    .services-checkboxes label {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        font-size: 0.9em;
        text-align: left;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        border: 1px solid rgba(255, 145, 180, 0.2);
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    /* Iconos a la izquierda */
    .services-checkboxes .service-icon {
        font-size: 1.2em;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    /* Texto centrado */
    .services-checkboxes .service-text {
        flex-grow: 1;
        text-align: center;
    }
    
    /* Checkbox a la derecha con mínimo espacio */
    .services-checkboxes input[type="checkbox"] {
        margin: 0 !important;
        margin-left: 4px !important;
        transform: scale(0.9);
        flex-shrink: 0;
    }
    
    /* Hover effect */
    .services-checkboxes label:hover {
        background: rgba(255, 145, 180, 0.15);
        border-color: rgba(255, 145, 180, 0.4);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 145, 180, 0.2);
    }
    
    /* Botones más compactos */
    #btn-whatsapp-final,
    #btn-publicar-resena {
        max-width: 400px;
        margin: 15px auto;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* LARGE DESKTOP (1440px+) - Extra optimización */
@media (min-width: 1440px) {
    .block {
        max-width: 1400px;
    }
    
    #calendar {
        max-width: 45% !important;
        font-size: 0.85em;
    }
    
    /* Mantener dos columnas con más espacio */
    .services-checkboxes {
        max-width: 600px;
        gap: 12px !important;
    }
    
    .services-checkboxes label {
        padding: 10px 16px;
        font-size: 1em;
    }
}

/* Calendario estilos específicos responsive */
#calendar .fc-daygrid-day.fc-day-today {
    background: rgba(255, 145, 180, 0.1) !important;
}

#calendar .fc-daygrid-day-number {
    font-size: 0.9em;
}

@media (min-width: 1024px) {
    #calendar .fc-daygrid-day-number {
        font-size: 0.8em;
    }
}

/* Mejoras touch para móviles */
@media (hover: none) and (pointer: coarse) {
    input[type="checkbox"] {
        min-width: 24px;
        min-height: 24px;
        transform: none;
    }
    
    label {
        padding: 8px 0;
        font-size: 1em;
    }
}

/* Optimización de layout web - contenedores compactos */
@media (min-width: 1024px) {
    /* Header más compacto */
    .header-content {
        height: 280px;
    }
    
    .header-overlay {
        padding: 15px 30px;
    }
    
    .header-overlay h1 {
        font-size: 1.8em;
        margin-bottom: 5px;
    }
    
    /* Secciones más compactas */
    .block {
        min-height: 300px;
    }
    
    /* Grid de servicios optimizado */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .services-grid p {
        margin: 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* Precios más compactos */
    .block-prices {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .price-tag {
        font-size: 2em;
        margin: 20px 0;
    }
    
    /* Reseñas optimizadas */
    .block-reviews {
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* Botones de estrellas más compactos */
    #star-rating span {
        font-size: 28px;
        margin: 0 2px;
    }
}

/* Animaciones suaves para transiciones */
.services-checkboxes label {
    transition: all 0.2s ease;
}

.services-checkboxes label:hover {
    background: rgba(255, 145, 180, 0.15);
    border-color: rgba(255, 145, 180, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 145, 180, 0.2);
}

/* Checkbox checked state */
.services-checkboxes input[type="checkbox"]:checked + .service-text {
    font-weight: 600;
    color: #d63384;
}

.services-checkboxes input[type="checkbox"]:checked + span::before {
    content: '✓';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
}

/* Optimización de calendario para desktop */
@media (min-width: 1024px) {
    #calendar .fc-toolbar-title {
        font-size: 1.2em;
    }
    
    #calendar .fc-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    #calendar .fc-daygrid-day-frame {
        padding: 2px;
    }
}


/* Estilos para las estrellas */
#star-rating span {
    font-size: 35px;
    cursor: pointer;
    color: #ccc; /* Gris por defecto */
    transition: color 0.2s;
}

#star-rating span.active {
    color: #f1c40f !important; /* Dorado al hacer clic */
}

#star-rating span:hover {
    color: #f39c12; /* Naranja al pasar el ratón */
}

/* ============================================
   BANNER DE COOKIES - GDPR Compliance
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 800px;
}

.cookie-banner a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: #28a745;
    color: white;
}

.cookie-btn-accept:hover {
    background: #218838;
    transform: scale(1.05);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

.cookie-banner.hidden {
    display: none;
}

/* Responsive cookie banner */
@media (max-width: 600px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

