body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
}

/* -- HEADER -- */
header {
    background-color: #78061E;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* ===== BANNER FIJO ===== */
.banner-fijo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.banner-fijo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subtitulo {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.95;
}

/* -- NAVEGACIÓN -- */
nav {
    display: flex;
    justify-content: center;
    background-color: #222;
    margin-top: 15px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #a10d2f;
    transform: translateY(-2px);
}

/* ESTILO PARA PÁGINA ACTIVA */
nav ul li a.activo {
    background-color: #a10d2f;
    font-weight: bold;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* -- CONTENEDOR PRINCIPAL -- */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 20px;
}

.main-conteiner {
    flex: 70%;
    padding: 0;
}

.sidebar {
    flex: 30%;
    padding: 0;
}

/* -- TARJETAS -- */
.tarjeta {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    margin-bottom: 20px;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tarjeta-oscura {
    background-color: #333;
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    margin-bottom: 20px;
}

.tarjeta-oscura:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* -- TÍTULOS -- */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #a10d2f;
    border-radius: 2px;
}

.tarjeta-oscura h2::after {
    background-color: white;
}

/* -- REDES SOCIALES -- */
.redes-sociales {
    margin-top: 20px;
    text-align: center;
}

.iconos-social {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 70px;
    height: 70px;
    background-color: #78061E;  /* CAMBIADO: color rojo fijo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    border: 2px solid white;  
}

/* Efectos hover */
.social-icon:hover {
    background-color: white;
    transform: translateY(-5px) rotate(360deg);
    border: 2px solid #78061E;  
}

.social-icon:hover .fa-instagram {
    color: #E4405F;
}

.social-icon:hover .fa-tiktok {
    color: #000000;
}

.social-icon:hover .fa-facebook-f {
    color: #1877F2;
}

/* Color de los iconos siempre visible */
.social-icon i {
    color: white;  
}

.social-icon:hover i {
    color: inherit; 
}


/* -- LISTA DE MIS PASATIEMPOS -- */
.lista-intereses {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lista-intereses li {
    background-color: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 1rem;
    transition: 0.3s;
}

.lista-intereses li:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* -- GALERÍA  -- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-color: #f0f0f0;
    cursor: pointer;
}

.galeria-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.galeria-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pie-foto {
    text-align: center;
    padding: 10px;
    margin: 0;
    background-color: #78061E;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

/* -- FORMULARIO DE CONTACTO -- */
.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    color: #333;
    transition: 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #a10d2f;
    box-shadow: 0 0 8px rgba(161,13,47,0.3);
}

.formulario-contacto input::placeholder,
.formulario-contacto textarea::placeholder {
    color: #999;
}

.formulario-contacto button {
    background-color: #78061E;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.formulario-contacto button:hover {
    background-color: transparent;
    color: #78061E;
    border: 2px solid #78061E;
}

/* -- FOOTER -- */
footer {
    background-color: #78061E;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    width: 100%;
}

/* ===== LIGHTBOX  ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-contenido {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    border: 3px solid white;
   
}

#lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px 20px;
    background: #78061E;
    border-radius: 30px;
    text-align: center;
    max-width: 80%;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.cerrar:hover {
    color: #a10d2f;
    transform: scale(1.2);
}

/* -- RESPONSIVO -- */
@media screen and (max-width: 768px) {
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitulo {
        font-size: 1rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #222;
    }
    
    nav ul li {
        text-align: center;
    }
    
    nav ul li a {
        padding: 15px;
    }
    
    .menu-icon {
        display: block;
    }
    
    nav.responsive ul {
        display: flex;
    }
    
    .banner-fijo {
        height: 200px;
    }
    
    .container {
        flex-direction: column;
        margin: 20px auto;
        gap: 15px;
    }
    
    .main-conteiner, 
    .sidebar {
        flex: 100%;
    }
    
    .lista-intereses {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .galeria-item img {
        height: 150px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-item img {
        height: 180px;
    }
}

/* ===== ESTILOS PARA ACERCADEMI ===== */
.tarjeta-oscura i {
    margin-right: 10px;
    width: 20px;
}

.tarjeta-oscura p {
    margin: 12px 0;
}

blockquote {
    font-style: italic;
    margin: 0;
    padding: 10px;
    border-left: 4px solid #a10d2f;
}