:root {
  --navy: #091f5b;
  --navy-2: #0b2b75;
  --red: #ef2b2d;
  --orange: #ff6a00;
  --orange-2: #ff8b11;
  --gold: #f3bf2a;
  --gold-soft: #ffd766;
  --ink: #16213d;
  --muted: #5e6780;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --line: #e5e8f2;
  --dark: #071432;
  --shadow: 0 22px 60px rgba(10, 19, 54, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: rgba(229, 232, 242, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(10, 19, 54, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrapper {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-wordmark {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 106, 0, 0.08), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(9, 31, 91, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfbfe 0%, #ffffff 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(9, 31, 91, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 31, 91, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
}

.hero-glow-one {
  top: 12%;
  right: -110px;
  width: 420px;
  height: 420px;
  background: rgba(255, 106, 0, 0.08);
  filter: blur(2px);
}

.hero-glow-two {
  bottom: -120px;
  left: -110px;
  width: 340px;
  height: 340px;
  background: rgba(9, 31, 91, 0.08);
  filter: blur(2px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 230px);
  align-items: center;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 76px;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--navy), var(--red), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--red), var(--orange));
  box-shadow: 0 14px 28px rgba(239, 43, 45, 0.18);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.hero-stats {
  display: flex;
  margin-top: 50px;
  gap: 42px;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
}

.hero-brand-card {
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(229, 232, 242, 0.95);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,253,0.98));
  box-shadow: var(--shadow);
}

.hero-brand-top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mini-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(239, 43, 45, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-pill-secondary {
  color: var(--navy);
  background: rgba(9, 31, 91, 0.08);
}

.hero-brand-center {
  display: grid;
  justify-items: center;
  padding: 14px 0 8px;
}

.hero-brand-symbol {
  width: min(100%, 310px);
  margin: 8px auto 8px;
}

.hero-brand-wordmark {
  width: min(100%, 340px);
}

.brand-message {
  padding: 18px 10px 10px;
  text-align: center;
}

.brand-message h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.55rem;
}

.brand-message p {
  max-width: 480px;
  margin: 0 auto;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 12px;
  gap: 12px;
}

.feature-badges span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid rgba(229, 232, 242, 0.95);
  border-radius: 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(10, 19, 54, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  gap: 9px;
}

.floating-badge span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.badge-code {
  top: -22px;
  right: 24px;
}

.badge-security {
  bottom: 30px;
  left: -42px;
}

.about {
  background: var(--surface);
}

.section-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.section-intro h2 {
  max-width: 540px;
}

.about-copy {
  padding-top: 35px;
}

.about-copy p {
  margin-bottom: 20px;
  font-size: 1.08rem;
}

.products {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 50px;
}

.section-heading > div {
  max-width: 680px;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  border-color: rgba(239, 43, 45, 0.28);
  box-shadow: 0 22px 50px rgba(10, 19, 54, 0.1);
  transform: translateY(-7px);
}

.product-card.featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 102, 0.25), transparent 35%),
    linear-gradient(145deg, #091f5b, #102c72 45%, #e2282a 100%);
}

.product-card.featured p {
  color: rgba(255,255,255,0.82);
}

.product-card.featured .product-category,
.product-card.featured a {
  color: var(--gold-soft);
}

.product-number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(9, 31, 91, 0.08);
  font-size: 3.5rem;
  font-weight: 900;
}

.product-card.featured .product-number {
  color: rgba(255, 255, 255, 0.1);
}

.product-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 58px;
  place-items: center;
  border-radius: 18px;
  font-size: 1.8rem;
  font-weight: 900;
}

.clinic-icon {
  color: var(--red);
  background: rgba(239, 43, 45, 0.10);
}

.cases-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--red), var(--orange));
}

.gestor-icon {
  color: var(--navy);
  background: rgba(9, 31, 91, 0.10);
}

.product-category {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.product-card h3 {
  margin: 12px 0 16px;
  font-size: 1.65rem;
}

.product-card p {
  margin-bottom: 30px;
}

.product-card a {
  position: absolute;
  right: 34px;
  bottom: 32px;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 850;
}

.product-card a span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.product-card:hover a span {
  transform: translateX(5px);
}

.benefits {
  color: #fff;
  background: linear-gradient(145deg, #071432, #091f5b 58%, #0f2c73 100%);
}

.benefits-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 90px;
}

.benefits-panel {
  position: sticky;
  top: 130px;
}

.benefits-panel .eyebrow {
  color: var(--gold-soft);
}

.benefits-panel h2 {
  margin-bottom: 24px;
}

.benefits-panel p {
  max-width: 530px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.74);
}

.benefits-list {
  display: grid;
}

.benefit-item {
  display: grid;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  grid-template-columns: 70px 1fr;
  gap: 16px;
}

.benefit-item:first-child {
  padding-top: 4px;
}

.benefit-item > span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.benefit-item h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.benefit-item p {
  margin-bottom: 0;
  color: rgba(255,255,255,0.68);
}

.contact {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 106, 0, 0.07), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(9, 31, 91, 0.08), transparent 28%);
}

.contact-card {
  display: grid;
  overflow: hidden;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfbfe;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 43, 45, 0.10);
}

.contact-form .button {
  justify-self: start;
}

.form-status {
  min-height: 24px;
  margin: -3px 0 0;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 750;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.footer-brand .brand-symbol {
  width: 42px;
  height: 42px;
}

.footer-brand .brand-wordmark {
  width: 165px;
}

.footer-content p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .hero-grid,
  .section-grid,
  .benefits-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-grid {
    gap: 90px;
  }

  .section-heading {
    display: grid;
    align-items: start;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card:last-child {
    grid-column: 1 / -1;
  }

  .benefits-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 82px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    left: 20px;
    display: grid;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 8px 2px;
  }

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .floating-badge {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card:last-child {
    grid-column: auto;
  }

  .contact-card {
    padding: 34px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-wrapper {
    min-height: 74px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
  }

  .brand-wordmark {
    width: 145px;
  }

  .main-nav {
    top: 72px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    padding: 22px 16px;
  }

  .hero-brand-symbol {
    width: 220px;
  }

  .hero-brand-wordmark {
    width: 240px;
  }

  .brand-message h3 {
    font-size: 1.3rem;
  }

  .product-card {
    min-height: 430px;
    padding: 28px;
  }

  .product-card a {
    right: 28px;
    left: 28px;
  }

  .benefit-item {
    grid-template-columns: 48px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
