/* =========================================
   MyData - Landing estatica para inscripcion
   Paleta: tinta clinica, azul MyData, verde seguridad, ambar accion
   ========================================= */

:root {
  --md-ink: #0b1229;
  --md-ink-soft: #334155;
  --md-muted: #64748b;
  --md-brand: #1c3e8a;
  --md-brand-deep: #10295f;
  --md-brand-soft: #e8eefb;
  --md-sky: #3b82f6;
  --md-green: #12805c;
  --md-green-soft: #dff7ea;
  --md-amber: #f6b73c;
  --md-paper: #fafbfe;
  --md-white: #ffffff;
  --md-border: #e2e8f0;
  --md-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --md-radius: 8px;
  --md-container: 1120px;
  --md-header: 76px;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--md-paper);
  color: var(--md-ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.7);
  outline-offset: 3px;
}

.section-inner {
  width: min(100% - 40px, var(--md-container));
  margin: 0 auto;
}

.section-head {
  max-width: 660px;
  margin-bottom: 30px;
}

.section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.security__copy h2,
.signup h2 {
  margin: 0 0 14px;
  color: var(--md-ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-head p,
.security__copy p,
.signup p {
  margin: 0;
  color: var(--md-muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--md-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--md-radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

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

.button--primary {
  background: var(--md-brand);
  color: var(--md-white);
  box-shadow: 0 12px 28px rgba(28, 62, 138, 0.22);
}

.button--primary:hover {
  background: var(--md-brand-deep);
}

.button--secondary {
  background: var(--md-white);
  color: var(--md-brand);
  border-color: var(--md-border);
}

.button--secondary:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(250, 251, 254, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-header[data-state="scrolled"] {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--md-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
  width: min(100% - 32px, var(--md-container));
  height: var(--md-header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo {
  width: auto;
  height: 40px;
}

.site-header__nav,
.site-header__actions {
  display: none;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--md-radius);
  color: var(--md-ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-header__nav-link:hover {
  background: var(--md-brand-soft);
  color: var(--md-brand);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: var(--md-radius);
  background: var(--md-brand);
  color: var(--md-white);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.site-header__cta:hover {
  background: var(--md-brand-deep);
}

.site-header__mobile {
  position: static;
}

.site-header__menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: var(--md-white);
  color: var(--md-ink);
  cursor: pointer;
  list-style: none;
}

.site-header__menu-toggle::-webkit-details-marker {
  display: none;
}

.site-header__menu-toggle::marker {
  content: "";
}

.site-header__menu-icon {
  width: 22px;
  height: 22px;
}

.site-header__menu-icon--close {
  display: none;
}

.site-header__mobile[open] .site-header__menu-icon--open {
  display: none;
}

.site-header__mobile[open] .site-header__menu-icon--close {
  display: block;
}

.site-header__mobile-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--md-white);
  border-top: 1px solid var(--md-border);
  border-bottom: 1px solid var(--md-border);
  box-shadow: var(--md-shadow);
}

.site-header__mobile-panel .site-header__nav-link,
.site-header__mobile-panel .site-header__cta {
  width: 100%;
  justify-content: flex-start;
  min-height: 46px;
  font-size: 15px;
}

.site-header__mobile-panel .site-header__cta {
  justify-content: center;
  margin-top: 8px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--md-header) + 34px) 0 56px;
  background:
    linear-gradient(180deg, #eef5ff 0%, rgba(250, 251, 254, 0) 68%),
    var(--md-paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(90deg, rgba(223, 247, 234, 0.7), rgba(246, 183, 60, 0.16), rgba(232, 238, 251, 0.55));
  opacity: 0.78;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--md-container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

.hero__title {
  margin: 0 0 18px;
  color: var(--md-ink);
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__sub {
  max-width: 58ch;
  margin: 0 0 22px;
  color: var(--md-ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero__promise {
  max-width: 58ch;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 26px;
  padding: 15px;
  border: 1px solid #cdebdc;
  border-left: 4px solid var(--md-green);
  border-radius: var(--md-radius);
  background: var(--md-green-soft);
}

.hero__promise-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--md-white);
  color: var(--md-green);
}

.hero__promise-icon svg {
  width: 19px;
  height: 19px;
}

.hero__promise p {
  margin: 0;
  color: #0d4f3a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 290px;
  color: var(--md-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--md-green);
}

.hero__visual {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 360px;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--md-radius);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--md-shadow);
}

.health-card {
  position: absolute;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--md-radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.health-card--main {
  right: 18px;
  bottom: 18px;
  width: min(86%, 360px);
  padding: 16px;
}

.health-card--qr {
  left: -8px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.health-card--qr strong,
.health-card--qr span {
  display: block;
}

.health-card--qr strong {
  color: var(--md-ink);
  font-size: 14px;
  line-height: 1.2;
}

.health-card--qr span {
  color: var(--md-muted);
  font-size: 12px;
  font-weight: 700;
}

.health-card__top,
.health-card__patient,
.health-card__grid {
  display: flex;
  align-items: center;
}

.health-card__top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.health-card__brand {
  color: var(--md-brand);
  font-size: 12px;
  font-weight: 900;
}

.health-card__status {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--md-green-soft);
  color: var(--md-green);
  font-size: 11px;
  font-weight: 900;
}

.health-card__patient {
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--md-border);
}

.health-card__avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--md-brand);
  color: var(--md-white);
  font-size: 13px;
  font-weight: 900;
}

.health-card__name,
.health-card__meta {
  margin: 0;
}

.health-card__name {
  color: var(--md-ink);
  font-size: 15px;
  font-weight: 900;
}

.health-card__meta {
  color: var(--md-muted);
  font-size: 12px;
  font-weight: 700;
}

.health-card__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 14px;
}

.health-card__grid span,
.health-card__grid strong {
  font-size: 12px;
}

.health-card__grid span {
  color: var(--md-muted);
  font-weight: 700;
}

.health-card__grid strong {
  color: var(--md-ink);
  font-weight: 900;
}

.qr-mark {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 6px;
  background: var(--md-brand);
}

.qr-mark i {
  border-radius: 2px;
  background: var(--md-white);
}

.qr-mark i:nth-child(4) {
  background: var(--md-amber);
}

/* Steps */

.steps {
  padding: 62px 0;
  background: var(--md-white);
  border-top: 1px solid var(--md-border);
}

.steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: var(--md-paper);
}

.step-card__number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #cbd5e1;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.step-card__icon,
.feature-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: var(--md-radius);
  background: var(--md-brand-soft);
  color: var(--md-brand);
}

.step-card__icon svg,
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  color: var(--md-ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}

.step-card p,
.feature-card p {
  margin: 0;
  color: var(--md-muted);
  font-size: 14.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Features */

.features {
  padding: 68px 0;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: var(--md-white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.feature-card:nth-child(2) .feature-card__icon,
.feature-card:nth-child(6) .feature-card__icon {
  background: var(--md-green-soft);
  color: var(--md-green);
}

.feature-card:nth-child(5) .feature-card__icon {
  background: #fff4d8;
  color: #9a5b00;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--md-paper);
  color: var(--md-ink-soft);
  font-size: 12px;
  font-weight: 900;
}

/* Security */

.security {
  padding: 70px 0;
  background: var(--md-brand-deep);
  color: var(--md-white);
}

.security .eyebrow {
  color: #bfdbfe;
}

.security__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.security__copy h2,
.security__copy p {
  color: var(--md-white);
}

.security__copy p {
  max-width: 54ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.security__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--md-radius);
  background: rgba(255, 255, 255, 0.06);
}

.security__marker {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--md-amber);
  box-shadow: 0 0 0 5px rgba(246, 183, 60, 0.16);
}

.security__list h3,
.security__list p {
  margin: 0;
}

.security__list h3 {
  color: var(--md-white);
  font-size: 16px;
  font-weight: 900;
}

.security__list p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

/* Signup */

.signup {
  padding: 68px 0;
  background: var(--md-paper);
  border-top: 1px solid var(--md-border);
}

.signup__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.signup__panel {
  padding: 24px;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: var(--md-white);
  box-shadow: var(--md-shadow);
}

.signup__checks {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: signup-step;
}

.signup__checks li {
  position: relative;
  min-height: 38px;
  padding-left: 48px;
  color: var(--md-ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.signup__checks li::before {
  counter-increment: signup-step;
  content: counter(signup-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--md-brand-soft);
  color: var(--md-brand);
  font-size: 13px;
  font-weight: 900;
}

.signup__button {
  width: 100%;
}

.signup__microcopy {
  margin: 12px 0 0;
  color: var(--md-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* Team */

.team {
  padding: 68px 0;
  background: var(--md-white);
  border-top: 1px solid var(--md-border);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: var(--md-paper);
}

.team__photo {
  position: relative;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--md-brand-soft);
  color: var(--md-brand);
  font-size: 25px;
  font-weight: 900;
}

.team__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.team__photo-fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team__body h3,
.team__body p {
  margin: 0;
}

.team__body h3 {
  color: var(--md-ink);
  font-size: 19px;
  font-weight: 900;
}

.team__role {
  margin-top: 2px;
  color: var(--md-brand);
  font-size: 13px;
  font-weight: 900;
}

.team__body p:last-child {
  margin-top: 8px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer */

.site-footer {
  padding: 48px 0 28px;
  background: #081832;
  color: #e5ecfb;
}

.site-footer__inner {
  width: min(100% - 40px, var(--md-container));
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand {
  max-width: 340px;
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.site-footer__logo img {
  width: auto;
  height: 34px;
}

.site-footer__brand p {
  margin: 0;
  color: rgba(229, 236, 251, 0.74);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__col h3 {
  margin: 0 0 12px;
  color: #b9c9f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col a,
.site-footer__col span {
  color: rgba(229, 236, 251, 0.84);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--md-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  color: rgba(229, 236, 251, 0.62);
  font-size: 12.5px;
  font-weight: 700;
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 680px) {
  .features__grid,
  .steps__grid,
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 880px) {
  :root {
    --md-header: 84px;
  }

  .site-header__nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-header__mobile {
    display: none;
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 54px;
  }

  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .security__inner {
    grid-template-columns: 0.82fr 1fr;
    gap: 54px;
  }

  .security__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup__inner {
    grid-template-columns: 1fr minmax(340px, 420px);
    gap: 48px;
  }
}

@media (min-width: 1120px) {
  .health-card--qr {
    left: -24px;
  }
}

@media (max-width: 520px) {
  .section-inner,
  .hero__inner,
  .site-footer__inner {
    width: min(100% - 28px, var(--md-container));
  }

  .site-header__inner {
    width: min(100% - 24px, var(--md-container));
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: calc(var(--md-header) + 22px);
  }

  .hero__visual {
    min-height: 330px;
  }

  .health-card--main {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .health-card--qr {
    top: 12px;
    left: 10px;
  }

  .hero__trust {
    display: grid;
    gap: 10px;
  }

  .hero__trust li {
    max-width: none;
  }

  .team__card {
    align-items: flex-start;
  }

  .team__photo {
    width: 72px;
    height: 72px;
    font-size: 21px;
  }
}

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