/* ============================================================
   MediCard — hoja de estilos
   Paleta: verde azulado (salud/confianza) + coral (cercanía humana)
   ============================================================ */

:root {
  --teal-deep: #0b3d3a;
  --teal-mid: #14776c;
  --teal-soft: #1c9384;
  --mint-bg: #f3f8f6;
  --mint-line: #dbeae5;
  --coral: #ff6b4a;
  --coral-dark: #e0553a;
  --gold: #d9b166;
  --ink: #12221f;
  --ink-soft: #4a5f5a;
  --white: #ffffff;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mint-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--mint-line);
  background: rgba(243, 248, 246, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--teal-deep);
}

.logo span {
  color: var(--coral);
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--teal-deep);
  border-color: var(--teal-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
  border-color: var(--coral);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--cta {
  background: var(--teal-deep);
  color: var(--white);
}

.btn--cta:hover {
  background: var(--teal-mid);
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(255, 107, 74, 0.65);
}

.btn--primary:hover {
  background: var(--coral-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}

.btn--ghost:hover {
  background: var(--teal-deep);
  color: var(--white);
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--teal-mid);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--teal-deep);
  max-width: 16ch;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

.disclaimer-badge {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px dashed var(--teal-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 50ch;
  margin: 0;
}

.disclaimer-badge strong {
  color: var(--teal-deep);
}

/* ---------- card mockup (signature element) ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.card-mock {
  width: 320px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(135deg, var(--teal-soft), var(--teal-deep) 70%);
  color: var(--white);
  box-shadow: 0 30px 60px -20px rgba(11, 61, 58, 0.55);
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.card-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-mock__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.card-mock__chip {
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold), #f3d896);
}

.card-mock__number {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.card-mock__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.card-mock__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.card-mock__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.card-mock__pulse {
  width: 84px;
  height: 28px;
  overflow: visible;
}

.card-mock__pulse path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stamp {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  color: var(--coral-dark);
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  transform: rotate(-14deg);
  box-shadow: 0 12px 24px -12px rgba(11, 61, 58, 0.4);
  padding: 8px;
}

/* ---------- sections generales ---------- */

section {
  padding: 56px 0;
}

.section-head {
  max-width: 60ch;
  margin: 0 0 36px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--teal-deep);
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* beneficios */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
  padding: 22px;
}

.benefit-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mint-bg);
  border: 1px solid var(--mint-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--teal-mid);
}

.benefit-card h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* pasos (secuencia real → numeración justificada) */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 44px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* contacto */

.contact-panel {
  background: var(--teal-deep);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-panel h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  max-width: 22ch;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
  margin: 8px 0 0;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-panel .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-panel .btn--ghost:hover {
  background: var(--white);
  color: var(--teal-deep);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--mint-line);
  padding: 36px 0 40px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-note {
  max-width: 46ch;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-note strong {
  color: var(--teal-deep);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--teal-deep);
}

.footer-meta {
  width: 100%;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mint-line);
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ---------- páginas legales ---------- */

.legal {
  max-width: 74ch;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal .eyebrow {
  margin-bottom: 10px;
}

.legal h1 {
  color: var(--teal-deep);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.15rem;
  color: var(--teal-deep);
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 1.2em;
}

.legal .callout {
  background: var(--white);
  border: 1px dashed var(--teal-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
}

.legal .placeholder {
  background: rgba(255, 107, 74, 0.14);
  color: var(--coral-dark);
  padding: 0 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 12px;
  }

  .card-mock {
    width: 280px;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 40px;
  }

  section {
    padding: 40px 0;
  }

  .contact-panel {
    padding: 32px 24px;
  }
}
