/* ============================================================
   BACALAR BARIATRICS — Hoja de estilos principal
   Sitio estático · Mobile first · Sin frameworks
   ------------------------------------------------------------
   ÍNDICE
   1. Variables y reset
   2. Tipografía y utilidades base
   3. Botones
   4. Header / Navegación
   5. Botón flotante WhatsApp
   6. Hero
   7. Secciones genéricas / contenedores
   8. Tarjetas de beneficios
   9. Tarjetas de procedimientos
   10. Calculadora IMC
   11. Timeline del proceso
   12. Testimonios
   13. Turismo médico
   14. CTA final
   15. Páginas de procedimiento (detalle)
   16. FAQ (acordeón)
   17. Formulario "Soy candidato"
   18. Footer
   19. Animaciones (reveal on scroll)
   20. Responsive (tablet / desktop)
   ============================================================ */

/* ====== 1. VARIABLES Y RESET ====== */
:root {
  --navy: #0b3c5d;
  --navy-dark: #082a41;
  --medical: #328cc1;
  --medical-light: #5ba8d8;
  --white: #ffffff;
  --light: #f5f7fa;
  --success: #4caf50;

  --text: #0b1b26;
  --text-soft: #4a5b66;
  --border: #e2e8f0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 60, 93, 0.06);
  --shadow: 0 10px 30px rgba(11, 60, 93, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 60, 93, 0.16);

  --maxw: 1180px;
  --header-h: 76px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ====== 2. TIPOGRAFÍA Y UTILIDADES BASE ====== */
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
  color: var(--text-soft);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--light {
  background: var(--light);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

/* --- Curvas orgánicas entre secciones (inspirado en la laguna de Bacalar) ---
   Las secciones de color "flotan" con esquinas asimétricas y se solapan
   ligeramente con las contiguas para crear un flujo curvo, no cuadriculado. */
.section--light,
.section--navy {
  position: relative;
  z-index: 1;
  border-radius: 34px 22px 40px 24px;
}
.section--navy {
  border-radius: 22px 40px 24px 40px;
}
@media (min-width: 600px) {
  .section--light {
    border-radius: 70px 36px 80px 40px;
    margin-top: -28px;
    padding-top: calc(64px + 28px);
  }
  .section--navy {
    border-radius: 40px 80px 36px 70px;
    margin-top: -28px;
    padding-top: calc(64px + 28px);
  }
}

/* Hero y page-hero: borde inferior curvo y asimétrico */
.hero {
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 80px;
}
@media (min-width: 600px) {
  .hero {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 120px;
  }
}
.page-hero {
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 32px;
}
@media (min-width: 600px) {
  .page-hero {
    border-bottom-left-radius: 110px;
    border-bottom-right-radius: 44px;
  }
}

/* Footer: borde superior curvo asimétrico */
.footer {
  border-top-left-radius: 40px;
  border-top-right-radius: 80px;
}
@media (min-width: 600px) {
  .footer {
    border-top-left-radius: 60px;
    border-top-right-radius: 120px;
  }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--medical);
  margin-bottom: 12px;
}

.section--navy .eyebrow {
  color: var(--medical-light);
}

.section-head h2 {
  margin-bottom: 14px;
}

.section--navy .section-head h2 {
  color: var(--white);
}

.section-head p {
  font-size: 1.05rem;
}

.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

/* ====== 3. BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

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

.btn--primary {
  background: var(--medical);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(50, 140, 193, 0.35);
}
.btn--primary:hover {
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(11, 60, 93, 0.4);
}

.btn--success {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.35);
}
.btn--success:hover {
  background: #3d9140;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  background: var(--light);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ====== 4. HEADER / NAVEGACIÓN ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--navy);
}

.brand__logo {
  height: 44px;
  width: auto;
  display: block;
}
@media (min-width: 600px) {
  .brand__logo {
    height: 50px;
  }
}
.brand__logo--footer {
  height: 52px;
  /* el logo es turquesa sobre fondo transparente: se ve bien sobre el azul oscuro */
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--medical), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__text strong {
  font-size: 1.05rem;
}
.brand__text span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--medical);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--medical);
  background: var(--light);
}

.header__cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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);
}

/* Menú móvil desplegable */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav ul {
  padding: 14px 20px 22px;
}
.mobile-nav a {
  display: block;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

/* ====== 5. BOTÓN FLOTANTE WHATSAPP ====== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pop 0.4s ease 1s both;
}
.wa-float:hover {
  transform: scale(1.05);
}
.wa-float svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}
.wa-float__label {
  display: none;
}

@keyframes wa-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== 6. HERO ====== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 80% 20%,
      rgba(50, 140, 193, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 10% 90%, rgba(50, 140, 193, 0.2), transparent 40%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 38px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}
.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--medical-light);
  display: block;
}

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.hero__trust .item {
  display: flex;
  flex-direction: column;
}
.hero__trust .item strong {
  font-size: 1.7rem;
  color: #fff;
  font-weight: 800;
}
.hero__trust .item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__media {
  position: relative;
}
.hero__media .photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--medical), var(--navy));
  display: grid;
  place-items: center;
}
.hero__media .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media .photo .placeholder {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 24px;
  font-weight: 600;
}

.hero__floating-card {
  position: absolute;
  bottom: -22px;
  left: -10px;
  background: #fff;
  color: var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}
.hero__floating-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hero__floating-card strong {
  display: block;
  font-size: 0.95rem;
}
.hero__floating-card span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ====== 7. SECCIONES GENÉRICAS ====== */
.grid {
  display: grid;
  gap: 24px;
}

/* ====== 8. TARJETAS DE BENEFICIOS ====== */
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.benefit-card .ic {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--medical), var(--navy));
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.95rem;
}

/* ====== 9. TARJETAS DE PROCEDIMIENTOS ====== */
.proc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.proc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.proc-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--medical), var(--navy));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}
.proc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proc-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proc-card__body h3 {
  margin-bottom: 10px;
}
.proc-card__body p {
  font-size: 0.96rem;
  margin-bottom: 18px;
}
.proc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.proc-card__meta span {
  background: var(--light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.proc-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ====== 10. CALCULADORA IMC ====== */
.imc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 760px;
  margin: 0 auto;
}
.imc__grid {
  display: grid;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--medical);
  box-shadow: 0 0 0 3px rgba(50, 140, 193, 0.15);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.imc__result {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--light);
  text-align: center;
  display: none;
}
.imc__result.is-visible {
  display: block;
  animation: fade-up 0.4s ease both;
}
.imc__result .value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.imc__result .label {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.imc__result .desc {
  margin-top: 14px;
  font-size: 0.92rem;
}

.cat-bajo {
  background: var(--medical);
}
.cat-normal {
  background: var(--success);
}
.cat-sobrepeso {
  background: #f0a500;
}
.cat-obesidad1 {
  background: #f57c00;
}
.cat-obesidad2 {
  background: #e64a19;
}
.cat-obesidad3 {
  background: #c62828;
}

/* ====== 11. TIMELINE DEL PROCESO ====== */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--medical), rgba(50, 140, 193, 0.2));
}
.tl-step {
  position: relative;
  padding: 0 0 34px 70px;
}
.tl-step:last-child {
  padding-bottom: 0;
}
.tl-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--medical);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  z-index: 1;
}
.tl-step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.tl-step p {
  font-size: 0.95rem;
}

/* ====== 12. TESTIMONIOS ====== */
.testi {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.testi__track {
  position: relative;
  min-height: 240px;
}
.testi__slide {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 38px 34px;
  text-align: center;
}
.testi__slide.is-active {
  display: block;
  animation: fade-up 0.5s ease both;
}
.testi__stars {
  color: #ffc83d;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi__quote {
  font-size: 1.18rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 22px;
}
.testi__who strong {
  color: #fff;
  display: block;
  font-size: 1rem;
}
.testi__who span {
  color: var(--medical-light);
  font-size: 0.88rem;
}
.testi__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.testi__dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.testi__dots button.is-active {
  background: var(--medical-light);
  transform: scale(1.25);
}

/* ====== 13. TURISMO MÉDICO ====== */
.tourism {
  display: grid;
  gap: 30px;
  align-items: center;
}
.tourism__list {
  display: grid;
  gap: 18px;
}
.tourism__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tourism__item .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(50, 140, 193, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tourism__item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.tourism__item p {
  font-size: 0.94rem;
}
.tourism__visual {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--medical), var(--navy));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.tourism__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== 14. CTA FINAL ====== */
.cta-final {
  background: linear-gradient(135deg, var(--medical) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.15),
    transparent 50%
  );
}
.cta-final > * {
  position: relative;
}
.cta-final h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
}
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ====== 15. PÁGINAS DE PROCEDIMIENTO ====== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(50, 140, 193, 0.3),
    transparent 45%
  );
}
/* Variante con fotografía de fondo + superposición azul para legibilidad */
.page-hero--photo {
  background-image:
    linear-gradient(
      115deg,
      rgba(8, 42, 65, 0.94) 0%,
      rgba(11, 60, 93, 0.82) 50%,
      rgba(8, 42, 65, 0.6) 100%
    ),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
}
.page-hero__inner {
  position: relative;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.breadcrumb a:hover {
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  max-width: 760px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 26px;
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-hero__meta .chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
}
.page-hero__meta .chip strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}
.page-hero__meta .chip span {
  color: rgba(255, 255, 255, 0.7);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin: 0 0 16px;
}
.prose p {
  margin-bottom: 16px;
  font-size: 1.04rem;
}
.prose ul.checklist {
  display: grid;
  gap: 12px;
  margin: 8px 0 8px;
}
.prose ul.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-soft);
}
.prose ul.checklist li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  background: rgba(76, 175, 80, 0.12);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Tabla comparativa (bypass vs manga) */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.compare th,
.compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.compare tbody th {
  font-weight: 700;
  color: var(--navy);
  background: var(--light);
}
.compare td {
  color: var(--text-soft);
}
.compare tr:last-child td,
.compare tr:last-child th {
  border-bottom: 0;
}

/* ====== 16. FAQ (ACORDEÓN) ====== */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq__q .sign {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--medical);
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.faq__item.is-open .faq__q .sign {
  transform: rotate(45deg);
  background: var(--medical);
  color: #fff;
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__a p {
  padding: 0 22px 20px;
  font-size: 0.98rem;
}

/* ====== 17. FORMULARIO "SOY CANDIDATO" ====== */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 760px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  gap: 20px;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}
.form-note {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  margin-top: 4px;
}
.form-success.is-visible {
  display: block;
  animation: fade-up 0.4s ease both;
}
.form-success .ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.form-success h3 {
  margin-bottom: 8px;
}
.field.has-error input,
.field.has-error select {
  border-color: #e53935;
}
.field .error-msg {
  display: none;
  font-size: 0.78rem;
  color: #e53935;
}
.field.has-error .error-msg {
  display: block;
}

.info-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.info-panel h3 {
  color: #fff;
  margin-bottom: 16px;
}
.info-panel ul {
  display: grid;
  gap: 14px;
}
.info-panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.info-panel li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

/* ====== 18. FOOTER ====== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 54px 0 26px;
}
.footer__grid {
  display: grid;
  gap: 34px;
  margin-bottom: 38px;
}
.footer__brand .brand {
  color: #fff;
  margin-bottom: 14px;
}
.footer__brand .brand__text strong {
  color: #fff;
}
.footer__brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.footer__social a:hover {
  background: var(--medical);
  border-color: var(--medical);
  transform: translateY(-3px);
}
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer__col ul {
  display: grid;
  gap: 10px;
}
.footer__col a,
.footer__col li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}
.footer__col a:hover {
  color: var(--medical-light);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer__disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ====== 19. ANIMACIONES (REVEAL ON SCROLL) ====== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ====== 20. RESPONSIVE ====== */
@media (min-width: 600px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .imc__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wa-float__label {
    display: inline;
  }
}

@media (min-width: 860px) {
  .section {
    padding: 88px 0;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    padding: 80px 0 96px;
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
  }
  .tourism {
    grid-template-columns: 1fr 1fr;
  }
  .candidate-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (min-width: 940px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
}

.candidate-layout {
  display: grid;
  gap: 30px;
}
