/*
 * Estilos específicos para index.php
 */

/* Área de contenido principal para el index */
.index-main-content {
    /* Ocupa toda la altura visible de la ventana, menos la altura de la barra de navegación */
    height: calc(100vh - 56px); /* 56px es la altura aprox. de la nav-bar, ajústalo si es necesario */
    
    /* Configuración de la imagen de fondo */
    background-image: url('../images/background-hero.jpg'); /* ¡Asegúrate de tener esta imagen! */
    background-size: cover; /* La imagen cubre todo el contenedor sin deformarse */
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat;
    
    /* Centrar el contenido de texto sobre la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    position: relative; /* Necesario para el overlay */
}

/* Overlay oscuro para mejorar la legibilidad del texto */
.index-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay negro con 50% de opacidad */
    z-index: 1;
}

/* Contenido de texto y botón */
.hero-content {
    position: relative; /* Para que esté por encima del overlay */
    z-index: 2;
    color: #fff; /* Texto blanco para que contraste con el fondo oscuro */
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: 1.5em;
    max-width: 600px;
}

.hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Ajustes para Móviles --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }
}