/* Variables de color y estética general */
:root {
    --color-primario: #5b7c70;
    --color-secundario: #f9f9f9; 
    --color-texto: #555555;
    --color-titulos: #333333;
    --fuente-principal: 'Helvetica Neue', Arial, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    background-color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth; /* Desplazamiento suave para toda la web */
}

/* --- Cabecera Transparente con Redes en las esquinas --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #a3b899;
}

/* --- Sección Hero (Vídeo Background) --- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-content-exacto {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    line-height: 0.9;
}

.logo-malbo {
    font-size: 6.5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-atencion {
    font-size: 5.2rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subcategories {
    display: flex;
    gap: 3rem;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-footer-left {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    z-index: 2;
    text-align: left;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-footer-left p {
    margin: 0;
}

.hero-footer-right {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 2;
    display: flex;
    gap: 1.2rem;
}

.hero-footer-right a {
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    transition: opacity 0.3s;
}

.hero-footer-right a:hover {
    opacity: 0.8;
}

/* --- Sección Talleres --- */
.seccion-talleres {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.talleres-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.talleres-texto-lateral {
    grid-row: span 2;
    background-color: #f8f8f8;
    padding: 3.5rem 2.5rem;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.talleres-texto-lateral h2 {
    font-size: 1.8rem;
    color: #333333;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.talleres-texto-lateral h3 {
    font-size: 1.3rem;
    color: #333333;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tarjeta-taller-nueva {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tarjeta-taller-nueva img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.tarjeta-taller-nueva h3 {
    font-size: 1.25rem;
    color: #333333;
    font-weight: 400;
    margin: 0.5rem 0;
}

.datos-taller-nueva {
    display: flex;
    gap: 1.5rem;
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tarjeta-taller-nueva p {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- Layout Página "Sobre mí" --- */
.contenedor-sobre-mi {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.sidebar-cv {
    background-color: #f7f7f7;
    padding: 2.5rem;
    height: fit-content;
}

.sidebar-cv img.foto-perfil {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.sidebar-cv h2 {
    font-size: 1.8rem;
    color: var(--color-titulos);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.sidebar-cv ul {
    list-style: none;
    padding-left: 0;
    color: var(--color-texto);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sidebar-cv ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.sidebar-cv ul li::before {
    content: "•";
    color: var(--color-primario);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.sidebar-cv img.logo-inferior {
    width: 100%;
    margin-top: 2rem;
}

.contenido-principal-sobre-mi {
    padding-top: 1rem;
}

.contenido-principal-sobre-mi p {
    color: var(--color-texto);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contenido-principal-sobre-mi h3 {
    font-size: 2rem;
    color: var(--color-titulos);
    font-weight: 300;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.contenido-principal-sobre-mi img.foto-ancha {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    margin: 2.5rem 0;
    border-radius: 4px;
}

.contenido-principal-sobre-mi ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.contenido-principal-sobre-mi ul li {
    color: var(--color-texto);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.contenido-principal-sobre-mi ul li::before {
    content: "•";
    color: var(--color-primario);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* --- Overlay Protección por Contraseña --- */
.password-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #f4f6f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-box {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-box h2 {
    color: var(--color-primario);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.password-box p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.password-box input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.password-box button {
    width: 100%;
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.password-box button:hover {
    background-color: #4a665b;
}

.error-msg {
    color: #d9534f !important;
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    display: none;
}

/* --- Layout Sección Alumnos (Banners Acordeón) --- */
.contenedor-acordeon {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.intro-alumnos {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-alumnos h2 {
    color: var(--color-primario);
    font-size: 2rem;
    font-weight: 400;
}

.acordeon-banner {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    cursor: pointer;
    padding: 1.5rem 2rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.4s;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acordeon-banner:hover, .banner-activo {
    background-color: #e8ecea;
}

.acordeon-banner::after {
    content: '\002B'; /* Icono de + */
    font-size: 1.5rem;
    color: var(--color-primario);
    font-weight: bold;
    margin-left: 1rem;
}

.banner-activo::after {
    content: "\2212"; /* Icono de - */
}

.acordeon-panel {
    padding: 0 1rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out;
    margin-bottom: 1rem;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-row img {
    width: 45%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.text-block {
    width: 55%;
    color: #555;
    line-height: 1.8;
}

.text-block p {
    margin-bottom: 1.2rem;
}

.content-full {
    margin: 3rem 0;
    color: #555;
    line-height: 1.8;
}

/* --- Footer y Scroll Flecha Minimalista --- */
.footer-simple {
    background-color: #ffffff;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.95rem;
    color: #888888;
    border-top: 1px solid #f0f0f0;
    margin-top: 3rem;
}

.scroll-top-container {
    margin-bottom: 1.5rem;
}

.scroll-top-btn {
    display: inline-block;
    color: #cccccc;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn:hover {
    color: var(--color-primario);
    transform: translateY(-5px);
}

/* Responsive general para móviles */
@media (max-width: 900px) {
    .content-row, .content-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin: 2rem 0;
    }
    .content-row img, .text-block {
        width: 100%;
    }
    .contenedor-sobre-mi {
        grid-template-columns: 1fr;
    }
    .talleres-layout {
        grid-template-columns: 1fr;
    }
}