/**
 * Estilos específicos para la página de inicio (front-page.php)
 */

/*--------------------------------------------------------------
## Hero Section con Vídeo
--------------------------------------------------------------*/
.hero-home {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    /* La imagen de póster es el fondo por defecto y para móviles */
    background: url('../images/playas-fluviales-poster.jpg') no-repeat center center/cover;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(4px); /* El difuminado que pediste */
}

/* Ocultamos el vídeo en móviles para mejorar el rendimiento */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay oscuro para legibilidad */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Buscador dentro del hero */
.hero-home .buscador-playas-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto 0 auto;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 90%;
}

/* Sección de consulta de mapa */
.mapa-consulta-section {
    padding: 3rem 0;
    text-align: center;
}

.mapa-consulta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Sección de grid de playas */
.playas-grid-section {
	padding: 4rem 0;
}

.playas-grid-section.bg-light {
    background-color: #f9f9f9;
}

.playas-grid-section .section-title {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2.2rem;
}

@media (max-width: 768px) {
    .playas-grid-section .section-title {
        font-size: 1.8rem;
    }
}

/* Los estilos de las tarjetas de playas están en playas-cards.css */

/* Responsivo */
@media (max-width: 992px) {
    .hero-home {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .playas-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .playas-grid-section .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-home {
        height: 80vh;
        min-height: 600px;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-home .buscador-playas-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .playas-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .playas-grid-section {
        padding: 3rem 0;
    }
    
    .playas-grid-section .section-title {
        font-size: 1.8rem;
    }
    
    .playa-grid-item-title {
        font-size: 1.2rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-home {
        height: 90vh;
        min-height: 650px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-home .buscador-playas-container {
        padding: 1rem;
    }
    
    .playas-grid {
        grid-template-columns: 1fr;
    }
    
    .playas-grid-section .section-title {
        font-size: 1.8rem;
    }
} 