:root {
    --azul-noche: #0b1d38;
    --azul-claro: #1e3c72;
    --dorado: #d4af37;
    --blanco: #ffffff;
    --texto-gris: #f0f0f0;
    --fondo-secciones: #f9f9f9;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; 
}

body {
    margin: 0; 
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: var(--azul-noche);
    color: var(--texto-gris);
    line-height: 1.6;
    overflow-x: hidden;
}

body.legal-page {
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 { 
    font-family: 'Cinzel', serif; 
    color: var(--dorado); 
    margin-bottom: 1rem; 
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: inherit;
    margin-bottom: unset;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

/* --- HEADER UNIFICADO --- */
header {
    background-color: var(--azul-noche); /* Color sólido para evitar que el fondo de la página cambie su tono */
    color: var(--blanco); /* Fuerza el color blanco para evitar heredar el gris oscuro en las páginas legales */
    padding: 1rem 5%;
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid var(--dorado);
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    -webkit-font-smoothing: antialiased; /* Iguala el renderizado de fuentes en todas las páginas */
    -moz-osx-font-smoothing: grayscale;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
}

.logo a { 
    color: var(--blanco); 
    display: flex; 
    align-items: center; 
}

.logo a:hover { 
    color: var(--dorado); 
}

.logo i { 
    color: var(--dorado); 
    margin-right: 10px; 
}

nav ul { 
    display: flex; 
    gap: 20px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

nav a { 
    color: var(--blanco); 
    font-weight: 600; 
    font-size: 1.1rem;
}

nav a:hover { 
    color: var(--dorado); 
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dorado);
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    background: url('fondo.png');
    background-size: cover; 
    background-position: center;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem; color: var(--blanco);
    text-shadow: 2px 2px 4px #000, 0 0 20px rgba(0,0,0,0.8), 0 0 5px #000;
}
.hero p {
    font-size: 1.6rem; font-weight: 600; max-width: 800px;
    color: var(--dorado);
    text-shadow: 1px 1px 2px #000, 0 0 10px rgba(0,0,0,0.9);
}
.hero p:nth-of-type(2) { color: #fff; text-shadow: 1px 1px 3px #000, 0 0 15px #000; }

.btn {
    padding: 12px 30px; background-color: var(--dorado); color: var(--azul-noche);
    font-weight: bold; border-radius: 30px; border: 2px solid var(--dorado);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); margin-top: 20px;
}
.btn:hover { background-color: transparent; color: var(--dorado); text-shadow: 1px 1px 2px #000; }

/* --- SOBRE MÍ --- */
.sobre-mi {
    background-color: var(--blanco); color: #333;
    padding: 4rem 10%; display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
.sobre-mi-img img {
    width: 300px; height: 300px; object-fit: cover;
    border-radius: 50%; border: 5px solid var(--dorado);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.sobre-mi-texto { flex: 2; min-width: 300px; }
.sobre-mi-texto h2 { color: var(--azul-noche); }
.credenciales {
    background-color: #f0f4f8; padding: 15px 25px;
    border-left: 5px solid var(--dorado); margin-top: 20px; font-weight: bold;
}

/* --- TERAPIAS --- */
.terapias { padding: 4rem 10%; background-color: var(--azul-noche); text-align: center; }
.terapias-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 3rem;
}
.carta-terapia {
    background: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3); text-align: left; transition: 0.3s;
}
.carta-terapia:hover { transform: translateY(-10px); border-color: var(--dorado); background: rgba(255,255,255,0.1); }
.nuevo-badge { background-color: var(--dorado); color: var(--azul-noche); font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }

/* --- FORMACIONES --- */
.formaciones { background-color: var(--fondo-secciones); color: #333; padding: 4rem 10%; text-align: center; }
.lista-cursos { list-style: none; max-width: 800px; margin: 0 auto; text-align: left; padding: 0; }
.lista-cursos li {
    background: white; margin-bottom: 15px; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-left: 5px solid var(--azul-claro);
    display: flex; align-items: center;
}
.lista-cursos li i { font-size: 1.5rem; color: var(--dorado); margin-right: 15px; flex-shrink: 0; }
.curso-gif { max-width: 80px; height: auto; border-radius: 8px; margin-left: auto; border: 1px solid var(--dorado); }

/* --- PÁGINAS LEGALES --- */
.page-header { background-color: var(--azul-noche); padding: 8rem 20px 3rem; text-align: center; color: var(--dorado); }
.page-header h1 { font-family: 'Cinzel', serif; color: var(--dorado); margin: 0; }
.legal-content { background-color: var(--blanco); padding: 4rem 10%; max-width: 800px; margin: 0 auto; min-height: 50vh; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.legal-content h2 { color: var(--azul-noche); margin-top: 2rem; border-bottom: 1px solid var(--dorado); padding-bottom: 10px; font-family: 'Cinzel', serif; }

/* --- FOOTER --- */
footer { background-color: #050e1b; padding: 3rem 10%; text-align: center; border-top: 1px solid var(--dorado); color: var(--texto-gris); }
.social-icons { margin: 20px 0; display: flex; justify-content: center; align-items: center; gap: 20px; }
.social-icons a { font-size: 1.5rem; color: var(--blanco); transition: 0.3s; }
.social-icons a:hover { color: var(--dorado); }
.signal-icon svg { width: 28px; height: 28px; vertical-align: middle; }
.correo-footer { margin-top: 20px; }
.correo-footer a { color: var(--dorado); font-size: 1.1rem; }

/* --- ELEMENTOS FLOTANTES --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 100;
}
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(11, 29, 56, 0.98); color: var(--blanco);
    padding: 15px; text-align: center; z-index: 9999; display: none;
    border-top: 2px solid var(--dorado);
}
.btn-cookie { background-color: var(--dorado); color: var(--azul-noche); border: none; padding: 8px 25px; font-weight: bold; border-radius: 5px; cursor: pointer; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.3rem; }
    .sobre-mi { flex-direction: column; text-align: center; padding: 3rem 20px; }
    .sobre-mi-img img { width: 200px; height: 200px; }

    .menu-toggle { display: block; }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--azul-noche);
        padding: 20px 0;
        text-align: center;
        border-bottom: 2px solid var(--dorado);
    }
    nav ul.active { display: flex; }
    nav ul li { margin: 15px 0; }
    nav a { font-size: 1.2rem; display: block; }

    .lista-cursos li { flex-wrap: wrap; }
    .curso-gif { margin-left: 0; margin-top: 15px; max-width: 60px; }
}