:root {
  --header-height: 96px;
  --container-width: 1280px;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --slate-200: #e2e8f0;
  --slate-700: #334155;
  --slate-800: #1e293b;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

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

main {
  padding-top: var(--header-height);
}

body.menu-open {
  overflow: hidden;
}

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

/* =================================
   CABECERA
   ================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(203, 218, 229, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  border-bottom-color: rgba(148, 163, 184, 0.6);
  background: rgba(198, 214, 226, 0.98);
  box-shadow:
    0 10px 15px -3px rgba(51, 65, 85, 0.08),
    0 4px 6px -4px rgba(51, 65, 85, 0.06);
}

.site-header.is-white-section {
  border-bottom-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
}

body.header-white .site-header,
body.header-white .site-header.is-scrolled,
body.header-white .site-header.menu-is-open {
  border-bottom-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
  display: flex;
  width: calc(100% - 32px);
  max-width: 1500px;
  height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  width: 276px;
  height: var(--header-height);
  flex-shrink: 0;
  align-items: center;
  overflow: visible;
  transform: none;
}

.brand::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 64%;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(219, 234, 254, 0.32) 45%,
    transparent 72%
  );
  filter: blur(10px);
  transform: translate(-50%, -50%);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.brand:hover::before {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1.08);
}

.brand img {
  width: 240px;
  height: 87px;
  max-width: 100%;
  object-fit: contain;
  transform: translateY(-1px);
  transform-origin: center;
  filter:
    drop-shadow(0 3px 3px rgba(15, 23, 42, 0.18))
    drop-shadow(0 8px 12px rgba(29, 78, 216, 0.12));
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

.brand:hover img {
  transform: translateY(-3px) scale(1.025);
  filter:
    drop-shadow(0 4px 4px rgba(15, 23, 42, 0.22))
    drop-shadow(0 12px 18px rgba(29, 78, 216, 0.2));
}

.brand:focus-visible,
.main-nav a:focus-visible,
.header-cta:focus-visible,
.menu-button:focus-visible,
.mobile-nav a:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 4px;
}

.main-nav {
  display: flex;
  margin-left: auto;
  margin-right: 80px;
  align-items: center;
  gap: 40px;
  transform: translateX(-90px);
}

.main-nav a {
  position: relative;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}

.main-nav a::after {
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--blue-700);
  transition: width 300ms ease;
}

.main-nav a:hover {
  color: var(--blue-700);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Página activa en la navegación */

.main-nav a.is-active {
  color: var(--blue-700);
}

.main-nav a.is-active::after {
  width: 100%;
}

.mobile-nav a.is-active {
  color: var(--blue-700);
  background: #eff6ff;
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-700);
  border-radius: 12px;
  color: var(--blue-700);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-25px);
  transition:
    color 300ms ease,
    background-color 300ms ease;
}

.header-cta:hover {
  color: #fff;
  background: var(--blue-700);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  color: var(--slate-800);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 25px rgba(15, 23, 42, 0.08);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--container-width));
  margin-inline: auto;
  padding: 24px 0;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  display: block;
  padding: 8px;
  border-radius: 8px;
  color: var(--slate-800);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease;
}

.mobile-nav a:hover {
  color: var(--blue-700);
}

.mobile-nav .mobile-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue-700);
}

.mobile-nav .mobile-cta:hover {
  color: #fff;
  background: var(--blue-800);
}

/* =================================
   CABECERA RESPONSIVE
   ================================= */

@media (max-width: 1100px) {
  .nav-wrap {
    width: min(calc(100% - 32px), var(--container-width));
    gap: 20px;
  }

  .brand {
    width: 253px;
    transform: none;
  }

  .brand img {
    width: 220px;
    height: 81px;
  }

  .main-nav {
    margin: 0;
    gap: 24px;
    transform: none;
  }

  .header-cta {
    transform: none;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    flex-shrink: 0;
  }

  .brand {
    width: 236px;
  }

  .brand img {
    width: 205px;
    height: 76px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 82px;
  }

  .nav-wrap {
    width: calc(100% - 24px);
    height: var(--header-height);
  }

  .brand {
    width: 207px;
  }

  .brand img {
    width: 180px;
    height: 67px;
  }

  .mobile-nav-inner {
    width: calc(100% - 24px);
  }
}

@media (max-width: 380px) {
  .brand {
    width: 184px;
  }

  .brand img {
    width: 160px;
    height: 62px;
  }
}

/* =================================
   HERO
   ================================= */

.hero {
  position: relative;
  display: flex;
  min-height: 85vh;
  padding: 64px 0;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b5fa5;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -6;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, #020617 0%, #0b5fa5 50%, #0ea5e9 100%);
  background-size: 200% 200%;
  animation: hero-gradient 25s linear infinite;
}

.hero::after {
  position: absolute;
  z-index: -5;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 70%
  );
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.85) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-light {
  position: absolute;
  z-index: -4;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.33), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(56,189,248,.33), transparent 32%);
}

.hero-radial {
  position: absolute;
  z-index: -4;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 82% 12%,
    rgba(103,232,249,.18),
    transparent 30%
  );
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
}

.hero-orb-top {
  top: -190px;
  right: -190px;
  width: 620px;
  height: 620px;
  background: rgba(103,232,249,.2);
  animation: hero-orb-top 18s ease-in-out infinite;
}

.hero-orb-bottom {
  bottom: -190px;
  left: -190px;
  width: 520px;
  height: 520px;
  background: rgba(147,197,253,.15);
  animation: hero-orb-bottom 22s ease-in-out infinite;
}

.hero-shine {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255,255,255,.08) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  animation: hero-shine 12s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 48px), 1500px);
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.hero-copy {
  min-width: 0;
  animation: hero-copy-in 800ms ease both;
}

.hero h1 {
  max-width: 576px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 520px;
  margin: 0 0 32px;
  color: rgba(239,246,255,.9);
  font-size: 18px;
  line-height: 1.75;
}

.feature-row {
  display: grid;
  width: 100%;
  max-width: 672px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-feature {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 500ms ease,
    border-color 500ms ease,
    background-color 500ms ease,
    box-shadow 500ms ease;
}

.hero-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(103,232,249,.3);
  background: rgba(255,255,255,.1);
  box-shadow: 0 15px 35px rgba(2,8,23,.12);
}

.hero-feature-icon {
  display: flex;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.hero-feature-icon svg {
  width: 28px;
  height: 28px;
}

.hero-feature p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  animation: hero-media-in 1000ms 250ms ease both;
}

.hero-media-glow {
  position: absolute;
  inset: -32px;
  border-radius: 50px;
  pointer-events: none;
  background: rgba(103,232,249,.15);
  filter: blur(45px);
  animation: hero-media-glow 8s ease-in-out infinite;
}

.media-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 10;
  animation: hero-media-float 8s ease-in-out infinite;
}

.media-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  box-shadow: 0 25px 60px rgba(2,8,23,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(
    44px 0,
    100% 0,
    100% calc(100% - 44px),
    calc(100% - 44px) 100%,
    0 100%,
    0 44px
  );
}

.media-frame-inner {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border: 1px solid rgba(165,243,252,.35);
  background: rgba(2,6,23,.1);
  clip-path: polygon(
    36px 0,
    100% 0,
    100% calc(100% - 36px),
    calc(100% - 36px) 100%,
    0 100%,
    0 36px
  );
}

.media-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-image-zoom 6s ease-in-out infinite alternate;
}

.media-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.2),
    transparent 48%,
    rgba(103,232,249,.1)
  );
}

.media-line {
  position: absolute;
  width: 33.333%;
  height: 1px;
  pointer-events: none;
  background: rgba(165,243,252,.8);
}

.media-line-top {
  top: 0;
  left: 0;
}

.media-line-bottom {
  right: 0;
  bottom: 0;
}

.hero-progress {
  position: absolute;
  right: 32px;
  bottom: 24px;
  left: 32px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67e8f9, #7dd3fc, #60a5fa);
  box-shadow: 0 0 18px rgba(125,211,252,.55);
  animation: hero-progress 6s linear infinite;
}

@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hero-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes hero-orb-top {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(25px,-15px) scale(1.08); }
}

@keyframes hero-orb-bottom {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-20px,20px) scale(1.05); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-media-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-media-float {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-6px) rotate(-.5deg); }
}

@keyframes hero-media-glow {
  0%, 100% { opacity: .15; transform: scale(1); }
  50% { opacity: .28; transform: scale(1.06); }
}

@keyframes hero-image-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@keyframes hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(36px, 4.2vw, 46px);
  }

  .hero-lead {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero-grid {
    width: min(calc(100% - 32px), 760px);
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(38px, 7vw, 52px);
  }

  .hero-lead {
    max-width: 620px;
  }

  .hero-media {
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.13;
  }

  .hero-lead {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.65;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-feature {
    display: flex;
    min-height: 74px;
    padding: 14px 16px;
    align-items: center;
    gap: 14px;
  }

  .hero-feature-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .media-frame::before {
    clip-path: polygon(
      28px 0,
      100% 0,
      100% calc(100% - 28px),
      calc(100% - 28px) 100%,
      0 100%,
      0 28px
    );
  }

  .media-frame-inner {
    inset: 7px;
    clip-path: polygon(
      22px 0,
      100% 0,
      100% calc(100% - 22px),
      calc(100% - 22px) 100%,
      0 100%,
      0 22px
    );
  }

  .hero-progress {
    right: 20px;
    bottom: 16px;
    left: 20px;
  }
}

/* =================================
   TRANSICIONES DEL CARRUSEL HERO
   ================================= */

.media-frame-inner .hero-slide {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 900ms ease-in-out,
    transform 6000ms ease-in-out;
  animation: none;
  will-change: opacity, transform;
}

.media-frame-inner .hero-slide-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1.035);
}

.media-image-overlay,
.media-line,
.hero-progress {
  z-index: 3;
}

.hero-progress span {
  animation-fill-mode: forwards;
}

/* Mantener el hero en dos columnas entre 521 y 900 px */
@media (min-width: 521px) and (max-width: 900px) {
  .hero {
    padding: 34px 0 46px;
  }

  .hero-grid {
    width: calc(100% - 24px);
    max-width: none;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 20px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 5vw, 40px);
    line-height: 1.12;
  }

  .hero-lead {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.55;
  }

  .feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-feature {
    padding: 10px;
  }

  .hero-feature-icon {
    margin-bottom: 10px;
  }

  .hero-feature p {
    font-size: 12px;
  }

  .hero-media {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

/* Solo apilar en móviles estrechos */
@media (max-width: 520px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduce animaciones cuando el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-shine,
  .hero-orb-top,
  .hero-orb-bottom,
  .hero-copy,
  .hero-media,
  .hero-media-glow,
  .media-frame,
  .hero-progress span {
    animation: none;
  }

  .media-frame-inner .hero-slide {
    transition: none;
  }

  .media-frame-inner .hero-slide-active {
    transform: none;
  }
}

/* =================================
   PRODUCTOS DE LA PÁGINA DE INICIO
   ================================= */

.products-home {
  padding: 96px 0;
  background: #f8fafc;
}

.products-container {
  max-width: 1280px;
}

.products-head {
  display: flex;
  margin-bottom: 56px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.products-heading {
  width: 100%;
  max-width: 768px;
}

.products-home .eyebrow {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.products-home h2 {
  margin: 0 0 24px;
  color: #020617;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.products-intro {
  max-width: 740px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.products-all-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    gap 250ms ease,
    color 250ms ease;
}

.products-all-link:hover {
  gap: 12px;
  color: #1e40af;
}

.products-all-link svg {
  flex-shrink: 0;
}

/* Cuadrícula */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* Tarjeta */
.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  color: inherit;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition:
    transform 500ms ease,
    box-shadow 500ms ease,
    border-color 500ms ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(191, 219, 254, 0.7);
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* Imagen */
.product-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #0f172a;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(2, 6, 23, 0.82) 0%,
      rgba(2, 6, 23, 0.2) 55%,
      transparent 100%
    );
}

.product-card-title {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}

.product-card-title h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* Cuerpo */
.product-card-body {
  display: flex;
  padding: 18px;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.product-card-body p {
  min-height: 56px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

.product-card-link {
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 16px;
  font-weight: 700;
  transition:
    color 300ms ease,
    background-color 300ms ease,
    gap 300ms ease;
}

.product-card:hover .product-card-link {
  gap: 12px;
  color: #fff;
  background: #1d4ed8;
}

/* =================================
   PRODUCTOS RESPONSIVE
   ================================= */

@media (max-width: 1100px) {
    .products-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-head {
      align-items: flex-start;
      flex-direction: column;
      gap: 24px;
    }
  }

@media (max-width: 700px) {
    .products-home {
      padding: 72px 0;
    }

    .products-head {
      margin-bottom: 40px;
    }

    .products-home h2 {
      font-size: 38px;
    }

    .products-intro {
      font-size: 17px;
    }

    .products-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .product-card-image {
      height: 250px;
    }
  }

@media (max-width: 480px) {
    .products-home {
      padding: 56px 0;
    }

    .products-home h2 {
      font-size: 32px;
      line-height: 1.12;
    }

    .products-intro {
      font-size: 16px;
      line-height: 1.65;
    }

    .product-card {
      border-radius: 24px;
    }

    .product-card-image {
      height: 220px;
    }

    .product-card-body {
      padding: 24px;
    }

    .product-card-title {
      right: 20px;
      bottom: 20px;
      left: 20px;
    }

    .product-card-title h3 {
      font-size: 22px;
    }
  }

/* =================================
   CATÁLOGO DE PRODUCTOS
   ================================= */

.products-catalog-page {
  color: #0f172a;
  background: #fff;
}

.products-catalog-hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  color: #fff;
  background: #0b5fa5;
  isolation: isolate;
}

.products-catalog-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #172554 0%,
      #0b5fa5 52%,
      #0ea5e9 100%
    );
}

.products-catalog-background::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.7) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.7) 1px,
      transparent 1px
    );
  background-size: 72px 72px;
}

.products-catalog-orb {
  position: absolute;
  z-index: -2;
  top: -180px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(103, 232, 249, 0.2);
  filter: blur(70px);
}

.products-catalog-hero-container {
  position: relative;
  z-index: 2;
}

.products-catalog-eyebrow {
  margin: 0 0 22px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.products-catalog-hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.products-catalog-intro {
  max-width: 860px;
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.75;
}

.products-catalog-section {
  padding: 96px 0;
  background: #f8fafc;
}

.products-catalog-container {
  max-width: 1280px;
}

.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.products-catalog-grid .product-card-title h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1000px) {
  .products-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .products-catalog-hero {
    padding: 64px 0;
  }

  .products-catalog-hero h1 {
    font-size: 40px;
  }

  .products-catalog-intro {
    font-size: 17px;
  }

  .products-catalog-section {
    padding: 72px 0;
  }

  .products-catalog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .products-catalog-hero {
    padding: 54px 0;
  }

  .products-catalog-hero h1 {
    font-size: 34px;
  }

  .products-catalog-intro {
    font-size: 16px;
    line-height: 1.65;
  }

  .products-catalog-section {
    padding: 56px 0;
  }
}

/* =================================
   PÁGINAS DE FAMILIA DE PRODUCTO
   ================================= */

.product-page {
  color: #0f172a;
  background: #fff;
}

/* Hero */
.product-hero {
  position: relative;
  min-height: 380px;
  padding: 80px 0 40px;
  overflow: hidden;
  color: #fff;
  background: #0b5fa5;
  isolation: isolate;
}

.product-hero-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #172554 0%,
      #0b5fa5 52%,
      #0ea5e9 100%
    );
}

.product-hero-background::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px
    );
  background-size: 72px 72px;
}

.product-hero-orb {
  position: absolute;
  z-index: -2;
  top: -160px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.2);
  filter: blur(70px);
}

.product-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 1280px;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.product-hero-copy {
  padding-top: 4px;
}

.product-eyebrow {
  margin: 0 0 24px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.product-hero h1 {
  max-width: 600px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.product-hero-subtitle {
  max-width: 580px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.product-hero-media {
  position: relative;
  width: 100%;
  margin-top: 32px;
}

.product-hero-glow {
  position: absolute;
  inset: -24px;
  border-radius: 32px;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(38px);
}

.product-hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 340px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(2, 8, 23, 0.3);
}

/* Características */
.product-features-section {
  padding: 80px 0;
  background: #f8fafc;
}

.product-feature-grid {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-feature-card {
  padding: 24px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.product-feature-icon {
  margin-bottom: 20px;
  color: #1d4ed8;
}

.product-feature-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.product-feature-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

/* Visión general */
.product-overview-section {
  padding: 96px 0;
  background: #fff;
}

.product-overview-grid {
  display: grid;
  max-width: 1280px;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.product-section-eyebrow {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.product-overview-copy h2 {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-overview-text {
  margin: 0 0 32px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.product-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.product-benefit span {
  display: flex;
  margin-top: 2px;
  flex-shrink: 0;
  color: #1d4ed8;
}

.product-benefit p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

/* Panel oscuro */
.product-specialist-panel {
  padding: 40px;
  border-radius: 32px;
  color: #fff;
  background: #020617;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.24);
}

.product-specialist-panel h3 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.2;
}

.product-specialist-panel > p {
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}

.product-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-stat {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.product-stat strong {
  display: block;
  color: #93c5fd;
  font-size: 30px;
}

.product-stat span {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 14px;
}

/* =================================
   DOCUMENTOS DE PRODUCTO
   ================================= */

.product-documents-section {
  padding: 96px 0;
  background: #f8fafc;
}

.product-documents-container {
  max-width: 1280px;
}

.product-documents-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.product-documents-heading h2 {
  margin: 0 0 20px;
  color: #0f172a;
  font-size: clamp(36px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-documents-heading > p:last-child {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.product-document-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.product-document-group {
  min-width: 0;
}

.product-document-group-heading {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #cbd5e1;
}

.product-document-group-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.product-document-group-heading span {
  flex-shrink: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.product-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-document-card {
  display: grid;
  min-width: 0;
  padding: 26px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.06);
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.product-document-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.1);
}

.product-document-icon {
  display: flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #1d4ed8;
  background: #eff6ff;
}

.product-document-content {
  min-width: 0;
}

.product-document-content h4 {
  margin: 0 0 7px;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.product-document-content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.product-document-download {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 250ms ease,
    background-color 250ms ease;
}

.product-document-download:hover {
  color: #fff;
  background: #1d4ed8;
}

.product-document-download:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .product-documents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-document-groups {
    gap: 42px;
  }

  .product-document-group-heading {
    margin-bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-document-group-heading h3 {
    font-size: 23px;
  }

  .product-documents-section {
    padding: 64px 0;
  }

  .product-documents-heading {
    margin-bottom: 36px;
  }

  .product-documents-heading h2 {
    font-size: 34px;
  }

  .product-documents-heading > p:last-child {
    font-size: 16px;
  }

  .product-document-card {
    padding: 22px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .product-document-download {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Contacto */
.product-contact-section {
  padding: 96px 0;
  background: #f8fafc;
}

.product-contact-card {
  display: grid;
  padding: 56px;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 48px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.product-contact-card h2 {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(34px, 3.5vw, 40px);
  line-height: 1.15;
}

.product-contact-card > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.product-contact-action {
  display: flex;
  justify-content: flex-end;
}

.product-contact-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  color: #fff;
  background: #1d4ed8;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(29, 78, 216, 0.25);
  transition:
    transform 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.product-contact-button:hover {
  transform: translateY(-2px);
  background: #1e40af;
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.32);
}

/* Página no encontrada */
.product-not-found {
  min-height: 60vh;
  padding: 100px 0;
}

/* =================================
   PRODUCTO RESPONSIVE
   ================================= */

@media (max-width: 1000px) {
  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-overview-grid {
    gap: 40px;
  }
}

@media (max-width: 800px) {
  .product-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .product-hero-grid,
  .product-overview-grid,
  .product-contact-card {
    grid-template-columns: 1fr;
  }

  .product-hero-media {
    margin-top: 0;
  }

  .product-contact-action {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .product-hero h1 {
    font-size: 38px;
  }

  .product-hero-media img {
    height: 260px;
    border-radius: 24px;
  }

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

  .product-features-section,
  .product-overview-section,
  .product-contact-section {
    padding: 64px 0;
  }

  .product-specialist-panel {
    padding: 28px;
    border-radius: 24px;
  }

  .product-contact-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

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


/* =================================
   CATÁLOGO DE SOLUCIONES
   ================================= */

.product-catalog-section {
  padding: 96px 0;
  background: #fff;
}

.product-catalog-container {
  max-width: 1080px;
}

.product-catalog-group + .product-catalog-group {
  margin-top: 80px;
}

.product-catalog-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.product-catalog-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.product-catalog-grid--one {
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr);
}

.product-catalog-grid--one .product-solution-media {
  height: 300px;
  padding: 0;
}

.product-catalog-grid--one .product-solution-media img {
  object-fit: cover;
}

.product-catalog-grid--one .product-solution-content {
  padding: 24px 26px 26px;
}

.product-catalog-grid--one .product-solution-content h3 {
  font-size: 26px;
}

.product-catalog-grid--one .product-solution-description {
  font-size: 15px;
}

.product-catalog-grid--one .product-solution-features li {
  font-size: 14px;
}


.product-catalog-grid--compact {
  max-width: 532px;
  margin-inline: auto;
}

.product-catalog-grid--compact .product-solution-media {
  height: 210px;
}

.product-catalog-grid--compact .product-solution-content {
  padding: 18px 20px 20px;
}

.product-catalog-grid--compact .product-solution-content h3 {
  font-size: 22px;
}

.product-catalog-grid--compact .product-solution-description {
  font-size: 14px;
}

.product-catalog-grid--compact .product-solution-features li {
  font-size: 13px;
}

.product-solution-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.product-solution-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.product-solution-media {
  display: flex;
  height: 118px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.product-solution-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-solution-content {
  display: flex;
  padding: 16px 18px;
  flex: 1;
  flex-direction: column;
}

.product-solution-content h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.2;
}

.product-solution-description {
  margin: 0 0 16px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.product-solution-features {
  display: flex;
  margin: 0 0 18px;
  padding: 14px 0 0;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  list-style: none;
}

.product-solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.4;
}

.product-solution-features span {
  display: flex;
  margin-top: 1px;
  flex: 0 0 auto;
  color: #1d4ed8;
}

.product-solution-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 9px;
  color: #fff;
  background: #0b1b55;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms ease, background-color 220ms ease;
}

.product-solution-button:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}

.product-solution-button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .product-catalog-container {
    max-width: 760px;
  }

  .product-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .product-catalog-section {
    padding: 64px 0;
  }

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

  .product-catalog-container {
    max-width: 440px;
  }

  .product-solution-media {
    height: 160px;
  }

  .product-catalog-grid--one .product-solution-media {
    height: 220px;
  }

  .product-solution-content {
    padding: 20px;
  }
}

/* =================================
   SOBRE BIOSPINE
   ================================= */

.about-section {
  padding: 96px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  max-width: 1280px;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.about-media {
  position: relative;
  min-width: 0;
}

.about-media-glow {
  position: absolute;
  inset: -24px;
  border-radius: 32px;
  background: #dbeafe;
  filter: blur(32px);
  opacity: 0.85;
}

.about-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 9 / 7;
  border-radius: 32px;
  object-fit: cover;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.about-content {
  min-width: 0;
}

.about-eyebrow {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.about-content h2 {
  max-width: 650px;
  margin: 0 0 24px;
  color: #020617;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.about-intro {
  max-width: 650px;
  margin: 0 0 32px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.about-benefits {
  display: flex;
  margin-bottom: 40px;
  flex-direction: column;
  gap: 16px;
}

.about-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-benefit span {
  display: flex;
  margin-top: 2px;
  flex-shrink: 0;
  color: #1d4ed8;
}

.about-benefit p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-stat {
  padding: 20px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.about-stat strong {
  display: block;
  color: #1d4ed8;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.about-stat span {
  display: block;
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
}

/* =================================
   SOBRE BIOSPINE RESPONSIVE
   ================================= */

@media (max-width: 900px) {
  .about-section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-media {
    max-width: 760px;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding: 64px 0;
  }

  .about-grid {
    gap: 40px;
  }

  .about-content h2 {
    font-size: 36px;
    line-height: 1.1;
  }

  .about-intro {
    font-size: 16px;
    line-height: 1.65;
  }

  .about-media img {
    border-radius: 24px;
  }

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

/* =================================
   AJUSTE DE TAMAÑOS — SOBRE BIOSPINE
   ================================= */

.about-section {
  padding: 96px 0;
}

.about-section .about-grid {
  width: min(calc(100% - 48px), 1120px);
  max-width: 1120px;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 48px;
}

.about-media {
  width: 100%;
  max-width: 500px;
}

.about-media img {
  width: 100%;
  height: 340px;
  aspect-ratio: auto;
  border-radius: 28px;
  object-fit: cover;
}

.about-media-glow {
  inset: -18px;
  border-radius: 28px;
}

.about-content h2 {
  max-width: 500px;
  margin-bottom: 22px;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.about-intro {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.65;
}

.about-benefits {
  margin-bottom: 30px;
  gap: 13px;
}

.about-benefit p {
  font-size: 14px;
  line-height: 1.55;
}

.about-benefit span {
  margin-top: 0;
}

.about-stats {
  max-width: 520px;
  gap: 12px;
}

.about-stat {
  padding: 16px 12px;
}

.about-stat strong {
  font-size: 26px;
}

.about-stat span {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .about-section .about-grid {
    width: min(calc(100% - 32px), 700px);
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-media {
    max-width: 100%;
  }

  .about-media img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .about-content h2 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .about-content h2 {
    font-size: 34px;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stat {
    padding: 14px 8px;
  }

  .about-stat strong {
    font-size: 23px;
  }
}

/* =================================
   PARTNERS TECNOLÓGICOS
   ================================= */

.partners-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  color: #fff;
  background: #020617;
  isolation: isolate;
}

.partners-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #020617 0%,
      #0f172a 55%,
      #172554 100%
    );
}

.partners-orb {
  position: absolute;
  z-index: -2;
  top: 80px;
  right: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  filter: blur(64px);
}

.partners-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
}

.partners-heading {
  max-width: 768px;
  margin: 0 auto 56px;
  text-align: center;
}

.partners-eyebrow {
  margin: 0 0 16px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.partners-heading h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.partners-heading > p:last-child {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.partners-grid {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.partner-card {
  display: flex;
  width: 100%;
  max-width: 330px;
  min-height: 390px;
  padding: 24px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.partner-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(2, 8, 23, 0.3);
}

.partner-logo {
  display: flex;
  width: 100%;
  height: 96px;
  margin-bottom: 20px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
}

.partner-logo img {
  width: auto;
  max-width: 170px;
  max-height: 56px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.partner-card:hover .partner-logo img {
  transform: scale(1.05);
}

.partner-card--noraker .partner-logo {
  background: #0b2440;
}

.partner-card--noraker .partner-logo img {
  max-height: 48px;
}

.partner-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.partner-card > p {
  margin: 0 0 20px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.65;
}

.partner-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 16px;
  font-weight: 700;
  transition:
    color 250ms ease,
    gap 250ms ease;
}

.partner-card:hover .partner-link {
  gap: 12px;
  color: #fff;
}

/* Centra las dos últimas tarjetas cuando hay cinco partners */
.partner-card:nth-child(4) {
  grid-column: 1;
}

.partner-card:nth-child(5) {
  grid-column: 2;
}

/* =================================
   PARTNERS RESPONSIVE
   ================================= */

@media (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .partners-section {
    padding: 72px 0;
  }

  .partners-heading {
    margin-bottom: 42px;
  }

  .partners-heading h2 {
    font-size: 38px;
  }

  .partners-heading > p:last-child {
    font-size: 17px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .partner-card {
    max-width: 420px;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .partners-section {
    padding: 60px 0;
  }

  .partners-heading h2 {
    font-size: 32px;
  }

  .partners-heading > p:last-child {
    font-size: 16px;
  }

  .partner-card {
    padding: 20px;
    border-radius: 20px;
  }
}

/* =================================
   PARTNERS — TARJETAS MÁS COMPACTAS
   ================================= */

.partners-grid {
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 24px;
}

.partner-card {
  max-width: 280px;
  min-height: 210px;
  padding: 16px;
  border-radius: 20px;
}

.partner-logo {
  height: 70px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
}

.partner-logo img {
  max-width: 145px;
  max-height: 42px;
}

.partner-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.partner-card > p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.partner-link {
  gap: 6px;
  font-size: 14px;
}

.partner-card:hover .partner-link {
  gap: 9px;
}

@media (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 650px) {
  .partners-grid {
    grid-template-columns: minmax(0, 280px);
  }

  .partner-card {
    width: 100%;
  }
}

/* =================================
   CALIDAD Y CERTIFICACIONES
   ================================= */

.quality-section {
  padding: 96px 0;
  background: #f8fafc;
}

.quality-grid {
  display: grid;
  width: min(calc(100% - 48px), 1280px);
  max-width: 1280px;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.quality-content {
  min-width: 0;
}

.quality-eyebrow {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.quality-content h2 {
  max-width: 560px;
  margin: 0 0 24px;
  color: #020617;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.quality-intro {
  max-width: 570px;
  margin: 0 0 32px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.quality-message {
  display: flex;
  max-width: 590px;
  padding: 24px;
  align-items: center;
  gap: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.quality-message-icon {
  display: flex;
  flex-shrink: 0;
  color: #1d4ed8;
}

.quality-message p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}

.quality-certifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.quality-cert-card {
  display: flex;
  min-height: 286px;
  padding: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 20px 35px rgba(15, 23, 42, 0.11),
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.quality-cert-card img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
}

/* =================================
   CALIDAD RESPONSIVE
   ================================= */

@media (max-width: 1000px) {
  .quality-grid {
    gap: 42px;
  }

  .quality-certifications {
    gap: 20px;
  }

  .quality-cert-card {
    min-height: 250px;
    padding: 24px;
  }

  .quality-cert-card img {
    width: 190px;
    height: 190px;
  }
}

@media (max-width: 800px) {
  .quality-section {
    padding: 80px 0;
  }

  .quality-grid {
    width: min(calc(100% - 32px), 720px);
    grid-template-columns: 1fr;
  }

  .quality-content h2 {
    max-width: 620px;
  }

  .quality-intro,
  .quality-message {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .quality-section {
    padding: 64px 0;
  }

  .quality-content h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .quality-intro {
    font-size: 16px;
    line-height: 1.65;
  }

  .quality-message {
    padding: 20px;
    align-items: flex-start;
  }

  .quality-certifications {
    grid-template-columns: 1fr;
  }

  .quality-cert-card {
    min-height: 240px;
  }
}

.quality-message-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
}

.quality-message-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}


/* =================================
   PIE DE PÁGINA
   ================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
  isolation: isolate;
}

.footer-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #020617 0%,
      #0f172a 55%,
      #172554 100%
    );
}

.footer-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.footer-orb-top {
  top: -160px;
  right: -160px;
  width: 360px;
  height: 360px;
  background: rgba(37, 99, 235, 0.2);
}

.footer-orb-bottom {
  bottom: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  background: rgba(6, 182, 212, 0.1);
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-main {
  display: grid;
  padding-bottom: 40px;
  align-items: start;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(220px, 0.8fr)
    minmax(220px, 0.8fr);
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: auto;
  height: 120px;
  margin-bottom: 24px;
  object-fit: contain;
}

.footer-brand > p {
  max-width: 570px;
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.65;
}

.footer-contact h3 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
}

.footer-contact-list {
  display: grid;
  gap: 20px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 16px;
  text-decoration: none;
  transition: color 250ms ease;
}

a.footer-contact-line:hover {
  color: #fff;
}

.footer-contact-icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  transition: background-color 250ms ease;
}

a.footer-contact-line:hover .footer-contact-icon {
  background: rgba(37, 99, 235, 0.25);
}

.footer-legal h3 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-legal-links a {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 250ms ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-legal-links a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
}

.footer-values {
  display: grid;
  padding: 32px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-value {
  padding: 0 16px;
  text-align: center;
}

.footer-value-icon {
  display: flex;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 50%;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.05);
}

.footer-value h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.footer-value p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 250ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-line:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
}

/* =================================
   PIE DE PÁGINA RESPONSIVE
   ================================= */

@media (max-width: 800px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    height: 104px;
  }

  .footer-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 650px) {
  .footer-container {
    padding-top: 40px;
  }

  .footer-contact-list,
  .footer-values {
    grid-template-columns: 1fr;
  }

  .footer-contact-line {
    align-items: center;
    flex-direction: row;
  }

  .footer-value {
    padding: 8px 0;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}

/* =================================
   PÁGINA DE CONTACTO
   ================================= */

.contact-page {
  color: #0f172a;
  background: #fff;
}

/* Hero */

.contact-hero {
  position: relative;
  min-height: 310px;
  padding: 78px 0 74px;
  overflow: hidden;
  color: #fff;
  background: #0b5fa5;
  isolation: isolate;
}

.contact-hero-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      #172554 0%,
      #0b5fa5 52%,
      #0ea5e9 100%
    );
}

.contact-hero-background::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.7) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.7) 1px,
      transparent 1px
    );
  background-size: 72px 72px;
}

.contact-hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.contact-hero-orb-top {
  top: -190px;
  right: -190px;
  width: 620px;
  height: 620px;
  background: rgba(103, 232, 249, 0.2);
}

.contact-hero-orb-bottom {
  bottom: -190px;
  left: -190px;
  width: 520px;
  height: 520px;
  background: rgba(147, 197, 253, 0.15);
}

.contact-hero-container {
  position: relative;
  z-index: 2;
}

.contact-hero-eyebrow {
  margin: 0 0 26px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.contact-hero-intro {
  max-width: 780px;
  margin: 0;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

/* Tarjetas de contacto */

.contact-cards-section {
  padding: 80px 0;
  background: #f8fafc;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.contact-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.contact-card-icon {
  display: flex;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #1d4ed8;
  background: #eff6ff;
}

.contact-card h2 {
  margin: 0 0 12px;
  color: #020617;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-card a,
.contact-card address {
  margin: 0;
  color: #475569;
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  text-decoration: none;
}

.contact-card a {
  transition: color 250ms ease;
}

.contact-card a:hover {
  color: #1d4ed8;
}

.contact-card a:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 4px;
}

/* Texto y formulario */

.contact-form-section {
  padding: 96px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.contact-copy {
  min-width: 0;
}

.contact-eyebrow {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.contact-copy h2 {
  max-width: 560px;
  margin: 0 0 24px;
  color: #020617;
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.contact-lead {
  max-width: 620px;
  margin: 0 0 38px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.contact-notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #334155;
}

.contact-note span {
  display: flex;
  flex-shrink: 0;
  color: #1d4ed8;
}

.contact-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form-card {
  padding: 32px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.contact-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 15px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-form-field label span {
  color: #dc2626;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease,
    background-color 250ms ease;
}

.contact-form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #94a3b8;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-required-note {
  margin: -2px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.contact-submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #1d4ed8;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(29, 78, 216, 0.25);
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

.contact-submit-button:hover {
  transform: translateY(-2px);
  background: #1e40af;
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.32);
}

.contact-submit-button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 4px;
}

.contact-submit-button svg {
  flex-shrink: 0;
}

/* Mapa */

.contact-map-section {
  padding: 0 0 96px;
  background: #f8fafc;
}

.contact-map-section > .container {
  padding-top: 80px;
}

.contact-map-frame {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* =================================
   CONTACTO RESPONSIVE
   ================================= */

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 650px) {
  .contact-hero {
    min-height: 0;
    padding: 60px 0;
  }

  .contact-hero-intro {
    font-size: 17px;
    line-height: 1.65;
  }

  .contact-cards-section {
    padding: 64px 0;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .contact-form-section {
    padding: 64px 0;
  }

  .contact-copy h2 {
    font-size: 36px;
    line-height: 1.1;
  }

  .contact-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .contact-form-card {
    padding: 24px;
    border-radius: 20px;
  }

  .contact-map-section {
    padding-bottom: 64px;
  }

  .contact-map-section > .container {
    padding-top: 64px;
  }

  .contact-map-frame {
    border-radius: 20px;
  }

  .contact-map-frame iframe {
    height: 320px;
  }
}

@media (max-width: 420px) {
  .contact-card {
    padding: 26px 22px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }
}

/* =================================
   PÁGINAS LEGALES
   ================================= */

.legal-page {
  color: #0f172a;
  background: #fff;
}

.legal-hero {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #172554 0%,
      #0b5fa5 52%,
      #0ea5e9 100%
    );
}

.legal-hero-container {
  position: relative;
  z-index: 2;
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-hero-intro {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.7;
}

.legal-content-section {
  padding: 80px 0 96px;
  background: #f8fafc;
}

.legal-content {
  max-width: 980px;
  padding: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.legal-content h2 {
  margin: 42px 0 18px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

.legal-content a {
  color: #1d4ed8;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

.legal-document-link {
  display: inline-flex;
  min-height: 50px;
  margin: 12px 0 32px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #fff !important;
  background: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

.legal-document-link:hover {
  transform: translateY(-2px);
  background: #1e40af;
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.3);
}

.legal-pdf-frame {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
}

.legal-pdf-frame iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

@media (max-width: 700px) {
  .legal-hero {
    padding: 56px 0;
  }

  .legal-content-section {
    padding: 56px 0 64px;
  }

  .legal-content {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 16px;
  }

  .legal-pdf-frame iframe {
    height: 560px;
  }
}

@media (max-width: 480px) {
  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-document-link {
    width: 100%;
    text-align: center;
  }

  .legal-pdf-frame iframe {
    height: 460px;
  }
}

/* =================================
   AVISO DEL FORMULARIO DE CONTACTO
   ================================= */

.contact-form-notice {
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  color: #1e3a8a;
  background: #eff6ff;
}

.contact-form-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-form-notice p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
}

.contact-form-notice a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.contact-form-notice a:hover {
  text-decoration: underline;
}

.contact-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
/* Centra la segunda fila cuando un grupo contiene cinco productos. */
@media (min-width: 981px) {
  .product-catalog-grid--five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .product-catalog-grid--five .product-solution-card {
    grid-column: span 2;
  }

  .product-catalog-grid--five .product-solution-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .product-catalog-grid--five .product-solution-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* Centra y ensancha los grupos de dos productos, como el bloque de Placas. */
@media (min-width: 981px) {
  .product-catalog-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin-inline: auto;
    gap: 24px;
  }

  .product-catalog-grid--two .product-solution-media {
    height: 150px;
  }
}




/* Ultrasónico: misma escala visual de tarjeta que Fijación Posterior. */
@media (min-width: 981px) {
  .product-ultrasonico .product-catalog-grid--two {
    max-width: 1342px;
  }

  .product-ultrasonico .product-catalog-grid--two .product-solution-media {
    height: 234px;
  }
}

/* SOCORE: tarjetas un 30% más grandes respecto al ajuste anterior. */
@media (min-width: 981px) {
  .product-fijacion-posterior .product-catalog-grid--two {
    max-width: 1342px;
  }

  .product-fijacion-posterior .product-catalog-grid--two .product-solution-media {
    height: 234px;
  }

  /* SOCORE Cervical Posterior: imagen un 50% más grande. */
  .product-fijacion-posterior .product-solution-media img[src$="socore-cervical.png"] {
    transform: scale(1.5);
    transform-origin: center center;
  }

  /* SOCORE Toraco-Lumbar Posterior: imagen un 25% más grande. */
  .product-fijacion-posterior .product-solution-media img[src$="socore-standard.png"] {
    transform: scale(1.25);
    transform-origin: center center;
  }
}

/* Aviso para documentación técnica y técnicas quirúrgicas */
.product-documents-professional-notice {
  display: inline-flex;
  max-width: 680px;
  margin: 12px 0 0;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.product-documents-professional-notice svg {
  flex: 0 0 auto;
}

.product-document-action {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.product-document-professional-note {
  max-width: 210px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

.professional-document-modal[hidden] {
  display: none;
}

.professional-document-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.professional-document-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}

.professional-document-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  padding: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.professional-document-modal__dialog h2 {
  margin: 8px 0 18px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.professional-document-modal__dialog p:not(.product-section-eyebrow) {
  margin: 0 0 14px;
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}

.professional-document-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  place-items: center;
}

.professional-document-modal__actions {
  display: flex;
  margin-top: 26px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.professional-document-modal__confirm,
.professional-document-modal__cancel {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.professional-document-modal__confirm {
  display: inline-flex;
  border: 1px solid #1d4ed8;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #1d4ed8;
}

.professional-document-modal__cancel {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
}

.professional-document-modal__close:focus-visible,
.professional-document-modal__confirm:focus-visible,
.professional-document-modal__cancel:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 3px;
}

body.professional-document-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .product-document-action {
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
  }

  .product-document-professional-note {
    max-width: none;
    text-align: center;
  }

  .professional-document-modal {
    padding: 16px;
  }

  .professional-document-modal__dialog {
    padding: 32px 24px 26px;
    border-radius: 22px;
  }

  .professional-document-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .professional-document-modal__confirm,
  .professional-document-modal__cancel {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   FORMULARIO DE CONTACTO · RGPD Y ESTADOS
   ========================================= */
.contact-form-status {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.contact-form-status strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
}

.contact-form-status p,
.contact-form-status ul {
  margin: 0;
}

.contact-form-status ul {
  padding-left: 20px;
}

.contact-form-status--success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 2px solid #86efac;
  background: #f0fdf4;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.10);
}

.contact-form-status--success .contact-form-status-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.contact-form-status--success strong {
  margin-bottom: 6px;
  font-size: 18px;
  color: #166534;
}

.contact-form-status--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.contact-form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.contact-form-sensitive-warning {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.contact-privacy-layer {
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}

.contact-privacy-layer > strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 13px;
}

.contact-privacy-layer p {
  margin: 0;
}

.contact-privacy-layer a {
  color: #1d4ed8;
  font-weight: 700;
}

.contact-privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.contact-privacy-check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: currentColor;
}

.contact-privacy-check span span {
  color: #dc2626;
}

/* Al llegar desde una ficha de producto, deja visible la cabecera del formulario bajo el header fijo. */
#formulario-contacto {
  scroll-margin-top: 110px;
}
