/* ESTRUCTURA ATENCIÓN SANITARIA - ANA MARTINEZ PEÑUELA MARCO */
:root {
    --health-dark: #0F766E;    /* Verde cerceta oscuro */
    --health-primary: #14B8A6; /* Aguamarina clínico */
    --health-light: #F0FDFA;   /* Fondo muy suave */
    --health-accent: #0D9488;  /* Tono esmeralda */
    --white: #FFFFFF;
    --text-main: #334155;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--health-light); color: var(--text-main); line-height: 1.8; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Merriweather', serif; color: var(--health-dark); }

/* CABECERA CLÍNICA */
header { background: rgba(255, 255, 255, 0.98); padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-bottom: 3px solid var(--health-primary); }
.brand h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
.brand h1 span { color: var(--health-primary); }
.brand p { font-size: 0.85rem; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
nav { display: flex; gap: 30px; align-items: center; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--health-dark); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--health-primary); transition: var(--transition); }
.nav-links a:hover { color: var(--health-primary); }
.nav-links a:hover::after { width: 100%; }
.lang-selector { padding: 8px 16px; background: var(--health-light); border: 1px solid var(--health-primary); color: var(--health-dark); font-weight: bold; border-radius: 6px; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; }
.lang-selector:hover { background: var(--health-primary); color: var(--white); }

/* HERO CON VÍDEO LOCAL DE FONDO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: flex-start; padding: 0 5%; overflow: hidden; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(50%) contrast(105%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-top: 80px; padding: 50px; background: rgba(255, 255, 255, 0.9); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-left: 6px solid var(--health-primary); }
.hero-content h2 { font-size: 3.5rem; color: var(--health-dark); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: var(--text-main); font-weight: 400; }

/* BLOQUES DE CONTENIDO DENSOS */
.content-block { padding: 100px 5%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.content-block.full { grid-template-columns: 1fr; max-width: 1000px; text-align: center; }
.content-block h2 { font-size: 2.8rem; margin-bottom: 30px; position: relative; padding-bottom: 20px; }
.content-block h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--health-primary); }
.content-block.full h2::after { left: 50%; transform: translateX(-50%); }
.content-block p { font-size: 1.15rem; margin-bottom: 25px; text-align: justify; }

/* CATÁLOGO INQUEBRANTABLE (SOLO TÍTULOS) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 40px; margin-top: 60px; width: 100%; }
.service-card { position: relative; height: 400px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: var(--health-dark); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.8s ease; filter: brightness(60%); }
.service-card:hover img { transform: scale(1.05); filter: brightness(40%); }
.service-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,118,110,0.9) 0%, rgba(15,118,110,0) 60%); z-index: 2; pointer-events: none; }
.service-card h3 { position: relative; z-index: 3; color: var(--white); font-size: 1.4rem; font-weight: 700; text-align: center; padding: 30px 20px; width: 100%; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }

/* TESTIMONIOS ANÓNIMOS */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 50px; }
.testimonial-card { background: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); position: relative; border-bottom: 4px solid var(--health-primary); }
.testimonial-card p { font-size: 1.15rem; font-style: italic; color: var(--text-main); position: relative; z-index: 1; text-align: justify; }
.testimonial-card::before { content: '”'; position: absolute; top: 10px; right: 30px; font-family: 'Merriweather', serif; font-size: 6rem; color: var(--health-light); line-height: 1; z-index: 0; }

/* FAQ: EXACTAMENTE 2 PREGUNTAS */
.faq-container { background: var(--white); padding: 70px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); text-align: left; border-left: 6px solid var(--health-accent); }
.faq-item { margin-bottom: 50px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { color: var(--health-dark); font-size: 1.6rem; margin-bottom: 20px; font-weight: 700; }
.faq-item p { font-size: 1.15rem; color: var(--text-main); }

/* FOOTER UNIFICADO GLOBAL */
footer { background: var(--health-dark); padding: 80px 5% 40px; margin-top: 100px; color: var(--white); }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; max-width: 1400px; margin: 0 auto 60px; }
.footer-columns h4 { color: var(--health-light); font-family: 'Inter', sans-serif; font-size: 1.3rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--health-primary); padding-bottom: 10px; display: inline-block; }
.footer-columns p { color: #CCFBF1; font-size: 1.05rem; margin-bottom: 10px; }
.footer-menu-links { list-style: none; }
.footer-menu-links li { margin-bottom: 12px; }
.footer-menu-links a { color: #CCFBF1; text-decoration: none; font-size: 1rem; transition: var(--transition); display: block; }
.footer-menu-links a:hover { color: var(--white); transform: translateX(5px); }

/* LOGO KIT DIGITAL ESTRICTO */
.logo-kit-centered { height: 125px !important; background-color: transparent !important; display: block; margin: 0 auto 50px; }
.footer-legal-text { text-align: center; color: #99F6E4; font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }