/* css/index.css */

/* 1. CONTENEDOR GENERAL */
.index-container {
    max-width: 1000px;
    /* CAMBIO AQUÍ: Agregamos 40px arriba para separar del header */
    margin: 20px auto 0 auto; 
    padding: 0 20px;
}

/* 2. LA PORTADA (BANNER) */
.hero-banner-container {
    width: 100%;
    height: 400px; /* Altura de la portada */
    background-color: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* MAGIA PARA EL ESTILO FACEBOOK: */
    position: relative; /* Permite que el logo se amarre a esta caja */
    overflow: visible;  /* Permite que el logo se "salga" de la caja */
    margin-bottom: 100px; /* Empujamos el texto hacia abajo para dar espacio al logo */
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el espacio sin deformarse */
    object-position: center;
    border-radius: 12px; /* Redondeamos la imagen igual que el contenedor */
    display: block;
}

/* 3. EL LOGO DE PERFIL (SUPERPUESTO) */
.logo-perfil-img {
    /* Posicionamiento exacto */
    position: absolute;
    bottom: -75px; /* Baja la mitad de su altura (150px / 2 = 75px) */
    left: 50%;     /* Se pone al centro horizontal */
    transform: translateX(-50%); /* Ajuste fino para centrado perfecto */
    
    /* Estética de la bolita */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff; /* Borde blanco grueso */
    background-color: #ffffff;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 4. TEXTOS */
.texto-bienvenida {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.texto-bienvenida h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #0056b3; 
}

.texto-bienvenida h3 {
    font-size: 1.4rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 20px;
}

.texto-bienvenida p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* 5. INTRODUCCIÓN */
.intro-section {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.intro-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.intro-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e67e22; 
    margin: 10px auto 0 auto;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .hero-banner-container {
        height: 250px; 
        margin-bottom: 80px; /* Ajuste de espacio en celular */
    }

    .logo-perfil-img {
        width: 120px;
        height: 120px;
        bottom: -60px; /* Mitad de 120 */
    }
}