/* ==========================================================================
   KALI SALUD — Diseño "Warm Clinical Premium"
   Motivo distintivo: línea de pulso (EKG) en durazno.
   ========================================================================== */

:root {
  --green: #3F5039;
  --green-deep: #2E3A29;
  --green-ink: #232B1F;
  --peach: #E7A97C;
  --peach-strong: #C97D4A;
  --peach-tint: #FBF0E4;
  --cream: #FDFBF6;
  --paper: #FFFFFF;
  --ink: #22271F;
  --text: #575B52;
  --line: #E9E4D9;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px -2px rgba(63, 80, 57, 0.08);
  --shadow-md: 0 12px 28px -8px rgba(63, 80, 57, 0.14);
  --shadow-lg: 0 32px 64px -16px rgba(46, 58, 41, 0.22);
  --radius: 16px;
  --section-y: clamp(84px, 11vw, 136px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.22; letter-spacing: -0.015em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 18px; z-index: 300; font-size: 14px; text-decoration: none; }
.skip-link:focus { left: 0; }

/* Motivo de marca: línea de pulso */
.pulse { display: block; width: 120px; height: 26px; color: var(--peach); }
.pulse.center { margin: 0 auto; }
.pulse svg { width: 100%; height: 100%; }
.pulse-draw path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawPulse 2.2s ease forwards 0.4s; }
@keyframes drawPulse { to { stroke-dashoffset: 0; } }

/* Auras de fondo */
.aura { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.aura.g { background: rgba(63, 80, 57, 0.07); }
.aura.p { background: rgba(231, 169, 124, 0.16); }

/* Utilidades */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--peach-strong); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--peach); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-quiet { color: var(--ink); font-weight: 600; gap: 8px; padding: 15px 8px; }
.btn-quiet svg { transition: transform .18s ease; }
.btn-quiet:hover svg { transform: translateX(4px); }
.btn-quiet:hover { color: var(--peach-strong); }
.btn:focus-visible { outline: 2px solid var(--peach-strong); outline-offset: 3px; }

.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 9px;
  border: 1.5px solid var(--green); color: var(--green);
  text-decoration: none; font-weight: 600; font-size: 13px;
  transition: background .18s ease, color .18s ease;
}
.btn-login svg { width: 15px; height: 15px; }
.btn-login:hover { background: var(--green); color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .pulse-draw path { opacity: 1; transform: none; transition: none; animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* Navegación */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(253, 251, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.nav-logo { height: 38px; width: auto; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink);
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--peach); border-radius: 2px; transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: clamp(150px, 18vw, 210px) 0 clamp(70px, 9vw, 110px); text-align: center; overflow: hidden; }
.hero .aura.p { width: 560px; height: 560px; top: -180px; left: 50%; transform: translateX(-62%); }
.hero .aura.g { width: 480px; height: 480px; top: 60px; left: 58%; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo { height: clamp(110px, 15vw, 152px); width: auto; margin: 0 auto 30px; filter: drop-shadow(0 18px 30px rgba(63, 80, 57, 0.16)); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 800px; margin: 22px auto 0; }
.hero h1 .accent { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--peach); opacity: .32; z-index: -1; border-radius: 3px; }
.hero p { font-size: clamp(16px, 1.7vw, 18px); max-width: 600px; margin: 24px auto 40px; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* Cinta de indicadores */
.stats { position: relative; z-index: 1; margin-top: clamp(64px, 8vw, 96px); }
.stats-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
}
.stat { padding: 34px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); color: var(--green); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 12.5px; letter-spacing: .02em; }

/* Secciones */
section { position: relative; padding: var(--section-y) 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto clamp(48px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 6px; }
.sec-head p { font-size: 15.5px; margin-top: 16px; }
.sec-head .pulse { margin-top: 22px; }

/* Quiénes somos */
.about { overflow: hidden; }
.about .aura.p { width: 460px; height: 460px; right: -180px; top: 10%; }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(44px, 6vw, 80px); align-items: start; }
.about-copy .opening { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 25px); color: var(--ink); line-height: 1.5; margin-bottom: 22px; }
.about-copy p { font-size: 15px; margin-bottom: 16px; }
.about-values { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.about-values li { font-size: 13px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.about-values li svg { width: 14px; height: 14px; color: var(--peach-strong); }
.mv-stack { display: grid; gap: 22px; }
.mv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.mv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--peach), var(--peach-strong)); }
.mv-card h3 { font-size: 17px; margin-bottom: 8px; }
.mv-card p { font-size: 14px; }

/* Prestaciones */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--peach-tint) 50%, var(--cream) 100%); }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serv-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 30px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.serv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.serv-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--peach-strong));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.serv-card:hover::after { transform: scaleX(1); }
.serv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.serv-tile { width: 50px; height: 50px; border-radius: 14px; background: var(--peach-tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.serv-tile svg { width: 24px; height: 24px; }
.serv-idx { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--line); line-height: 1; }
.serv-card h3 { font-size: 16.5px; margin-bottom: 9px; }
.serv-card p { font-size: 13.5px; }
.serv-card.wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 30px 34px; }
.serv-card.wide .serv-top { margin: 0; }
.serv-card.wide h3 { margin-bottom: 6px; }

/* Cómo trabajamos */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 27px; left: 9%; right: 9%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--peach) 0 10px, transparent 10px 18px); opacity: .55;
}
.pstep { position: relative; padding: 0 18px; text-align: center; }
.pstep-node {
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--peach);
  color: var(--green); font-family: var(--font-display); font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pstep:hover .pstep-node { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.06); }
.pstep h4 { font-size: 15px; margin-bottom: 8px; }
.pstep p { font-size: 12.5px; }

/* Equipo */
.team {
  background: radial-gradient(700px 420px at 85% -10%, rgba(231,169,124,0.14), transparent 60%),
              linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #E7E3D6;
}
.team .eyebrow { color: var(--peach); }
.team .eyebrow::before { background: var(--peach); }
.team h2, .team h3, .team h4 { color: #fff; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 80px); align-items: center; }
.team-copy > p { color: #CFCABA; font-size: 15px; margin-bottom: 26px; max-width: 460px; }
.team-quote { border-left: 3px solid var(--peach); padding: 4px 0 4px 22px; margin-top: 30px; }
.team-quote h4 { font-size: 16px; margin-bottom: 6px; }
.team-quote p { font-size: 13.5px; color: #CFCABA; }
.team-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 16px 18px; font-size: 13.5px; font-weight: 500; color: #F0EDE2;
  display: flex; align-items: center; gap: 11px; transition: background .2s ease, border-color .2s ease;
}
.role-card:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(231, 169, 124, 0.5); }
.role-card svg { width: 16px; height: 16px; color: var(--peach); flex-shrink: 0; }

/* Por qué elegirnos */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--peach); }
.why-item h4 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.why-item h4::before { content: ''; width: 9px; height: 9px; background: var(--peach); transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; }
.why-item p { font-size: 13.5px; }

/* Cobertura */
.coverage { background: linear-gradient(180deg, var(--cream), var(--peach-tint) 120%); }
.cov-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.15fr 0.85fr; overflow: hidden;
}
.cov-list { padding: clamp(32px, 4vw, 52px); }
.cov-list h3 { font-size: 20px; margin-bottom: 8px; }
.cov-list > p { font-size: 14px; margin-bottom: 20px; }
.cov-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cov-list li:last-child { border-bottom: none; }
.cov-list svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.cov-side {
  background: linear-gradient(165deg, var(--green), var(--green-deep));
  color: #E7E3D6; padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.cov-side .pulse { color: var(--peach); width: 90px; }
.cov-side h4 { color: #fff; font-size: 19px; }
.cov-side p { font-size: 14px; color: #CFCABA; }

/* Contacto */
.contact { overflow: hidden; }
.contact .aura.p { width: 520px; height: 520px; left: -220px; bottom: -140px; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(30px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card > p { font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--cream);
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 116px; }
.form-note { font-size: 11.5px; margin-top: 14px; }
.form-status { font-size: 13px; margin-top: 14px; font-weight: 500; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.err { display: block; color: #A94430; }
.contact-side .lead { font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-bottom: 26px; line-height: 1.5; }
.c-item {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.c-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--peach); }
.c-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--peach-tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-tile svg { width: 20px; height: 20px; }
.c-item h4 { font-size: 14.5px; margin-bottom: 1px; }
.c-item p { font-size: 12.5px; }

/* Footer */
footer { background: var(--green-ink); color: #A9A493; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 44px; margin-bottom: 52px; }
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-tagline { font-family: var(--font-display); font-size: 15px; color: #E7E3D6; margin-bottom: 14px; }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col p { font-size: 13px; margin-bottom: 8px; }
a.f-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #C4BFAE; font-size: 13px; margin-bottom: 12px; transition: color .16s ease; }
a.f-link:hover { color: var(--peach); }
a.f-link svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--peach); }
.map-box { border-radius: 12px; overflow: hidden; height: 150px; margin-top: 12px; border: 1px solid rgba(255,255,255,.08); }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.12); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 20px;
  font-size: 11.5px; color: #7E7A6B;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Responsive */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: fixed; top: 75px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 26px 32px; gap: 20px;
    box-shadow: var(--shadow-lg); z-index: 199; border-bottom: 1px solid var(--line);
  }
  .hamburger { display: block; }
  .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .cov-card { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .serv-card.wide { grid-column: span 2; grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 34px; }
  .process-grid::before { display: none; }
  .pstep { text-align: left; display: flex; gap: 20px; padding: 0; }
  .pstep-node { margin: 0; flex-shrink: 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-template-columns: 1fr; }
  .stat + .stat::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 1px; }
}
@media (max-width: 580px) {
  .container { padding: 0 22px; }
  .serv-grid { grid-template-columns: 1fr; }
  .serv-card.wide { grid-column: span 1; }
  .why-grid, .team-roles, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-ctas { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
}

