/* ====================== ESTILOS GENERALES ====================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212; /* Fondo más oscuro para resaltar rojos */
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* ====================== BANNER ====================== */
.banner {
    position: relative;
    overflow: hidden;
    height: 450px;
    border-bottom: 5px solid #780909;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.banner:hover img {
    transform: scale(1.05);
}

.banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* ====================== SECCIÓN PERFIL ====================== */
.perfil {
    text-align: center;
    padding: 40px 20px;
    background-color: #181818;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85);
    position: relative;
    margin-top: -75px;
    z-index: 1;
}

.perfil h1 {
    font-size: 36px;
    margin: 10px 0;
    text-shadow: 0 0 10px #780909; /* Glow rojo */
}

.perfil .desc {
    font-size: 20px;
    color: #ccc;
    text-shadow: 0 0 5px #500202; /* Sutil glow oscuro */
}

/* ====================== AVATAR ====================== */
.avatar-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #780909;
    cursor: pointer;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.avatar-container:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(120,9,9,0.7);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================== MODAL AVATAR ====================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: auto;
    transition: all 0.3s ease;
    
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(120,9,9,0.8);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* ====================== CERRAR MODAL ====================== */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover, .close:focus {
    color: #ff4d4d;
}

/* ====================== NAVEGACIÓN ====================== */
.navbar {
    background: linear-gradient(to right, #2a0000, #3b0000);
    display: flex;
    justify-content: center;
    padding: 25px 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.7);
    border-radius: 0 0 15px 15px;
}

.menu {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #780909;
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.menu a:hover {
    color: #ff1a1a;
    text-shadow: 0 0 5px #780909;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 45px;
    background: #1a0000;
    padding: 15px 0;
    border-radius: 8px;
    min-width: 200px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.dropdown-menu li {
    padding: 10px 25px;
}

.dropdown-menu a {
    color: #fff;
    font-size: 18px;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

/* ====================== RESPONSIVIDAD ====================== */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    .perfil {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .avatar-container {
        width: 140px;
        height: 140px;
        top: -70px;
    }
    h1 {
        font-size: 28px;
    }
    .desc {
        font-size: 16px;
    }
    .menu {
        flex-direction: column;
        gap: 25px;
    }
}


.galeria {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 30px;
}

/* contenedor de imágenes */

.dibujos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* imágenes */

.galeria-item {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(120,9,9,0.7);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(120,9,9,0.9);
}

/* ======================
RESPONSIVE
====================== */

.menu a:hover::after { width: 100%; }
.menu a:hover { color: #ff1a1a; text-shadow: 0 0 5px #780909; }

.dropdown { position: relative; }

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 45px;
    background: #1a0000;
    padding: 15px 0;
    border-radius: 8px;
    min-width: 200px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.dropdown-menu li { padding: 10px 25px; }
.dropdown-menu a { color: #fff; font-size: 18px; }

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

/* --- Galería --- */
.galeria { max-width: 1400px; margin: 60px auto; padding: 0 30px; }
.dibujos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; justify-items: center; }
.galeria-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(120,9,9,0.7);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.galeria-item:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(120,9,9,0.9); }

/* --- Responsive galería --- */
@media (max-width: 1200px) { .dibujos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .dibujos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dibujos { grid-template-columns: 1fr; } }

/* --- Ajustes generales móviles --- */
@media (max-width: 768px) {
    .banner { height: 300px; }
    .perfil { padding: 30px 15px; margin-top: -60px; }
    .avatar-container { width: 140px; height: 140px; top: -70px; }
    h1 { font-size: 28px; }
    .desc { font-size: 16px; }

    /* Mantener navbar horizontal en móvil */
    .menu { flex-direction: row; gap: 50px; justify-content: center; }

    /* Dropdown táctil */
    .dropdown-menu { position: absolute; top: 45px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .dropdown.open .dropdown-menu { max-height: 500px; }
    .dropdown-menu li { width: 100%; }

    /* Ajustes galería móvil */
    .dibujos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .galeria-item { height: 250px; max-width: 100%; }
}


.ficha {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    /* QUITAMOS display:flex y align-items del contenedor */
}

.ficha img {
    max-width: 500px;
    border-radius: 10px;
    display: block;
    margin: 20px auto; /* centrado horizontal */
}

/* Grid de datos e info */
.ficha-grid {
    display: grid;
    grid-template-columns: 300px 800px;
    gap: 60px;
    justify-content: center;
    margin: 0 auto;
}

/* Título centrado */
.ficha h2 {
    font-size: 32px;
    color: #ff2a2a;
    text-shadow: 0 0 10px #780909;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Caja de datos */
.ficha-datos {
    background: #120000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(120, 9, 9, 0.5);
    text-align: center;
}

.ficha-datos h3 {
    color: #ff4d4d;
    margin-bottom: 10px;
}

/* Caja de info */
.ficha-info {
    max-width: 800px;
    text-align: center;
}

.ficha-info p {
    color: #ddd;
    line-height: 1.6;
    text-align: left;
    margin: 0 auto;
}

/* Bloque imagen + Apariencia */
.img-apariencia {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.img-apariencia img {
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.img-apariencia h3 {
    text-align: center;
    color: #ff4d4d;
    margin: 0;
}

