/* ===========================================================
   REMUV — Landing
   Mobile-first. Sin frameworks. Variables CSS para tematización.
=========================================================== */

:root {
  /* Marca */
  --navy:        #0a1f44;
  --navy-2:      #122a5c;
  --navy-soft:   #1a3a7d;
  --gold:        #f0b310;
  --gold-soft:   #ffd34d;
  --red:         #e63946;
  --white:       #ffffff;
  --ink:         #0a1f44;
  --muted:       #6b7280;
  --bg:          #f7f9fc;
  --bg-2:        #eef2f9;
  --border:      rgba(10, 31, 68, 0.08);

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Tamaños */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow:    0 12px 32px -12px rgba(10, 31, 68, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 68, 0.32);
}

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

/* ----------- Layout ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------- Tipografía base ----------- */
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }

.grad {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(10, 31, 68, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow--inverse {
  color: var(--gold);
  background: rgba(240, 179, 16, 0.18);
}

/* ===========================================================
   NAV
=========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  transition: background 220ms ease, backdrop-filter 220ms ease,
              box-shadow 220ms ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 220ms ease;
}
.nav.is-scrolled .nav__brand { color: var(--navy); }
.nav__logo { width: 32px; height: 32px; border-radius: 8px; }
.nav__brand-text { font-size: 1.05rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 220ms ease;
}
.nav.is-scrolled .nav__links a { color: var(--navy); }
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 16px;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(240, 179, 16, 0.5);
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240, 179, 16, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(26, 58, 125, 0.6), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0, transparent 1.5px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.04) 0, transparent 1.5px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0, transparent 1.5px);
  background-size: 80px 80px, 60px 60px, 100px 100px;
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.35);
  animation: floatY 6s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.hero__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(240, 179, 16, 0.7);
  animation: pulse 1.8s infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 179, 16, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(240, 179, 16, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 179, 16, 0); }
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform 220ms ease, box-shadow 220ms ease,
              background 220ms ease, color 220ms ease;
  white-space: nowrap;
}
.btn__icon { font-size: 1.15em; line-height: 1; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 24px -8px rgba(240, 179, 16, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(240, 179, 16, 0.7);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ===========================================================
   SECTIONS
=========================================================== */
.section {
  padding: 100px 0;
  position: relative;
}
.section--medicos {
  background: var(--white);
}
.section--pacientes {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.section--pacientes .section__sub { color: rgba(255, 255, 255, 0.75); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.section__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================================================
   GRID DE FEATURES
=========================================================== */
.grid {
  display: grid;
  gap: 20px;
}
.grid--features {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--features { grid-template-columns: repeat(4, 1fr); }
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 320ms ease,
              border-color 320ms ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 179, 16, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 179, 16, 0.4);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.06), rgba(240, 179, 16, 0.1));
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Variante para sección oscura (pacientes) */
.feature--alt {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.feature--alt:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 179, 16, 0.5);
}
.feature--alt p { color: rgba(255, 255, 255, 0.7); }
.feature--alt .feature__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(240, 179, 16, 0.18));
}

/* ===========================================================
   CTA
=========================================================== */
.cta {
  padding: 100px 20px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(240, 179, 16, 0.08), transparent 60%),
    var(--bg-2);
  text-align: center;
}
.cta__inner {
  max-width: 620px;
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--navy);
}
.cta__sub {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===========================================================
   FORM
=========================================================== */
.form {
  display: grid;
  gap: 12px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form input,
.form select,
.form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
  outline: none;
  width: 100%;
  font-family: inherit;
}
.form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 179, 16, 0.18);
  background: var(--white);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%230a1f44' d='M8 11L3 6h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}

.form__msg {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form__msg.is-ok    { color: #15803d; }
.form__msg.is-error { color: #dc2626; }

.form__hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.form__link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(240, 179, 16, 0.5);
  text-underline-offset: 3px;
  transition: color 220ms ease;
}
.form__link:hover {
  color: var(--gold);
}

/* ===========================================================
   FOOTER
=========================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 50px 0 36px;
  font-size: 0.9rem;
}
.footer__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--white);
}
.footer__brand strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.footer__brand span { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.footer__logo { width: 32px; height: 32px; border-radius: 8px; }

.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 220ms ease;
}
.footer__links a:hover { color: var(--gold); }

.footer__legal {
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 768px) {
  .footer__legal { text-align: right; }
}

/* ===========================================================
   ANIMACIONES DE SCROLL (data-reveal)
=========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para tarjetas de features */
.grid--features .feature[data-reveal] { transition-delay: 0ms; }
.grid--features .feature[data-reveal]:nth-child(2) { transition-delay: 80ms; }
.grid--features .feature[data-reveal]:nth-child(3) { transition-delay: 160ms; }
.grid--features .feature[data-reveal]:nth-child(4) { transition-delay: 240ms; }
.grid--features .feature[data-reveal]:nth-child(5) { transition-delay: 80ms; }
.grid--features .feature[data-reveal]:nth-child(6) { transition-delay: 160ms; }
.grid--features .feature[data-reveal]:nth-child(7) { transition-delay: 240ms; }
.grid--features .feature[data-reveal]:nth-child(8) { transition-delay: 320ms; }

/* ===========================================================
   PREFERENCIAS DE USUARIO
=========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===========================================================
   AJUSTES MOBILE FINOS
=========================================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .cta { padding: 70px 16px; }
  .feature { padding: 22px 18px; }
  .form { padding: 20px; }
  .hero { padding: 100px 0 70px; }
  .hero__logo { width: 80px; height: 80px; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }
}
