/* Pulso — consultas independientes: verde bosque profundo, salvia y durazno; Petrona + Figtree. */
:root {
  --bg: #f4f2eb; --paper: #fbfaf6; --ink: #17302b; --muted: #5d6c67; --line: rgba(23,48,43,.12);
  --accent: #e8875e; --peach: #e8875e; --sage: #dfe7dc; --forest: #17302b; --forest-2: #24463f;
  --serif: "Petrona", Georgia, serif; --sans: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(18px, 4vw, 56px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
::selection { background: var(--peach); color: #fff; }
.wrap { width: min(1300px, 100%); margin-inline: auto; padding-inline: var(--gut); }
em { font-style: italic; color: var(--peach); }
.kick { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); margin-bottom: 16px; }
.kick.light { color: #f4b292; }
.h2 { font: 400 clamp(36px, 4.8vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 20ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 48ch; margin-top: 16px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px 40px; margin-bottom: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); white-space: nowrap; }
.btn-peach { background: var(--peach); color: #fff; }
.btn-peach:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--peach); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 11px 16px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); transition: box-shadow .4s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); background: rgba(244,242,235,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 78px; width: min(1300px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 32px/1 var(--serif); letter-spacing: -.02em; }
.logo svg { width: 44px; height: 22px; fill: none; stroke: var(--peach); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.menu { display: none; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; }
.menu a { color: var(--muted); transition: color .3s; }
.menu a:hover { color: var(--ink); }
.nav-cta { display: none; padding: 12px 18px; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; inset: 78px 0 0 0; background: var(--bg); padding: 30px var(--gut); gap: 10px; font: 400 34px/1.25 var(--serif); }
.menu-open .menu a { color: var(--ink); }

/* Hero */
.hero { padding: clamp(30px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); }
.hero-grid { display: grid; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: var(--sage); font-size: 14px; font-weight: 600; }
.beat { width: 9px; height: 9px; border-radius: 50%; background: var(--peach); animation: hb 1.4s infinite; }
@keyframes hb { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.4); } 30% { transform: scale(1); } 45% { transform: scale(1.3); } }
.hero-title { font: 400 clamp(56px, 7.6vw, 118px)/.96 var(--serif); letter-spacing: -.035em; margin: 22px 0 22px; }
.hero-title em { display: block; }
.hero-lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); max-width: 48ch; }
.today { margin-top: 30px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; max-width: 520px; box-shadow: 0 30px 60px -44px rgba(23,48,43,.6); }
.today-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--forest); color: var(--paper); font-size: 14px; }
.today-h span { opacity: .7; text-transform: capitalize; }
.today li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.today li:first-child { border-top: 0; }
.today img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.today b { display: block; font-size: 15px; }
.today small { color: var(--muted); font-size: 13px; }
.today em { font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 99px; background: var(--sage); color: var(--ink); white-space: nowrap; }
.today em.later { background: #f3ebe2; color: var(--muted); }
.hero-visual { position: relative; }
.hv-img { border-radius: 36px 36px 36px 140px; overflow: hidden; aspect-ratio: 4/4.4; }
.hv-img img { width: 100%; height: 100%; object-fit: cover; }
.chip-f { position: absolute; display: grid; padding: 14px 18px; border-radius: 16px; background: rgba(251,250,246,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -24px rgba(23,48,43,.5); font-size: 14px; }
.chip-f small { color: var(--muted); }
.c1 { top: 8%; left: -4%; }
.c2 { bottom: 10%; right: -3%; border-left: 4px solid var(--peach); }

/* Síntomas */
.sym { padding: clamp(80px, 10vw, 130px) 0; background: var(--sage); }
.sym-grid { display: grid; gap: 40px; align-items: center; }
.sym-f { margin-top: 26px; }
.sym-f input { width: 100%; padding: 18px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-size: 17px; }
.sym-f input:focus { outline: none; box-shadow: 0 0 0 5px rgba(232,135,94,.25); }
.sym-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sym-chips button { padding: 9px 14px; border-radius: 99px; background: rgba(251,250,246,.7); font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: all .3s; }
.sym-chips button:hover, .sym-chips button.is-on { border-color: var(--ink); background: var(--paper); }
.sym-out { min-height: 280px; border-radius: 26px; background: var(--paper); padding: 26px; display: grid; align-content: center; }
.sym-empty { color: var(--muted); text-align: center; font-size: 17px; }
.so { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; animation: soIn .6s var(--ease) both; }
@keyframes soIn { from { opacity: 0; transform: translateY(12px); } }
.so img { width: 110px; height: 130px; border-radius: 18px; object-fit: cover; object-position: 50% 20%; }
.so p.why { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 15px; }
.so .so-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

/* Profesionales */
.team { padding: clamp(80px, 10vw, 140px) 0; }
.pro-grid { display: grid; gap: 18px; }
.pro { border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.pro:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -40px rgba(23,48,43,.55); }
.pro-img { aspect-ratio: 4/3.6; background: var(--tint); overflow: hidden; }
.pro-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.pro:hover .pro-img img { transform: scale(1.04); }
.pro-b { padding: 20px; display: grid; gap: 6px; }
.pro-s { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.pro h3 { font: 400 28px/1.1 var(--serif); }
.pro-h { font-size: 14px; color: var(--muted); }
.pro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pro-tags span { padding: 5px 10px; border-radius: 99px; background: var(--sage); font-size: 12px; font-weight: 600; }
.pro-cta { display: flex; gap: 8px; margin-top: 8px; }

/* Modal de perfil */
.modal { margin: auto; width: min(760px, calc(100vw - 24px)); max-height: calc(100svh - 40px); padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0,0,0,.5); overflow: auto; }
.modal::backdrop { background: rgba(23,48,43,.55); backdrop-filter: blur(6px); }
.modal[open] { animation: mdIn .5s var(--ease); }
@keyframes mdIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-x { position: sticky; float: right; top: 14px; margin: 14px 14px 0 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; }
.modal-body { padding: clamp(22px, 4vw, 40px); }
.modal .profile { display: grid; gap: 20px; }
.pf-head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.pf-head img { width: 120px; height: 140px; border-radius: 20px; object-fit: cover; object-position: 50% 18%; }
.pf-head h3 { font: 400 clamp(30px, 4vw, 42px)/1.05 var(--serif); }
.pf-bio { font: 400 20px/1.5 var(--serif); }
.pf-cols { display: grid; gap: 24px; }
.pf-cols h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pf-form li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pf-pres li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pf-pres b { white-space: nowrap; }
.pf-hor { padding: 14px 16px; border-radius: 14px; background: var(--sage); }
.pf-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Por qué */
.why { padding: clamp(80px, 10vw, 140px) 0; background: var(--forest); color: var(--paper); }
.why .h2 em { color: #f4b292; }
.why-grid { display: grid; gap: 44px; align-items: center; }
.why-img { border-radius: 30px 30px 120px 30px; overflow: hidden; aspect-ratio: 4/3.4; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-list { margin-top: 30px; display: grid; gap: 4px; }
.why-list li { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid rgba(251,250,246,.14); }
.why-list b { font: 400 22px/1.2 var(--serif); color: #f4b292; }
.why-list h3 { font: 400 24px/1.2 var(--serif); }
.why-list p { color: rgba(251,250,246,.7); margin-top: 4px; }

/* Aranceles */
.fees { padding: clamp(80px, 10vw, 140px) 0; }
.table-wrap { overflow-x: auto; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
td:first-child { font: 400 19px/1.2 var(--serif); }
td:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7f5ef; }

/* Telemedicina */
.tele { padding: clamp(80px, 10vw, 130px) 0; background: #f3e6dc; }
.tele-grid { display: grid; gap: 40px; align-items: center; }
.tele .btn { margin-top: 26px; }
.tele-img { border-radius: 30px; overflow: hidden; aspect-ratio: 4/3; }
.tele-img img { width: 100%; height: 100%; object-fit: cover; }

/* Ubicación */
.loc { padding: clamp(80px, 10vw, 140px) 0; }
.loc-grid { display: grid; gap: 40px; }
.loc-c { margin-top: 26px; padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; color: var(--muted); }
.loc-c b { color: var(--ink); }
.loc-open { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--sage); font-size: 13px; font-weight: 700; color: var(--ink) !important; }
.loc-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa8a3; }
.loc-open.is-open::before { background: #1f9d63; box-shadow: 0 0 0 4px rgba(31,157,99,.2); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 400 22px/1.25 var(--serif); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); font: 400 20px/1 var(--sans); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc details p { padding: 0 0 22px; color: var(--muted); }

/* Footer */
.foot { background: var(--forest); color: rgba(251,250,246,.65); padding-top: 64px; }
.foot-in { display: grid; gap: 28px; padding-bottom: 40px; }
.foot .logo { color: var(--paper); }
.foot-in p { margin-top: 10px; }
.foot h4 { font: 400 20px/1 var(--serif); color: #f4b292; }
.foot a { cursor: pointer; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* Responsive */
@media (min-width: 720px) {
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .menu, .nav-cta { display: flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; }
  .sym-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .pro-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .tele-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .loc-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 539px) { .c1 { left: 0; } .c2 { right: 0; } }
@media (prefers-reduced-motion: reduce) { .beat { animation: none; } }
