/* ============================================================
   Orange Ultrasound — Sistema de diseño
   ============================================================ */

:root {
  /* Paleta de marca */
  --navy: #173B5E;          /* Azul marino oscuro (primario) */
  --navy-dark: #0F2A45;     /* Variante más profunda para fondos */
  --teal: #1AA6A0;          /* Teal / turquesa (secundario) */
  --teal-light: #3FC1C0;    /* Teal claro / aqua (acento) */
  --white: #FFFFFF;
  --gray-bg: #F2F5F7;       /* Fondo secundario / tarjetas */
  --gray-text: #5A6472;     /* Texto secundario */
  --ink: #1E2A32;           /* Negro suave para texto */

  /* Tipografía */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Escala y layout */
  --container: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(23, 59, 94, 0.06);
  --shadow-md: 0 12px 32px rgba(23, 59, 94, 0.10);
  --shadow-lg: 0 20px 48px rgba(23, 59, 94, 0.14);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Splash / Pantalla de carga (logo ~1s y se desvanece)
   Funciona sólo con CSS (sin JS también se oculta).
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  display: grid;
  place-items: center;
  animation: splashOut .6s var(--ease, ease) 1s forwards;
}
.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: splashIn .6s var(--ease, ease) both;
}
.splash__mark {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #173B5E;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(23, 59, 94, 0.22);
}
.splash__mark svg { width: 54px; height: 54px; }
/* Ícono de ondas con pulso suave */
.splash__mark .wave1 { animation: splashPulse 1.4s ease-in-out infinite; transform-origin: 32px 44px; }
.splash__mark .wave2 { animation: splashPulse 1.4s ease-in-out infinite .18s; transform-origin: 32px 44px; }
.splash__text {
  display: flex; flex-direction: column; align-items: center; line-height: 1.05;
  font-family: var(--font-head, sans-serif); font-weight: 700;
}
.splash__text .top { font-size: 1.5rem; color: #173B5E; letter-spacing: .02em; }
.splash__text .bottom { font-size: 1.5rem; color: #1AA6A0; letter-spacing: .22em; }
/* Barra de carga */
.splash__bar {
  margin-top: .4rem;
  width: 140px; height: 4px; border-radius: 999px;
  background: #E4EBF0; overflow: hidden;
}
.splash__bar::after {
  content: ""; display: block; height: 100%; width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1AA6A0, #3FC1C0);
  animation: splashLoad 1s var(--ease, ease) forwards;
}
/* Imagen del logo real (cuando se agregue) */
.splash__img { max-width: 240px; height: auto; }

@keyframes splashIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes splashLoad { from { width: 8%; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; display: none; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

a { color: var(--teal); text-decoration: none; }

/* ---------- Utilidades de layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }

.section--gray { background: var(--gray-bg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .85rem;
}

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  margin-bottom: .6rem;
}

.section-lead {
  color: var(--gray-text);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 60ch;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 8px 20px rgba(26, 166, 160, 0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 166, 160, 0.36); }
.btn svg { width: 20px; height: 20px; }

.btn--navy { --btn-bg: var(--navy); box-shadow: 0 8px 20px rgba(23, 59, 94, 0.28); }
.btn--navy:hover { box-shadow: 0 12px 26px rgba(23, 59, 94, 0.36); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(23, 59, 94, 0.22);
  box-shadow: none;
}
.btn--outline:hover { background: rgba(23, 59, 94, 0.05); box-shadow: none; }

.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

/* ============================================================
   Header / Navegación
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.94); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { height: 46px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 38px; } }
.brand__mark {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: .02em;
}
.brand__text .brand__top { font-size: 1.02rem; color: var(--navy); }
.brand__text .brand__bottom { font-size: 1.02rem; color: var(--teal); letter-spacing: .16em; }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  position: relative;
  padding: .25rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--teal);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .8rem; }

/* Toggle de idioma (funcionalidad se activa en Parte 8) */
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid rgba(23, 59, 94, 0.2);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: .4rem .7rem; color: var(--gray-text);
  transition: background .2s, color .2s;
}
.lang-toggle button.is-active { background: var(--teal); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 10px;
}
.nav-toggle span {
  display: block; height: 2.5px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(5rem, 11vw, 8.5rem);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(63, 193, 192, 0.18), transparent 60%),
    linear-gradient(180deg, #f6fafb 0%, #ffffff 100%);
  overflow: hidden;
}
/* La ola se ancla al fondo del hero, pegada a la siguiente sección (sin hueco) */
.hero .wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(26, 166, 160, 0.1);
  color: var(--teal);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: .5rem 1rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero__badge svg { width: 16px; height: 16px; }

.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero__title .accent { color: var(--teal); }

.hero__subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--gray-text);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero__subtitle strong { color: var(--navy); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }

.hero__highlights {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
}
.hero__highlight {
  display: flex; align-items: center; gap: .65rem;
  font-size: .95rem; color: var(--navy); font-weight: 500;
}
.hero__highlight-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(26, 166, 160, 0.12);
  color: var(--teal);
}
.hero__highlight-icon svg { width: 22px; height: 22px; }
.hero__highlight strong { display: block; color: var(--teal); font-family: var(--font-head); font-size: 1.05rem; }
.hero__highlight small { color: var(--gray-text); font-weight: 500; }

/* Media del hero */
.hero__media { position: relative; }
.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero__float-card {
  position: absolute;
  left: -18px; bottom: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .8rem;
  max-width: 250px;
}
.hero__float-card .icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; background: rgba(26, 166, 160, 0.12);
  display: grid; place-items: center; color: var(--teal);
}
.hero__float-card .icon svg { width: 22px; height: 22px; }
.hero__float-card .t { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); line-height: 1.2; }
.hero__float-card .s { font-size: .8rem; color: var(--gray-text); }

/* Blob decorativo detrás de la imagen */
.hero__blob {
  position: absolute;
  right: -6%; top: -8%;
  width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(63,193,192,.35), rgba(26,166,160,.15) 60%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
}

/* ============================================================
   Sección: Atención para todos
   ============================================================ */
.care {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, #1f5075 100%);
  overflow: hidden;
}
.care::before {
  content: "";
  position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, rgba(26,166,160,.28), transparent 66%);
  pointer-events: none;
}
.care .eyebrow { color: var(--teal-light); }
.care .section-title { color: #fff; }
.care .section-lead { color: rgba(255,255,255,.82); }

.care__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.care__media { position: relative; }
.care__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, #3FC1C0 0%, #173B5E 100%);
}
.care__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* Acento de ola en la esquina de la imagen */
.care__media::after {
  content: "";
  position: absolute; left: -14px; bottom: -14px;
  width: 120px; height: 120px; border-radius: 24px;
  background: rgba(26, 166, 160, 0.18);
  z-index: -1;
}

.care__features { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-row {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(23, 59, 94, 0.06);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-row__icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(26, 166, 160, 0.12);
  color: var(--teal);
}
.feature-row__icon svg { width: 26px; height: 26px; }
.feature-row__body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.feature-row__body p { margin: 0; color: var(--gray-text); font-size: .98rem; }

/* ============================================================
   Sección: ¿Por qué elegirnos? (grid de tarjetas)
   ============================================================ */
.why__head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.icon-card {
  background: #fff;
  border: 1px solid rgba(23, 59, 94, 0.07);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.icon-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(26,166,160,.25); }
.icon-card:hover::before { transform: scaleX(1); }

.icon-card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(26,166,160,.14), rgba(63,193,192,.14));
  color: var(--teal);
  margin-bottom: 1.15rem;
}
.icon-card__icon svg { width: 30px; height: 30px; }
.icon-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.icon-card p { margin: 0; color: var(--gray-text); font-size: .97rem; }

/* Séptima tarjeta destacada (ancho completo) */
.icon-card--wide {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.4rem;
  background: linear-gradient(120deg, var(--navy) 0%, #1f5075 100%);
  border: none;
}
.icon-card--wide::before { display: none; }
.icon-card--wide .icon-card__icon {
  background: rgba(255,255,255,.14); color: #fff; margin: 0; flex: none;
}
.icon-card--wide h3 { color: #fff; margin: 0; }
.icon-card--wide p { color: rgba(255,255,255,.82); }
.icon-card--wide .wide-cta { margin-left: auto; flex: none; }

/* ============================================================
   Sección: Tecnología que marca la diferencia
   ============================================================ */
.tech { background: var(--gray-bg); position: relative; overflow: hidden; }
.tech__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tech__list { list-style: none; margin: 1.8rem 0 2rem; padding: 0; display: grid; gap: 1.15rem; }
.tech__list li { display: flex; gap: .9rem; align-items: flex-start; }
.tech__check {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  margin-top: 2px;
}
.tech__check svg { width: 17px; height: 17px; }
.tech__list h3 { font-size: 1.12rem; margin-bottom: .15rem; }
.tech__list p { margin: 0; color: var(--gray-text); font-size: .97rem; }

.tech__media { position: relative; }
.tech__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #173B5E 0%, #1AA6A0 100%);
}
.tech__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.tech__stat {
  position: absolute; right: -14px; top: 26px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .9rem 1.15rem; text-align: center;
}
.tech__stat b { display: block; font-family: var(--font-head); color: var(--teal); font-size: 1.5rem; line-height: 1; }
.tech__stat span { font-size: .8rem; color: var(--gray-text); }

/* ============================================================
   Sección: Estudios que ofrecemos (catálogo)
   ============================================================ */
.studies__head { max-width: 760px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }

.studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.study-card {
  background: #fff;
  border: 1px solid rgba(23, 59, 94, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.study-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.study-card__head {
  display: flex; align-items: center; gap: .85rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gray-bg);
}
.study-card__icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
}
.study-card__icon svg { width: 27px; height: 27px; }
.study-card__head h3 { margin: 0; font-size: 1.25rem; }
.study-card__head span { display: block; font-size: .8rem; color: var(--teal); font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; }

.study-list { list-style: none; margin: 0; padding: 0; }
.study-list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0;
  font-size: .98rem;
  color: var(--ink);
  border-bottom: 1px dashed rgba(23, 59, 94, 0.12);
  transition: color .2s, padding .2s;
}
.study-list li:last-child { border-bottom: none; }
.study-list li::before {
  content: "";
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 166, 160, 0.12);
  transition: transform .2s var(--ease);
}
.study-card:hover .study-list li { color: var(--navy); }
.study-card:hover .study-list li::before { transform: scale(1.15); }

.studies__note {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  flex-wrap: wrap; text-align: center;
  color: var(--gray-text); font-size: .98rem;
}
.studies__note strong { color: var(--navy); }
.studies__note svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* ============================================================
   Sección: Su salud es nuestra prioridad (banda navy)
   ============================================================ */
.priority {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, #1f5075 100%);
  color: #fff;
  overflow: hidden;
}
/* Ola decorativa sutil de fondo */
.priority::before {
  content: "";
  position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(26,166,160,.28), transparent 70%);
  pointer-events: none;
}
.priority__inner { position: relative; text-align: center; max-width: 900px; margin-inline: auto; }
.priority .eyebrow { color: var(--teal-light); }
.priority h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.priority__lead { color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 60ch; margin: 0 auto clamp(2.2rem, 5vw, 3rem); }

.priority__items {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.priority__item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.priority__item:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.priority__item-icon {
  width: 62px; height: 62px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(26,166,160,.22); color: var(--teal-light);
}
.priority__item-icon svg { width: 30px; height: 30px; }
.priority__item h3 { color: #fff; font-size: 1.2rem; margin-bottom: .3rem; }
.priority__item p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }

.priority__cta { margin-top: clamp(2rem, 4vw, 2.8rem); }

/* ============================================================
   Sección: Contacto
   ============================================================ */
.contact__head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}

/* Panel de información */
.contact__info { display: grid; gap: 1rem; }
.info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(23,59,94,.08);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-item__icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(26,166,160,.12); color: var(--teal);
}
.info-item__icon svg { width: 24px; height: 24px; }
.info-item__body { min-width: 0; }
.info-item__body h3 { font-size: 1rem; margin: 0 0 .15rem; }
.info-item__body a, .info-item__body p { margin: 0; color: var(--gray-text); font-size: .96rem; word-break: break-word; }
.info-item__body a:hover { color: var(--teal); }

.contact__socials { display: flex; gap: .7rem; margin-top: .3rem; }
.social-btn {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.social-btn:hover { transform: translateY(-3px); background: var(--teal); }
.social-btn svg { width: 22px; height: 22px; }

/* Formulario */
.contact__form-wrap {
  background: #fff;
  border: 1px solid rgba(23,59,94,.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.contact__form-wrap h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.contact__form-wrap > p { color: var(--gray-text); font-size: .95rem; margin-bottom: 1.4rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  padding: .8rem 1rem;
  border: 1.5px solid rgba(23,59,94,.16);
  border-radius: 12px;
  background: var(--gray-bg);
  transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(26,166,160,.12);
}
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.form-actions .btn { flex: 1 1 auto; justify-content: center; }
.form-note { font-size: .82rem; color: var(--gray-text); margin: .9rem 0 0; }

/* Mapa */
.contact__map {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23,59,94,.08);
  position: relative;
  min-height: 300px;
  background: var(--gray-bg);
}
.contact__map iframe { display: block; width: 100%; height: 380px; border: 0; }
.contact__map-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center; padding: 1.5rem; color: var(--gray-text);
}
.contact__map-fallback svg { width: 40px; height: 40px; color: var(--teal); }

/* ============================================================
   Botón flotante de WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(37,211,102,.5);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--gray-bg);
  color: var(--gray-text);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(23, 59, 94, 0.08);
}
.footer__closing {
  text-align: center; max-width: 760px; margin: 0 auto clamp(2.4rem, 5vw, 3.2rem);
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--navy); line-height: 1.4;
}
.footer__closing span { color: var(--teal); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: clamp(2.4rem, 5vw, 3.2rem);
  border-bottom: 1px solid rgba(23, 59, 94, 0.1);
}
.footer .brand__logo { height: 52px; }
.footer__about p { margin: 1rem 0 1.2rem; font-size: .95rem; color: var(--gray-text); max-width: 34ch; }
.footer__socials { display: flex; gap: .6rem; }
.footer__socials .social-btn { background: var(--navy); }
.footer__socials .social-btn:hover { background: var(--teal); }

.footer__col h4 { color: var(--navy); font-size: 1rem; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__col a, .footer__col li { color: var(--gray-text); font-size: .95rem; }
.footer__col a:hover { color: var(--teal); }
.footer__col .with-icon { display: flex; gap: .6rem; align-items: flex-start; }
.footer__col .with-icon svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

.footer__bottom {
  text-align: center; padding: 1.5rem 0;
  font-size: .85rem; color: var(--gray-text);
}

/* ---------- Separador de olas ---------- */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: auto; }

/* ============================================================
   Animaciones al hacer scroll (fade-in)
   Sólo se ocultan si JS está activo (.anim-ready en <html>),
   así el contenido siempre es visible sin JavaScript.
   ============================================================ */
.anim-ready [data-animate] {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
  transition-delay: var(--stagger, 0ms);
  will-change: opacity, transform;
}
.anim-ready [data-animate].is-visible {
  opacity: 1;
  transform: none;
}
/* Variantes direccionales opcionales */
.anim-ready [data-animate="left"]  { transform: translateX(-36px); }
.anim-ready [data-animate="right"] { transform: translateX(36px); }
.anim-ready [data-animate="fade"]  { transform: none; }
.anim-ready [data-animate="left"].is-visible,
.anim-ready [data-animate="right"].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero__image-wrap { aspect-ratio: 16 / 11; }
  .hero__blob { display: none; }

  .care__grid { grid-template-columns: 1fr; }
  .care__media { max-width: 520px; margin-inline: auto; width: 100%; order: -1; }
  .care__media::after { display: none; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-card--wide { flex-direction: column; text-align: center; }
  .icon-card--wide .wide-cta { margin-left: 0; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .tech__grid { grid-template-columns: 1fr; }
  .tech__media { max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .tech__image-wrap { aspect-ratio: 16 / 12; }

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

@media (max-width: 640px) {
  .studies-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .priority__items { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: .5rem 1.15rem 1.25rem;
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { border-bottom: 1px solid var(--gray-bg); }
  .nav__links a { display: block; padding: .95rem .25rem; }
  .nav__links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav__actions .btn { display: none; }
}

@media (max-width: 480px) {
  .brand__text .brand__top, .brand__text .brand__bottom { font-size: .9rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__float-card { left: 8px; right: 8px; max-width: none; }
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
