/* Fortunato Salud v3 — versión simple: tamaños fijos, ancho máximo, pocas animaciones. */
:root {
  --ink: #000e23;
  --blue: #2372ae;
  --blue-soft: #e8f1f8;
  --text: #1c2533;
  --muted: #5d6878;
  --line: #e3e8ee;
  --tint: #f6f8fb;
  --white: #fff;
  --radius: 14px;
  --wrap: 1180px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.025em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.kicker i { width: 8px; height: 8px; background: var(--blue); display: block; }
.kicker--light { color: rgba(255,255,255,.65); }
.kicker--light i { background: #7fb5e0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; border: 1px solid transparent; font: 500 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #0d2a4d; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #c9d2dd; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #dbe8f3; }
.btn--block { width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__word { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav__cta { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.menu-btn { display: none; }

/* ===== Portada ===== */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; }
.lead { margin: 22px 0 0; max-width: 34em; font-size: 19px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font-size: 18px; font-weight: 600; color: var(--ink); }
.hero__facts span { font-size: 14px; color: var(--muted); }
.hero__media { position: relative; margin: 0; aspect-ratio: 1 / 1; max-height: 560px; border-radius: 22px; overflow: hidden; background: var(--blue); box-shadow: 0 30px 60px -30px rgba(0,14,35,.45); }
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__badge { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(0,14,35,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--white); font-size: 14.5px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 4px rgba(95,208,138,.25); flex: none; }

/* ===== Rubros ===== */
.rubros { border-block: 1px solid var(--line); background: var(--tint); }
.rubros__inner { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; padding-block: 14px; }
.rubros__inner > span { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.rubros ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; }
.rubros li { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }

.risks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.risk { padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.risk:hover { border-color: #c9d8e6; box-shadow: 0 18px 40px -28px rgba(0,14,35,.35); }
.risk__art { aspect-ratio: 3 / 2; margin-bottom: 20px; border-radius: 10px; background: #f3f5f8 url(assets/card-grid.svg) center / cover; overflow: hidden; }
.risk__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.risk h3, .service h3 { font-size: 20px; }
.risk p, .service p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.risk h3, .risk p { padding-inline: 8px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.service span { display: block; margin-bottom: 36px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--blue); }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.how__media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--tint); }
.how__media img, .how__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.how__video { opacity: 0; transition: opacity .6s ease; }
.how__video.is-playing { opacity: 1; }
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 52px; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font: 500 13px/1 var(--mono); }
.steps b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.steps span { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }
.note { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.note b { color: var(--ink); font-weight: 600; }

/* ===== Contacto ===== */
.contact { padding: 96px 0; background: var(--ink); color: var(--white); }
.contact h2 { color: var(--white); }
.contact h2 em { color: #7fb5e0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy > p { margin: 18px 0 0; max-width: 30em; color: rgba(255,255,255,.72); }
.contact__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__list small { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact__list a { color: var(--white); text-decoration: none; }
.form { display: grid; gap: 14px; padding: 30px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.7); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.06); color: var(--white); font: 16px var(--sans); }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #7fb5e0; background: rgba(255,255,255,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { margin: 0; font-size: 13px; text-align: center; color: rgba(255,255,255,.5); }

.footer { padding: 40px 0 90px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; gap: 10px; }
.footer img { width: 150px; height: auto; margin-bottom: 6px; }
.footer p { margin: 0; }
.footer b { color: var(--ink); font-weight: 600; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 12px 28px -10px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Aparición suave: solo si JS la activa (falla abierto). */
html.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .nav { position: absolute; top: 72px; left: 16px; right: 16px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 20px 40px -20px rgba(0,14,35,.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 12px 10px; border-radius: 8px; font-size: 16px; color: var(--ink); }
  .nav a:not(.btn):hover { background: var(--tint); }
  .nav__cta { margin-top: 6px; min-height: 48px; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero__grid, .how, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-height: none; aspect-ratio: 4 / 3; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
/* ===== Móvil ===== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .header__inner { height: 64px; }
  .nav { top: 64px; }
  .logo__word { width: 128px; }
  .hero { padding: 32px 0 52px; }
  .lead { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__facts { gap: 18px 24px; }
  .hero__media { aspect-ratio: 1 / 1; }
  .section, .contact { padding: 64px 0; }
  .risks, .services, .field-row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}
