/* VARIABLES CLÍNICA PSICOLOGÍA */
:root {
    --primary: #2A9D8F; /* Verde esmeralda suave / Teal */
    --primary-dark: #21867a;
    --bg-light: #F4F1DE; /* Beige cálido terapéutico */
    --bg-white: #FFFFFF;
    --text-dark: #264653; /* Azul/Gris muy oscuro */
    --text-muted: #5c6b73;
    --font-main: 'Lora', 'Georgia', serif; /* Tipografía elegante y humana */
    --font-ui: 'Inter', sans-serif; /* Para menús y botones */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.8; padding-top: 85px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--text-dark); font-weight: 600; line-height: 1.3; }

/* CABECERA Y NAVEGACIÓN */
header { background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; width: 100%; z-index: 1000; backdrop-filter: blur(5px); }
.logo { font-family: var(--font-main); font-size: 1.8rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--text-dark); font-weight: 400; font-size: 1.2rem; display: block; letter-spacing: 3px; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 30px; font-family: var(--font-ui); }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.lang-selector { background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 8px 12px; font-weight: 600; cursor: pointer; border-radius: 4px; outline: none; }

/* HERO CON VÍDEO LOCAL MP4 */
.hero { position: relative; height: calc(100vh - 85px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; background-color: var(--text-dark); }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; opacity: 0.6; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(38, 70, 83, 0.4), rgba(38, 70, 83, 0.8)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 5%; color: var(--bg-white); }
.hero-content h1 { font-size: 4rem; margin-bottom: 25px; color: var(--bg-white); }
.hero-content p { font-size: 1.4rem; font-family: var(--font-ui); font-weight: 300; margin-bottom: 40px; color: var(--bg-light); }
.btn-primary { display: inline-block; background: var(--primary); color: var(--bg-white); font-family: var(--font-ui); padding: 18px 40px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-radius: 50px; transition: 0.3s; box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* SECCIONES Y TEXTO EXTENSO */
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 60px; color: var(--text-dark); }
.section-title span { color: var(--primary); font-style: italic; }

.rich-text-box { background: var(--bg-white); padding: 60px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); margin-bottom: 50px; }
.rich-text-box h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 30px; }
.rich-text-box p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 25px; text-align: justify; line-height: 1.9; }

/* TERAPIAS (REGLA: SOLO TÍTULOS) */
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.therapy-card { position: relative; height: 350px; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; align-items: flex-end; }
.therapy-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.therapy-card:hover img { transform: scale(1.05); }
.therapy-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(38,70,83,0.9) 0%, rgba(38,70,83,0) 100%); }
.therapy-card h3 { position: relative; z-index: 2; width: 100%; padding: 30px; color: var(--bg-white); font-size: 1.6rem; text-align: center; margin: 0; letter-spacing: 1px; }

/* TESTIMONIOS (REGLA: 100% ANÓNIMOS) */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.testimonial-card { background: var(--bg-white); padding: 50px; border-radius: 20px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border-top: 4px solid var(--primary); }
.testimonial-card::before { content: '"'; font-size: 8rem; color: var(--bg-light); position: absolute; top: -10px; left: 20px; font-family: var(--font-main); line-height: 1; z-index: 0; }
.testimonial-card p { font-size: 1.2rem; font-style: italic; color: var(--text-dark); position: relative; z-index: 1; margin: 0; line-height: 1.8; }

/* FAQ (REGLA: EXACTAMENTE 2, H3 + P) */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--bg-white); padding: 50px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border-left: 6px solid var(--primary); }
.faq-item h3 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 20px; }
.faq-item p { font-size: 1.15rem; color: var(--text-muted); margin: 0; font-family: var(--font-ui); }

/* CONTACTO */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { background: var(--text-dark); color: var(--bg-white); padding: 60px; border-radius: 20px; }
.contact-info h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 30px; }
.contact-info p { font-family: var(--font-ui); font-size: 1.1rem; margin-bottom: 20px; opacity: 0.9; }
.contact-info strong { display: block; color: var(--bg-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; margin-top: 30px; }
.map-container { border-radius: 20px; overflow: hidden; min-height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* PÁGINAS LEGALES */
.legal-wrapper { background: var(--bg-white); padding: 80px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.legal-wrapper h1 { color: var(--primary); font-size: 2.5rem; margin-bottom: 40px; text-align: center; }
.legal-wrapper h2 { font-size: 1.6rem; color: var(--text-dark); margin: 40px 0 20px; }
.legal-wrapper p, .legal-wrapper li { font-family: var(--font-ui); font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.legal-wrapper ul { padding-left: 40px; margin-bottom: 30px; }

/* FOOTER */
footer { background: var(--bg-white); padding: 60px 5% 40px; text-align: center; border-top: 1px solid #EAEAEA; margin-top: 50px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; font-family: var(--font-ui); }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-logo { display: flex; justify-content: center; margin-bottom: 30px; }
.footer-logo img { height: 130px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    header { flex-direction: column; padding: 15px; }
    nav { margin-top: 20px; flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    body { padding-top: 140px; }
    .contact-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .legal-wrapper { padding: 40px 20px; }
}