/* ============================================================
   SM MEDICINA DE LABORATORIO — SISTEMA DE DISEÑO
   Derivado del sistema del Hospital San Marcos.
   Marca anclada en el verde lima del logo SM + acentos kids.
============================================================ */

:root {
  /* --- Verde institucional SM (del logo) --- */
  --verde:        #A7C44B;   /* verde lima principal */
  --verde-dark:   #5C751B;   /* verde oscuro para texto/contraste */
  --verde-darker: #41611A;
  --verde-mid:    #88B033;
  --verde-soft:   #EFF3DD;   /* tinte lima muy suave */
  --verde-tint:   #F6F8EE;

  /* --- Azules / navy del logo SM --- */
  --navy-900: #14242F;
  --navy-800: #1E3243;   /* botón "Resultados en línea" / títulos */
  --navy-700: #2A4A60;
  --navy-600: #3F6686;
  --navy-300: #A5C7D9;
  --navy-100: #E6F0F6;

  /* --- Acento Kids (SM for kids) --- */
  --kids-blue:      #2E9BE0;
  --kids-blue-dark: #1B7DBE;
  --kids-blue-soft: #E4F2FB;
  --kids-pink:      #E5388A;
  --kids-cyan:      #00A9E0;
  --kids-yellow:    #F4B740;
  --kids-purple:    #7E57C2;

  /* --- Neutros --- */
  --gris-bg:    #F4F6F8;
  --gris-soft:  #F7F9FB;
  --gris-mid:   #E3E8ED;
  --gris-texto: #51606E;
  --gris-suave: #7C8A96;
  --negro:      #1A2530;
  --blanco:     #FFFFFF;
  --footer-bg:  #1B1E22;   /* charcoal del footer */

  /* --- Sistema --- */
  --whatsapp:  #25D366;
  --radio:     12px;
  --radio-lg:  18px;
  --radio-xl:  24px;
  --sombra:    0 6px 24px rgba(20,36,47,.10);
  --sombra-sm: 0 2px 12px rgba(20,36,47,.07);
  --sombra-lg: 0 18px 50px rgba(20,36,47,.16);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   PLACEHOLDERS DE IMAGEN (para reemplazar luego)
============================================================ */
.img-ph {
  background:
    repeating-linear-gradient(45deg, #eef1f4, #eef1f4 12px, #e7ebf0 12px, #e7ebf0 24px);
  border: 1.5px dashed #c4cdd6;
  border-radius: var(--radio);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #8a97a4; font-size: 13px; font-weight: 600;
  letter-spacing: .3px; padding: 18px; min-height: 160px;
}
.img-ph span { max-width: 80%; }

/* ============================================================
   BOTONES
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; transition: all .2s ease; line-height: 1.1;
  font-family: inherit; letter-spacing: .2px;
}
.btn-verde   { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-mid); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,156,42,.30); }
.btn-navy    { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,36,47,.25); }
.btn-outline { background: #fff; color: var(--verde-dark); border: 2px solid var(--verde); }
.btn-outline:hover { background: var(--verde-soft); }
.btn-white   { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--gris-bg); transform: translateY(-2px); }
.btn-ghost   { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-kids    { background: var(--kids-blue); color: #fff; }
.btn-kids:hover { background: var(--kids-blue-dark); transform: translateY(-2px); }
.btn-lg  { padding: 15px 32px; font-size: 15px; }
.btn-sm  { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 30px; }

/* ============================================================
   NAVBAR (propio del sitio de laboratorio)
============================================================ */
.lab-nav {
  background: #fff;
  border-bottom: 1px solid var(--gris-mid);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(20,36,47,.05);
}
.lab-nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lab-logo { display: flex; align-items: center; }
.lab-logo img { height: 54px; width: auto; }
.lab-nav-links { display: flex; align-items: center; gap: 34px; }
.lab-nav-links a {
  font-size: 15px; font-weight: 600; letter-spacing: .2px;
  color: var(--negro); transition: color .2s; position: relative;
}
.lab-nav-links a:hover { color: var(--verde-dark); }
.lab-nav-links a.active { color: var(--verde-dark); }
.lab-nav-links a.active::after {
  content: ''; position: absolute; bottom: -30px; left: 0; right: 0;
  height: 3px; background: var(--verde); border-radius: 3px;
}
.lab-nav-right { display: flex; align-items: center; gap: 22px; }
.lab-nav-sep { width: 2px; height: 38px; background: var(--verde); border-radius: 2px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--navy-800); padding: 4px 6px;
}
.nav-toggle::before { content: "\2630"; }
.lab-nav:has(.lab-mobile.open) .nav-toggle::before { content: "\2715"; }

/* Menú móvil */
.lab-mobile {
  display: none; flex-direction: column; gap: 2px;
  background: #fff; border-bottom: 1px solid var(--gris-mid);
  padding: 10px 24px 20px;
}
.lab-mobile.open { display: flex; }
.lab-mobile a {
  padding: 12px 8px; font-size: 15px; font-weight: 700; letter-spacing: .2px;
  color: var(--navy-800); border-bottom: 1px solid var(--gris-bg);
}
.lab-mobile .btn { margin-top: 14px; }

/* ============================================================
   CONTENEDORES / SECCIONES
============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; }
.section-narrow { max-width: 980px; }
.bg-soft  { background: var(--gris-bg); }
.bg-tint  { background: var(--verde-tint); }
.bg-band  { background: #EEF0F2; }

.section-title {
  text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  color: var(--verde-dark); letter-spacing: .2px; margin-bottom: 40px;
}
.section-title.navy { color: var(--navy-800); }
.eyebrow {
  display: inline-block; background: var(--verde-soft); color: var(--verde-dark);
  border-radius: 30px; padding: 6px 16px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
}

/* ============================================================
   HERO INICIO (imagen full-width con overlay)
============================================================ */
.hero-img {
  position: relative; min-height: 440px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; background: var(--navy-800);
}
.hero-img .img-ph {
  position: absolute; inset: 0; border: none; border-radius: 0; min-height: 100%;
}
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,47,.15) 0%, rgba(20,36,47,.45) 100%);
}
.hero-img-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px 56px; max-width: 760px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95); color: var(--navy-800);
  border-radius: 30px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  box-shadow: var(--sombra); margin-bottom: 20px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); flex-shrink: 0; }
.hero-badge strong { color: var(--verde-dark); font-weight: 800; }

/* ============================================================
   HERO INTERIOR (páginas internas)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--verde-darker) 0%, var(--verde-mid) 55%, var(--verde) 100%);
  color: #fff; padding: 56px 24px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.14; max-width: 760px; }
.page-hero p { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.9); max-width: 620px; line-height: 1.7; }

/* ============================================================
   3 COLUMNAS DE VALOR (Tecnología / Personal / Normas)
============================================================ */
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-ico {
  flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.value-ico svg { width: 40px; height: 40px; stroke: var(--verde); fill: none; stroke-width: 1.6; }
.value-item h4 { font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--negro); margin-bottom: 5px; }
.value-item p { font-size: 13.5px; color: var(--gris-texto); line-height: 1.6; }

/* Variante centrada (Nosotros) */
.value-row.center .value-item { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.value-row.center .value-ico { width: 64px; height: 64px; }
.value-row.center .value-ico svg { width: 48px; height: 48px; }

/* ============================================================
   BLOQUE ISO (imagen + texto)
============================================================ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split-text h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--verde-dark); line-height: 1.25; margin-bottom: 18px; }
.split-text p { font-size: 14.5px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 14px; }
.split-text p strong { color: var(--navy-800); }
.split-img .img-ph { min-height: 280px; height: 100%; }

/* ============================================================
   SERVICIOS (círculos con ícono)
============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.service-circle { text-align: center; }
.service-circle .circle {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid var(--verde); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease; background: #fff;
}
.service-circle:hover .circle { background: var(--verde-soft); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(124,156,42,.18); }
.service-circle .circle svg { width: 46px; height: 46px; stroke: var(--verde-dark); fill: none; stroke-width: 1.5; }
.service-circle p { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--negro); }

/* ============================================================
   CONVENIOS Y ALIANZAS (marquee)
============================================================ */
.marquee { position: relative; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; animation: scroll 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto; width: 230px; height: 150px; margin-right: 24px;
  background: #fff; border: 1px solid var(--gris-mid); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.logo-chip .img-ph { min-height: 0; height: 100%; width: 100%; font-size: 11px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* ============================================================
   BANDA SM FOR KIDS (presentación en inicio)
============================================================ */
.kids-band { background: var(--gris-bg); }
.kids-band .split { align-items: center; }
.kids-wordmark { font-weight: 900; letter-spacing: -1px; line-height: 1; font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 16px; }
.kids-wordmark .sm  { color: var(--verde); }
.kids-wordmark .w1  { color: var(--kids-yellow); }
.kids-wordmark .w2a { color: var(--kids-blue); }
.kids-wordmark .w2b { color: var(--kids-pink); }
.kids-wordmark .w2c { color: var(--kids-cyan); }
.kids-wordmark .w2d { color: var(--kids-purple); }
.kids-band p { font-size: 14.5px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 22px; max-width: 440px; }

/* ============================================================
   RESULTADOS EN LÍNEA (monitor + texto)
============================================================ */
.resultados .split-text h2 { color: var(--navy-800); }
.resultados .split-text h2 .hl { color: var(--verde-dark); }
.resultados .split-text p { margin-bottom: 22px; }
.resultados-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.monitor-ph .img-ph { min-height: 240px; }

/* ============================================================
   ACREDITACIONES
============================================================ */
.acred-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: stretch; }
.acred-card {
  background: #fff; border: 1px solid var(--gris-mid); border-radius: 16px;
  padding: 20px 29px; box-shadow: var(--sombra-sm);
  display: flex; align-items: center; justify-content: center; min-width: 182px; min-height: 101px;
}
.acred-card .img-ph { min-height: 61px; width: 145px; }

/* ============================================================
   LAB KIDS — banner + tarjetas
============================================================ */
.kids-hero { position: relative; overflow: hidden; background: #fff; }
.kids-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.kids-hero h1.kids-wordmark { font-size: clamp(40px, 7vw, 72px); margin-bottom: 14px; }
.kids-hero .kids-tag { font-size: 16px; color: var(--gris-texto); line-height: 1.6; max-width: 360px; }
.kids-hero-img { position: relative; min-height: 300px; }
.kids-hero-img .arch {
  position: absolute; inset: 0; border-radius: 0 0 0 50% / 0 0 0 40%;
  overflow: hidden;
}
.kids-hero-img .img-ph { min-height: 320px; height: 100%; border-radius: 200px 200px 200px 0; }

.kids-banner { background: var(--kids-blue); color: #fff; text-align: center; padding: 22px 24px; }
.kids-banner h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: .3px; }

.kids-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kids-card { border-radius: var(--radio-lg); overflow: hidden; box-shadow: var(--sombra-sm); background: #fff; }
.kids-card .kc-img { position: relative; }
.kids-card .kc-img .img-ph { min-height: 260px; border-radius: 200px 200px 0 0; border-bottom: none; }
.kids-card .kc-body { background: var(--kids-blue); color: #fff; padding: 22px 24px 26px; margin-top: -60px; position: relative; border-radius: 12px; }
.kids-card .kc-body h3 { color: var(--verde); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.kids-card .kc-body p { font-size: 14px; color: rgba(255,255,255,.94); line-height: 1.6; }

/* ============================================================
   NOSOTROS — política, misión/visión, equipo
============================================================ */
.politica .split-img { position: relative; }
.politica .split-img .img-ph { min-height: 320px; }
.politica .img-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(20,36,47,.78), transparent);
  color: #fff; padding: 40px 26px 22px; font-size: clamp(16px,2vw,22px); font-weight: 700;
}
.politica-meta { font-size: 12px; color: var(--gris-suave); font-style: italic; margin-top: 18px; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.mv-card {
  background: var(--gris-bg); border-radius: var(--radio-xl);
  padding: 56px 36px 36px; position: relative; text-align: center; margin-top: 36px;
}
.mv-card .mv-ico {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--verde);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(124,156,42,.30);
}
.mv-card .mv-ico svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 1.7; }
.mv-card h3 { font-size: 22px; font-weight: 800; color: var(--navy-800); letter-spacing: 1px; margin-bottom: 14px; }
.mv-card p { font-size: 14px; color: var(--gris-texto); line-height: 1.75; }

.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); background: #fff; position: relative; }
.team-card .img-ph { min-height: 240px; border-radius: 0; border: none; }
.team-name {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(20,36,47,.78); color: #fff; border-radius: 8px;
  padding: 8px 12px; text-align: center;
}
.team-name strong { display: block; font-size: 13px; font-weight: 700; }
.team-name span { font-size: 11px; color: rgba(255,255,255,.8); }

/* ============================================================
   SERVICIOS — buscador + portafolio
============================================================ */
.search-band { background: linear-gradient(180deg, var(--navy-100), #fff); padding: 48px 24px; }
.search-band h2 { text-align: center; font-size: clamp(20px,2.6vw,26px); font-weight: 800; color: var(--verde-dark); margin-bottom: 22px; }
.search-box { max-width: 640px; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%; padding: 16px 52px 16px 22px; border: 2px solid var(--verde);
  border-radius: 30px; font-size: 15px; font-family: inherit; color: var(--negro);
  background: #fff; outline: none;
}
.search-box input:focus { box-shadow: 0 0 0 4px rgba(167,196,75,.22); }
.search-box .clear {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 1.5px solid var(--gris-mid); border-radius: 6px;
  background: #fff; color: var(--gris-suave); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.portafolio h2 { font-size: clamp(22px,3vw,30px); font-weight: 800; color: var(--verde-dark); line-height: 1.2; margin-bottom: 18px; }
.portafolio p.lead { font-size: 15px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 16px; }
.portafolio p.lead strong { color: var(--navy-800); }
.exam-list { columns: 1; }
.exam-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 14.5px; color: var(--gris-texto); }
.exam-list li::before { content: '•'; position: absolute; left: 4px; color: var(--verde-dark); font-weight: 700; font-size: 18px; line-height: 1; }

/* ============================================================
   CONTACTO — info, mapa, sugerencias, formulario
============================================================ */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.map-ph .img-ph { min-height: 360px; }
.contacto-info h2 { font-size: clamp(22px,3vw,28px); font-weight: 800; color: var(--verde-dark); margin-bottom: 20px; }
.contacto-info .addr { font-size: 15px; color: var(--gris-texto); line-height: 1.7; margin-bottom: 22px; }
.contacto-line { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--gris-texto); margin-bottom: 12px; }
.contacto-line svg { width: 20px; height: 20px; stroke: var(--verde-dark); fill: none; stroke-width: 1.7; flex-shrink: 0; }
.contacto-line a { color: var(--gris-texto); }
.contacto-line a:hover { color: var(--verde-dark); }

.horario-card {
  margin-top: 26px; border-left: 4px solid var(--verde); background: var(--verde-tint);
  border-radius: 10px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; max-width: 380px;
}
.horario-card svg { width: 30px; height: 30px; stroke: var(--verde-dark); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; }
.horario-card h4 { font-size: 14px; font-weight: 800; color: var(--navy-800); margin-bottom: 10px; }
.horario-card .row { display: flex; justify-content: space-between; gap: 24px; font-size: 13.5px; color: var(--gris-texto); margin-bottom: 5px; }
.horario-card .row strong { color: var(--navy-800); }

/* Bloque sugerencias + formulario */
.sugerencias { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.sugerencias-left { padding: 64px 48px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.sugerencias-left h2 { font-size: clamp(24px,3.4vw,34px); font-weight: 800; color: var(--navy-800); line-height: 1.3; }
.sugerencias-left h2 .hl { background: var(--verde); color: #fff; padding: 2px 10px; border-radius: 4px; display: inline-block; }
.sugerencias-left p { font-size: 15px; color: var(--gris-texto); margin: 18px 0; max-width: 380px; align-self: center; }
.sugerencias-tag { display: inline-block; background: var(--verde); color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 6px; font-size: 14px; align-self: center; }
.sugerencias-right { background: var(--verde); padding: 56px 48px; display: flex; align-items: center; }

/* ============================================================
   FORMULARIOS
============================================================ */
.form-card { background: #fff; border-radius: var(--radio-lg); padding: 36px 32px; box-shadow: var(--sombra-lg); width: 100%; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.form-group label .req { color: #D64545; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gris-mid);
  border-radius: 9px; font-size: 14.5px; color: var(--negro);
  background: var(--gris-bg); outline: none; font-family: inherit; transition: all .2s;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px rgba(167,196,75,.18);
}

/* ============================================================
   FOOTER (propio del laboratorio)
============================================================ */
.lab-footer { background: var(--footer-bg); color: rgba(255,255,255,.66); padding: 56px 24px 26px; }
.lab-footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr; gap: 40px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.lab-footer h4 { color: var(--verde); font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.lab-footer p { font-size: 13px; line-height: 1.7; }
.lab-footer ul li { margin-bottom: 9px; font-size: 13px; }
.lab-footer ul li a { color: rgba(255,255,255,.6); transition: color .2s; }
.lab-footer ul li a:hover { color: #fff; }
.lab-footer .f-line { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-bottom: 9px; }
.lab-footer .f-line svg { width: 15px; height: 15px; stroke: var(--verde); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.lab-footer .f-addr { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.f-horario { margin-top: 4px; }
.f-horario h4 { margin-top: 18px; margin-bottom: 10px; }
.f-horario .row { display: flex; gap: 18px; font-size: 12.5px; margin-bottom: 5px; }
.f-horario .row span:first-child { width: 70px; color: rgba(255,255,255,.85); }
.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; transition: background .2s; color: rgba(255,255,255,.85);
}
.social-link:hover { background: var(--verde); color: #fff; }
.social-link svg { width: 18px; height: 18px; }
.lab-footer-bottom {
  max-width: var(--maxw); margin: 22px auto 0; text-align: center;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
============================================================ */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .lab-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .lab-nav-links, .lab-nav-sep { display: none; }
  .nav-toggle { display: block; }
  .lab-nav-right .btn { display: none; }
  .value-row { grid-template-columns: 1fr; gap: 26px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-img { order: -1; }
  .kids-hero-inner { grid-template-columns: 1fr; }
  .kids-hero-img .img-ph { border-radius: 24px; }
  .kids-cards { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .sugerencias { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-row { grid-template-columns: 1fr; }
  .lab-footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 24px; }
  .sugerencias-left, .sugerencias-right { padding: 40px 24px; }
}

/* ============================================================
   CONTENIDO MULTIMEDIA (index)
============================================================ */
/* Hero con imagen real */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-img { min-height: 460px; }
.hero-img::after { background: linear-gradient(180deg, rgba(20,36,47,.05) 0%, rgba(20,36,47,.10) 60%, rgba(20,36,47,.28) 100%); }

/* Imágenes dentro de bloques split (ISO, etc.) */
.split-img > img {
  width: 100%; max-height: 440px; object-fit: cover;
  border-radius: var(--radio); box-shadow: var(--sombra-sm); display: block;
}

/* Logos de convenios */
.logo-chip img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

/* Video SM for kids */
.kids-video {
  width: 100%; max-height: 380px; object-fit: cover; display: block;
  border-radius: var(--radio); box-shadow: var(--sombra-sm); background: #000;
}

/* Captura del portal de resultados (marco tipo pantalla) */
.portal-shot {
  background: #fff; border: 1px solid var(--gris-mid); border-radius: var(--radio-lg);
  padding: 14px; box-shadow: var(--sombra); 
}
.portal-shot img { width: 100%; border-radius: 10px; display: block; }

/* Sellos de acreditación */
.acred-card img { max-height: 68px; width: auto; object-fit: contain; }

/* ============================================================
   AJUSTES DE CONTENIDO (cambios solicitados)
============================================================ */
/* Servicios: foto vertical completa (9:16 aprox., sin recorte) */
.serv-photo { display: flex; align-items: flex-start; justify-content: center; }
.serv-photo img {
  width: 100%; max-width: 390px; height: auto; max-height: none; display: block;
  border-radius: 12px; object-fit: contain; box-shadow: none;
}

/* Lab Kids: hero integrado con el banner azul */
.kids-hero { overflow: hidden; }
.kids-hero-inner { align-items: stretch; padding-bottom: 0; }
.kids-hero-text { align-self: center; padding: 24px 0 48px; }
.kids-hero-img { align-self: end; position: relative; min-height: 320px; }
.kids-hero-img::before {
  content: ''; position: absolute; z-index: 0;
  left: 7%; right: -3%; top: 7%; bottom: 0;
  background: var(--verde-soft); border-radius: 260px 260px 0 0;
}
.kids-hero-img img {
  position: relative; z-index: 1; width: 100%; max-height: 460px;
  object-fit: cover; display: block; border-radius: 260px 260px 0 0;
  box-shadow: var(--sombra-sm);
}

/* Lab Kids: imágenes de las tarjetas (arco superior) */
.kids-card .kc-img img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block;
  border-radius: 0;
}
.kids-card .kc-body { margin-top: 0; border-radius: 0; }

/* Nosotros: video de política de calidad */
.politica .split-img { min-height: 320px; }
.politica-video {
  width: 100%; height: 100%; max-height: 440px; min-height: 320px;
  object-fit: cover; border-radius: var(--radio); display: block; background: #000;
}

/* Nosotros: fotos del equipo (nombre incrustado en la imagen) */
.team-card img { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .kids-hero-inner { padding-bottom: 0; }
  .kids-hero-text { padding-bottom: 28px; }
  .kids-hero-img { align-self: stretch; }
  .kids-hero-img img { border-radius: 24px 24px 0 0; max-height: 340px; }
  .kids-hero-img::before { left: 0; right: 0; border-radius: 24px 24px 0 0; }
}

/* ============================================================
   AJUSTES v3
============================================================ */
/* Index: portal de resultados, solo la imagen (sin marco blanco) */
.monitor-ph { display: flex; justify-content: center; align-items: center; }
.monitor-ph .portal-img {
  width: 100%; max-width: 300px; height: auto; max-height: none; object-fit: contain; display: block;
  border-radius: 12px; box-shadow: var(--sombra-sm);
}

/* Nosotros: carrusel del equipo en una sola franja con flechas */
.team-carousel { position: relative; padding: 0 6px; }
.team-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 8px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track > .team-card {
  flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start;
}
.team-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gris-mid); box-shadow: var(--sombra);
  cursor: pointer; z-index: 4; font-size: 26px; line-height: 1; color: var(--verde-dark);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.team-arrow:hover { background: var(--verde); color: #fff; border-color: var(--verde); }
.team-arrow.prev { left: -18px; }
.team-arrow.next { right: -18px; }

/* Contacto: mapa de Google embebido */
.map-ph iframe {
  width: 100%; height: 100%; min-height: 380px; border: 0;
  border-radius: var(--radio); display: block; box-shadow: var(--sombra-sm);
}

@media (max-width: 960px) {
  .team-track > .team-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
  .team-track > .team-card { flex: 0 0 86%; }
  .team-arrow.prev { left: -6px; }
  .team-arrow.next { right: -6px; }
}

/* ============================================================
   RESPONSIVE v4 — hero móvil completo + detalles
============================================================ */
/* Correos/textos largos no desbordan en contacto */
.contacto-line { overflow-wrap: anywhere; min-width: 0; }
.contacto-line a { overflow-wrap: anywhere; word-break: break-word; }

/* Hero en móvil: imagen completa (badge legible) y botón debajo */
@media (max-width: 760px) {
  .hero-img { min-height: 0; display: block; background: #fff; }
  .hero-photo { position: static; width: 100%; height: auto; object-fit: contain; }
  .hero-img::after { display: none; }
  .hero-img-content { position: static; padding: 18px 24px 6px; }
}

/* Refuerzo responsive general en pantallas muy pequeñas */
@media (max-width: 480px) {
  .section { padding: 44px 18px; }
  .page-hero { padding: 40px 18px; }
  .lab-nav-inner { padding: 0 18px; height: 70px; }
  .lab-logo img { height: 46px; }
  .resultados-actions { flex-direction: column; }
  .resultados-actions .btn { width: 100%; }
  .hero-img-content .btn { width: 100%; }
  .sugerencias-left, .sugerencias-right { padding: 34px 18px; }
}

/* ============================================================
   FRANJA SUPERIOR (topbar verde)
============================================================ */
.lab-topbar {
  background: #A7C44B;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.3;
}
.lab-topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 9px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.lab-topbar a { color: #fff; font-weight: 800; text-decoration: none; }
.lab-topbar a:hover { text-decoration: underline; }
.lab-topbar .sep { opacity: .45; }

@media (max-width: 560px) {
  .lab-topbar { font-size: 12.5px; }
  .lab-topbar-inner { justify-content: center; gap: 8px; padding: 8px 16px; }
}

/* Fix: el botón del menú móvil debe conservar su texto blanco */
.lab-mobile a.btn-navy { color: #fff; }
.lab-mobile a.btn-verde,
.lab-mobile a.btn-kids { color: #fff; }

/* ============================================================
   PÁGINA LEGAL (política de privacidad)
============================================================ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 {
  font-size: 20px; color: var(--verde-dark); font-weight: 800;
  margin: 34px 0 12px; line-height: 1.3;
}
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 15px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 2px; }
.legal ul li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  font-size: 15px; color: var(--gris-texto); line-height: 1.7;
}
.legal ul li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--verde);
}
.legal strong { color: var(--navy-800); }
.legal a { color: var(--verde-dark); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.legal a:hover { color: var(--verde-darker); }

/* ============================================================
   BUSCADOR DE EXÁMENES + MODAL (servicios)
============================================================ */
.search-results { max-width: 640px; margin: 14px auto 0; display: none; }
.search-results.show { display: block; }
.exam-result {
  display: flex; align-items: center; gap: 12px;
  background: #f2f5f7; border-radius: 9px; padding: 12px 16px; margin-bottom: 8px;
  transition: background .15s ease;
}
.exam-result:hover { background: #e9eef2; }
.exam-ico { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; color: var(--verde); }
.exam-ico svg { width: 22px; height: 22px; }
.exam-name { flex: 1; color: var(--navy-800); font-size: 15px; font-weight: 600; }
.exam-detail {
  flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 4px 2px;
  color: var(--verde-dark); font-weight: 700; font-size: 14px; font-family: inherit; white-space: nowrap;
}
.exam-detail:hover { text-decoration: underline; }
.no-result { text-align: center; color: var(--gris-suave); padding: 16px; font-size: 14.5px;
  background: #f2f5f7; border-radius: 9px; }
.result-more { text-align: center; color: var(--gris-suave); font-size: 12.5px; padding: 4px 6px 2px; }

/* Modal */
.exam-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.exam-modal.open { display: flex; }
.exam-modal-overlay { position: absolute; inset: 0; background: rgba(20,36,47,.55); backdrop-filter: blur(2px); }
.exam-modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: 16px;
  max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--sombra-lg); padding: 20px; animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.exam-modal-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: none; color: var(--gris-suave); font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 3;
}
.exam-modal-close:hover { background: var(--gris-bg); color: var(--negro); }
.exam-modal-header {
  background: var(--verde); color: #fff; border-radius: 12px;
  padding: 20px 44px; text-align: center; margin-bottom: 20px;
}
.exam-modal-header h3 { font-size: clamp(18px, 2.4vw, 23px); font-weight: 800; line-height: 1.3; }
.exam-modal-body { padding: 0 8px 6px; }
.exam-modal-body .m-desc {
  font-size: 15px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 22px; white-space: pre-line;
}
.m-field { margin-bottom: 18px; }
.m-field:last-child { margin-bottom: 4px; }
.m-label { font-size: 14px; font-weight: 800; color: var(--verde-dark); margin-bottom: 5px; }
.m-value { font-size: 15px; color: var(--negro); line-height: 1.7; white-space: pre-line; }

@media (max-width: 560px) {
  .exam-result { flex-wrap: wrap; }
  .exam-name { flex: 1 1 100%; order: 2; }
  .exam-detail { order: 3; margin-left: 34px; }
  .exam-ico { order: 1; }
  .exam-modal-header { padding: 18px 40px; }
}
