/* ================= Header ================= */
:root {
  --header-bg: #dce9f6; /* celeste del header (2ª imagen) */
  --ink: #18324a; /* texto principal */
  --accent: #e43e3e; /* subrayado rojo activo */
  --muted: #636a73; /* gris icons */
}

.site-header .top-line {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--ink);
}

.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .top-line {
  height: 4px;
  background: #0f1116; /* línea oscura arriba (como la imagen) */
}

/* Contenedor específico del header */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Marca: logo + texto SALUDYA.cl */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 180px; /* 🔹 tamaño visual ideal (ajustable) */
  height: auto; /* mantiene proporción natural */
  object-fit: contain;
}

.brand span {
  font-weight: 800;
  font-size: 26px; /* sube ligeramente para equilibrar con el logo */
  letter-spacing: 0.5px;
}

/* Menú */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 56px; /* separaciones amplias como la captura */
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--accent);
  width: 0;
  margin: 0 auto;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Íconos derecha */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon {
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.icon:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.icon.ig {
  color: #ff007a;
} /* Instagram */
.icon.mail {
  color: #2f2940;
} /* Email */
.icon.wa {
  color: #25d366;
} /* WhatsApp */
.icon.bag {
  color: #4a4a4a;
} /* Carrito */

/* ======= Mobile ======= */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #243648;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.hamburger span:nth-child(1) {
  top: 3px;
}
.hamburger span:nth-child(2) {
  top: 12px;
}
.hamburger span:nth-child(3) {
  top: 21px;
}

.nav-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 5px;
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

@media (max-width: 980px) {
  .header-container {
    grid-template-columns: auto auto auto;
    gap: 10px;
  }
  .hamburger {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* Badge contador en el ícono de carrito */
.icon.bag {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e43e3e; /* rojo/acento */
  color: #fff;
  font: 700 12px/18px "Poppins", system-ui, Arial;
  text-align: center;
  display: none; /* oculto cuando es 0 */
}


/* imagen inicio /*

/* ======== SECCIÓN SALUDYA ======== */
.section-saludya {
  background: #fff;
  padding: 80px 0;
}

.section-saludya-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-saludya-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.section-saludya-title {
  font-size: 4rem;
  font-weight: 800;
  color: #003f67;
  margin-bottom: 24px;
  line-height: 1.1;
}

.section-saludya-lead {
  font-size: 1.1rem;
  color: #174772;
  margin-bottom: 36px;
  max-width: 600px;
}

.section-saludya-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
  color: #174772;
  font-weight: 500;
}

.section-saludya-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-saludya-btn {
  display: inline-block;
  background-color: #0074b7;
  color: #fff;
  text-decoration: none;
  padding: 14px 38px;
  font-weight: 700;
  border-radius: 3px;
  transition: background 0.25s ease;
}

.section-saludya-btn:hover {
  background-color: #005c91;
}

/* Estado inicial (oculto) */
.section-saludya-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Cuando aparece */
.section-saludya-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estado inicial: oculto y desplazado */
/* 🔹 Efecto general de aparición */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Retrasos suaves para elementos en grupo */
.reveal.visible:nth-child(1) { transition-delay: 0.1s; }
.reveal.visible:nth-child(2) { transition-delay: 0.3s; }
.reveal.visible:nth-child(3) { transition-delay: 0.5s; }
.reveal.visible:nth-child(4) { transition-delay: 0.7s; }

/* 🔹 Aparición lateral (opcional para la sección del doctor) */
.about-photo.reveal {
  transform: translateX(-50px);
}
.about-content.reveal {
  transform: translateX(50px);
}
.about-photo.visible,
.about-content.visible {
  transform: translateX(0);
  opacity: 1;
}



/* Imagen */
.section-saludya-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 980px) {
  .section-saludya-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-saludya-title {
    font-size: 2.8rem;
  }

  .section-saludya-lead {
    margin: 0 auto 28px;
  }

  .section-saludya-benefits {
    justify-content: center;
  }

  .section-saludya-img {
    margin-top: 40px;
  }
}

/* Seccion beneficios /*

/* ======= SECCIÓN BENEFICIOS ======= */
.section-beneficios {
  background-color: #f4f9fa;
  padding: 80px 0;
}

.beneficios-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}


.beneficios-wrap h2 {
  text-align: center;
  font-size: 2rem; /* ajustá si querés más grande */
  font-weight: 700;
  margin-bottom: 40px;
}

/* Cada ítem */
.beneficio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #174772;
}

.beneficio-icon {
  margin-bottom: 16px;
}

.beneficio-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  color: #00b2a9;
}

.beneficio-item h3 {
  color: #003f67;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.beneficio-item p {
  color: #4a6a7b;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 260px;
}

/* Responsive */
@media (max-width: 980px) {
  .beneficios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}

@media (max-width: 600px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }
}

/* carrusel index /*

/* ====== Paleta (coincide con tu sitio) ====== */
:root {
  --teal-900: #074e57; /* fondo hero */
  --teal-800: #0a5f69;
  --ink: #ffffff; /* texto claro */
  --btn: #0d6ea8; /* botón */
  --btn-h: #0b5b8a;
  --dot: #dfe7ee;
  --dot-a: #ffffff;
}

/* ====== Layout del hero ====== */
.hero-carrusel {
  position: relative;
  background: radial-gradient(
      1200px 600px at 55% 95%,
      rgba(255, 255, 255, 0.06) 0,
      transparent 60%
    ),
    var(--teal-900);
  color: var(--ink);
  overflow: hidden;
  padding: 64px 0;
}

.hc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

/* Columna izquierda */
.hc-content h1 {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.2rem);
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}
.hc-content p {
  margin: 10px 0;
  line-height: 1.7;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}
.hc-btn {
  display: inline-block;
  margin-top: 22px;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.hc-btn:hover {
  background: var(--btn-h);
  transform: translateY(-1px);
}

/* ====== Carrusel ====== */
.hero-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #035661;
  color: white;
  padding: 60px 8%;
  gap: 40px;
  position: relative;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content span {
  color: #00b2a9;
}

.hero-content p {
  margin: 8px 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e4e4e4;
}

.btn-examenes {
  display: inline-block;
  margin-top: 20px;
  background-color: #0077c8;
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn-examenes:hover {
  background-color: #005f99;
}

/* Carrusel */
.carousel-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 480px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #00303d;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: #00b2a9;
  color: white;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-carousel {
    flex-direction: column;
    padding: 40px 5%;
  }
  .carousel-container {
    height: 340px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

/* Examen personalizado */

.mail-link {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}
.mail-link:hover {
  text-decoration: underline;
}

.info-extra {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-extra h4 {
  font-size: 1.05rem;
  color: #004080;
  margin-bottom: 8px;
}

.info-extra ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-extra li {
  margin-bottom: 6px;
}


/* Preguntas frecuentes */

/* ===== FAQ base ===== */
.faq {
  background: #f5fbfc;
  padding: 60px 0;
}
.faq-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 28px;
}

/* Títulos (botones) */
.faq-question {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e7eef3;
  border-radius: 12px;
  padding: 18px 56px 18px 64px;
  font: 700 1.45rem/1.3 "Poppins", system-ui, Arial;
  color: #072c3a;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-question:hover {
  box-shadow: 0 8px 20px rgba(3, 40, 53, 0.06);
  border-color: #dfe8ed;
}

/* ? icono a la izquierda */
.faq-icon {
  position: absolute;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #00b2a9;
  border: 2px solid #00b2a9;
  font-weight: 800;
}

/* + / – a la derecha */
.faq-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9f7f6;
  color: #007a73;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Respuestas (colapsables) */
.faq-answer {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7eef3;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 22px 0 64px;
}

/* contenido interno */
.faq-answer > p {
  margin: 18px 0 22px;
  color: #214a5a;
  line-height: 1.65;
}
.faq-answer a {
  color: #0b6bb1;
  text-decoration: underline;
}

/* Estado expandido */
.faq-question[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.faq-question[aria-expanded="true"] .faq-toggle {
  background: #00b2a9;
  color: #fff;
}

/* (opcional) 2 columnas en desktop */
/* .faq-wrap{ grid-template-columns:1fr 1fr; } 
@media (max-width: 960px){ .faq-wrap{ grid-template-columns:1fr; } } */

/* Testimonios */

/* ====== Testimonios SaludYa ====== */
:root {
  --bg-soft: #e9f6f7; /* celeste muy suave */
  --ink: #063546; /* texto principal */
  --muted: #476877; /* texto secundario */
  --accent: #00b2a9; /* turquesa SaludYa */
  --star: #f6c41c; /* dorado estrellas */
  --card-bg: #ffffff;
  --ring: 0 10px 30px rgba(3, 40, 53, 0.06);
}

.testimonios {
  background: var(--bg-soft);
  padding: 64px 0 72px;
}
.testimonios-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.testimonios-title {
  text-align: center;
  font: 800 clamp(1.8rem, 3.8vw, 3rem) / 1.1 "Poppins", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial;
  color: var(--ink);
  margin: 0 0 28px;
}

/* Grid */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card */
.testimonio {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: var(--ring);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.testimonio:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(3, 40, 53, 0.08);
}

.testimonio-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

/* Avatar simple SVG */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #edf7f7;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.avatar svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Persona: estrellas + nombre */
.persona .stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 20px;
  margin-bottom: 4px;
}
.persona h3 {
  margin: 0;
  font: 700 1.4rem/1.1 "Poppins", system-ui, Arial;
  color: var(--ink);
}

/* Texto */
.testimonio-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  margin: 6px 2px 2px;
}

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .testimonio {
    padding: 18px;
  }
}

/* ======= About Doctor / Misión ======= */
:root {
  --ink: #0d3141; /* texto principal */
  --muted: #3f6473; /* texto secundario */
  --brand: #00b2a9; /* turquesa SaludYa */
  --bg-soft: #eaf6fb; /* fondo suave */
  --card: #ffffff;
  --ring: 0 14px 38px rgba(6, 38, 49, 0.1);
}

.about-doctor {
  background: linear-gradient(180deg, #f6fbfd 0, #f2f9fb 30%, #eef7f9 100%);
  padding: clamp(48px, 7vw, 84px) 0;
  color: var(--ink);
}

.about-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Foto del médico (tarjeta) */
.about-photo {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px;
  margin: 0;
  box-shadow: var(--ring);
  position: sticky; /* se mantiene visible un poco en desktop */
  top: 24px;
}
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
}

/* Contenido */
.about-content {
  text-align: center;
  padding-inline: clamp(0px, 2vw, 20px);
}

/* Logo / Insignia */
.about-badge {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: #062d3a;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(6, 38, 49, 0.18);
}
.about-badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* Textos */
.about-lead {
  font: 600 1.1rem/1.8 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial;
  margin: 14px auto 14px;
  max-width: 60ch;
  color: var(--ink);
}

.about-quote {
  margin: 10px 0 18px;
}
.about-quote p {
  display: inline-block;
  margin: 0;
  font: italic 700 1.15rem/1.8 "Poppins", system-ui, Arial;
  color: var(--brand);
  padding: 8px 14px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: rgba(0, 178, 169, 0.07);
}

.about-copy {
  margin: 6px auto 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.9;
}

/* ======= Responsive ======= */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: static;
    max-width: 460px;
    margin-inline: auto;
  }
  .about-badge {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 520px) {
  .about-badge {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .about-lead {
    font-size: 1rem;
  }
  .about-quote p {
    font-size: 1.02rem;
  }
}

/* Footer */

/* ===== Footer SaludYa ===== */
:root {
  --footer-bg: #f5f7f9;
  --footer-ink: #163a4b;
  --footer-muted: #58707c;
  --footer-link: #174f7d;
  --footer-link-h: #0f74c2;
  --accent: #00b2a9;
}

.footer-saludya {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 48px;
}

.footer-saludya-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 22px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr; /* 4 columnas bien equilibradas */
  gap: 40px;
  align-items: start;
}

/* Distribución visual de columnas */
.footer-saludya-brand {
  justify-self: start;
}
.footer-saludya-links {
  justify-self: center;
}
.footer-saludya-social {
  justify-self: center;
}
.footer-saludya-contact {
  justify-self: end;     /* empuja la columna de contacto al extremo derecho */
  text-align: right;     /* alinea su contenido a la derecha */
}

/* Brand + descripción */
.footer-saludya-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.footer-saludya-brand .brand img {
  width: 180px;
  height: 70px;
  object-fit: contain;
}
.footer-saludya-brand .brand span {
  font: 800 1.8rem/1 "Poppins", system-ui, Arial;
  letter-spacing: 0.5px;
}
.footer-saludya .brand-lead {
  color: var(--footer-muted);
  line-height: 1.8;
  margin: 8px 0 0;
}

/* Enlaces */
.footer-saludya-links h3,
.footer-saludya-social h3,
.footer-saludya-contact h3 {
  font: 800 1.25rem/1.1 "Poppins", system-ui, Arial;
  color: var(--footer-ink);
  margin: 0 0 12px;
}

.footer-saludya-links ul,
.footer-saludya-contact .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-saludya-links li + li {
  margin-top: 10px;
}

.footer-saludya a {
  color: var(--footer-link);
  text-decoration: none;
}
.footer-saludya a:hover {
  color: var(--footer-link-h);
  text-decoration: underline;
}

/* Redes */
.social-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e9eef3;
  color: #2a3a49;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
}
.social:hover {
  transform: translateY(-2px);
  filter: saturate(1.2);
}
.social.ig {
  background: #ff2b8a20;
  color: #ff2b8a;
}
.social.wa {
  background: #25d36620;
  color: #25d366;
}
.social.mail {
  background: #2f294020;
  color: #2f2940;
}

/* Contacto */
.contact-list li {
  color: var(--footer-muted);
  line-height: 1.9;
}
.contact-list a {
  color: var(--footer-link);
}

/* Franja inferior */
.footer-saludya-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 16px;
  padding: 14px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: var(--footer-muted);
}
.footer-saludya-bottom .legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-saludya-bottom a {
  color: var(--footer-link);
}
.footer-saludya-bottom a:hover {
  color: var(--footer-link-h);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-saludya-wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-saludya-wrap {
    grid-template-columns: 1fr;
  }
  .footer-saludya-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-saludya-brand .brand span {
    font-size: 1.6rem;
  }
}

/* Como funciona */

/* ===== Cómo funciona – SaludYa ===== */
:root {
  --howto-ink: #0d3141;
  --howto-muted: #456371;
  --howto-accent: #00b2a9;
  --howto-soft: #f3fafb;
  --howto-card: #ffffff;
  --howto-ring: 0 16px 40px rgba(6, 38, 49, 0.08);
}

.howto {
  background: transparent;
  padding: 0;
}
.howto-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}
.howto-title {
  font: 800 clamp(1.8rem, 3.6vw, 2.6rem) / 1.1 "Poppins", system-ui, Arial;
  color: var(--howto-ink);
  margin: 0 0 8px;
}
.howto-lead {
  color: var(--howto-muted);
  margin: 0 0 26px;
  font-size: 1.08rem;
}

/* Grid de pasos */
.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.howto-step {
  background: var(--howto-card);
  border-radius: 16px;
  padding: 22px 18px 20px;
  box-shadow: var(--howto-ring);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.howto-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(6, 38, 49, 0.1);
}

.howto-badge {
  --size: 52px;
  width: var(--size);
  height: var(--size);
  border-radius: 14px;
  background: var(--howto-ink);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font: 800 1.25rem/1 "Poppins", system-ui, Arial;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.08);
}
.howto-step h3 {
  margin: 6px 0 6px;
  color: var(--howto-ink);
  font: 700 1.15rem/1.2 "Poppins", system-ui, Arial;
}
.howto-step p {
  color: var(--howto-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.98rem;
}

/* CTA */
.howto-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--howto-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 8px;
  transition: transform 0.1s ease, filter 0.2s ease;
}
.howto-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.howto.boxed {
  background: #ffffff;
  padding: 40px 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}



/* Responsive */
@media (max-width: 1024px) {
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .howto-steps {
    grid-template-columns: 1fr;
  }
  .howto-badge {
    --size: 46px;
  }
}

/* ===== Fix carrusel en mobile ===== */
@media (max-width: 960px) {
  .hero-carousel {
    flex-direction: column; /* texto arriba, carrusel abajo */
    gap: 18px;
    padding: 32px 5%;
  }

  /* El contenedor necesita altura explícita en mobile */
  .carousel-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* altura automática según el ancho */
    height: auto; /* usar aspect-ratio */
    min-height: 260px; /* respaldo si el navegador no soporta aspect-ratio */
    border-radius: 12px;
    overflow: hidden;
  }

  .carousel-slide {
    inset: 0; /* asegúrate de ocupar todo el contenedor */
  }

  .carousel-slide img {
    object-fit: cover;
    object-position: center; /* centra el foco en pantallas angostas */
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Flechas un poco más chicas para pantallas pequeñas */
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

/* Examenes */
.examenes-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f7fbff;
}

.titulo-examenes {
  font-size: 2rem;
  font-weight: 800;
  color: #0e2a3c;
  margin-bottom: 10px;
}

.intro-examenes {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #333;
  font-size: 1.05rem;
}

.examenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  justify-items: center;
}

.examen-item {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.examen-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.examen-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.examen-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0e2a3c;
  margin: 10px 0;
}

.descripcion {
  font-size: 0.95rem;
  color: #555;
  min-height: 60px;
}

.precio {
  font-weight: bold;
  color: #008c8c;
  margin: 10px 0;
}

.btn-carrito {
  background-color: #00b4b4;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-carrito:hover {
  background-color: #009090;
}

.examen-item img {
  width: 100%;
  height: 230px; /* ajustá este valor según la altura de las más grandes */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Contacto */

/* ===== Contacto ===== */
:root{
  --c-bg: #edf6fc;
  --c-card: #ffffff;
  --c-text: #0e2a3d;
  --c-muted:#6b8799;
  --c-accent:#00b4b4; /* tu turquesa */
  --c-danger:#d94040;
  --radius: 16px;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
}

.contacto-section{
  background: var(--c-bg);
  padding: 42px 20px 64px;
}

.contacto-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* imagen un poquito más grande */
  gap: 36px;
  align-items: stretch;
}

.contacto-hero{
  margin: 0;
  background: #dfeaf3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contacto-hero img{
  width: 100%;
  height: 100%;
  max-height: 640px;       /* controla la altura total de la imagen */
  object-fit: cover;       /* rellena sin deformar */
  display: block;
}

.contacto-card{
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow);
}

.contacto-title{
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--c-text);
}
.contacto-intro{
  margin: 0 0 18px;
  color: var(--c-muted);
}

.contacto-form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field{
  display: grid;
  gap: 8px;
}
.field-inline{
  display: flex;
  align-items: center;
  gap: 10px;
}

label{
  font-weight: 700;
  color: var(--c-text);
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea{
  width: 100%;
  border: 2px solid #e6eef3;
  background: #f9fcfe;
  border-radius: 12px;
  padding: 14px 14px;
  font: inherit;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea{ resize: vertical; min-height: 130px; }

input::placeholder,
textarea::placeholder{
  color: #9ab0bf;
}

input:focus,
textarea:focus{
  outline: none;
  border-color: var(--c-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0,180,180,.12);
}

/* HTML5 validation */
input:required:invalid,
textarea:required:invalid{
  border-color: #e7b5b5;
}
input:required:invalid:focus,
textarea:required:invalid:focus{
  box-shadow: 0 0 0 4px rgba(217,64,64,.12);
}

.hint{
  color: var(--c-muted);
  font-size: 13px;
}

.btn-enviar{
  appearance: none;
  border: none;
  background: var(--c-accent);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(0,180,180,.28);
}
.btn-enviar:hover{ background:#009a9a; }
.btn-enviar:active{ transform: translateY(1px); }

/* Mensajes de estado */
.form-msg{
  margin: 8px 0 0;
  font-weight: 600;
}
.form-msg.ok{ color: #1a8c4b; }
.form-msg.err{ color: var(--c-danger); }

/* Responsive */
@media (max-width: 1024px){
  .contacto-wrap{
    grid-template-columns: 1fr;
  }
  .contacto-hero img{
    max-height: 380px;
  }
}

/* Carrito */

:root{
    --primary:#0b4a6f;      /* azul SaludYa (oscuro) */
    --accent:#0e7cc9;       /* azul vivo para botones */
    --bg:#e9f3fb;           /* azul claro del header */
    --text:#0e1b2a;
    --muted:#6b7b8d;
    --card:#fff;
    --radius:16px;
    --shadow:0 8px 24px rgba(13,40,61,.08);
  }
  .container{max-width:1100px;margin:24px auto;padding:0 16px;}
  .cart-header h1{font:700 28px/1.2 "Poppins", system-ui;color:var(--primary);margin:0 0 8px}
  .cart-breadcrumb{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:14px}
  .cart-breadcrumb a{color:var(--muted);text-decoration:none}
  .cart-breadcrumb a:hover{color:var(--primary)}
  /* Estado vacío */
  .cart-empty{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:40px;text-align:center}
  .cart-empty svg{color:var(--primary);margin-bottom:8px;opacity:.8}
  .cart-empty h2{margin:8px 0 4px;color:var(--text);font:700 22px/1.2 Poppins,system-ui}
  .cart-empty p{color:var(--muted);margin:0 0 16px}
  /* Grid */
  .cart-grid{display:grid;grid-template-columns:1fr 320px;gap:24px}
  @media (max-width:900px){.cart-grid{grid-template-columns:1fr}}
  /* Items */
  .cart-items{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow)}
  .cart-items-head{display:grid;grid-template-columns:1fr 120px 140px 120px 40px;gap:12px;padding:14px 16px;border-bottom:1px solid #e7eef6;color:var(--muted);font-weight:600}
  .cart-item{display:grid;grid-template-columns:1fr 120px 140px 120px 40px;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #eef4fa}
  .cart-item:last-child{border-bottom:0}
  .cart-prod{display:flex;gap:12px;align-items:center}
  .cart-thumb{width:64px;height:64px;border-radius:12px;background:var(--bg);object-fit:cover}
  .cart-title{font-weight:700;color:var(--text);margin:0}
  .cart-meta{font-size:12px;color:var(--muted);margin-top:2px}
  .price,.subtotal{font-weight:700;color:var(--text)}
  /* Qty */
  .qty{display:inline-flex;align-items:center;border:1px solid #d6e3f0;border-radius:999px;overflow:hidden}
  .qty button{width:34px;height:34px;border:0;background:#f5f9fd;cursor:pointer}
  .qty input{width:46px;text-align:center;border:0;outline:none;font-weight:600}
  .qty button:hover{background:#eaf3fb}
  /* Remove */
  .btn-remove{background:transparent;border:0;cursor:pointer;color:#9aa9ba}
  .btn-remove:hover{color:#e05252}
  /* Summary */
  .cart-summary{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
  .cart-summary h2{font:700 18px/1.2 Poppins,system-ui;color:var(--text);margin:2px 0 12px}
  .summary-row,.summary-total{display:flex;justify-content:space-between;align-items:center;margin:10px 0}
  .summary-total{padding-top:8px;border-top:1px dashed #dfe8f2;font-size:18px}
  .badge{background:#eef6ff;color:#2d5c8a;border-radius:999px;padding:2px 8px;font-size:12px}
  .summary-note{color:var(--muted);font-size:12px;margin-top:10px}
  /* Buttons */
  .btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:12px 16px;font-weight:700;cursor:pointer;text-decoration:none}
  .btn-primary{background:var(--accent);color:#fff}
  .btn-primary:hover{filter:brightness(.96)}
  .btn-block{width:100%}
  /* Responsive columns on mobile */
  @media (max-width:640px){
    .cart-items-head{display:none}
    .cart-item{grid-template-columns:1fr;gap:8px}
    .price,.subtotal{justify-self:flex-end}
  }


  /*  Checkout */

  :root{
  --sy-primary:#1ea4b7;
  --sy-primary-600:#188c9d;
  --sy-accent:#20c997;
  --sy-danger:#de524c;
  --sy-bg:#f6fafb;
  --sy-card:#ffffff;
  --sy-text:#0f172a;
  --sy-muted:#64748b;
  --sy-border:#e6eef1;
  --sy-radius:18px;
  --sy-shadow:0 10px 24px rgba(15,23,42,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins",system-ui,Arial,sans-serif;
  color:var(--sy-text);
  background:var(--sy-bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.checkout-saludya{
  max-width:1100px;
  margin:40px auto;
  padding:16px;
  display:grid;
  grid-template-columns:1.25fr .85fr;
  gap:28px;
}

.sy-card{
  background:var(--sy-card);
  border:1px solid var(--sy-border);
  border-radius:var(--sy-radius);
  box-shadow:var(--sy-shadow);
  overflow:hidden;
}

.sy-header{padding:22px 22px 6px;font-weight:700;font-size:1.25rem}
.sy-sub{padding:0 22px 12px;color:var(--sy-muted);line-height:1.55}
.sy-body{padding:16px 22px 22px}

.section-title{margin:8px 0 14px;font-size:1.05rem}

.progress{
  display:flex;align-items:center;gap:10px;
  padding:12px 22px 18px;margin:-8px -22px 8px;border-bottom:1px solid var(--sy-border);
}
.progress .dot{
  width:26px;height:26px;border-radius:50%;
  background:var(--sy-primary);color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:.9rem;
}
.progress .line{
  flex:1;height:3px;
  background:linear-gradient(90deg,var(--sy-primary) 60%,#cfe9ed 60%);
  border-radius:6px;
}
.progress .label{font-weight:600;color:var(--sy-muted)}

.order-editor .options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.chk{
  display:flex;align-items:center;gap:10px;
  padding:12px;border:1px solid var(--sy-border);
  border-radius:14px;background:#fcfeff;
  cursor:pointer;transition:all .18s ease;
}
.chk:hover{box-shadow:0 6px 16px rgba(0,0,0,.05)}
.chk input{width:18px;height:18px;accent-color:var(--sy-primary)}
.chk .name{font-weight:600}

.actions{display:flex;gap:12px;margin-top:14px}
.btn{
  appearance:none;border:0;border-radius:14px;
  padding:12px 16px;font-weight:700;cursor:pointer;
}
.btn-primary{background:var(--sy-primary);color:#fff}
.btn-primary:hover{background:var(--sy-primary-600)}
.btn-ghost{background:#eef7f9;color:var(--sy-danger);font-weight:600}
.btn-light{background:#f1f5f9}
.btn-block{width:100%;margin-top:12px}

.customer-form .grid{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:.9rem;color:var(--sy-muted);font-weight:600}
.field input,.field select{
  border:1px solid var(--sy-border);
  border-radius:12px;
  padding:12px 12px;
  font-size:1rem;
  outline:none;background:#fff;
  transition:box-shadow .18s ease,border .18s ease;
}
.field input:focus,.field select:focus{
  border-color:#bde3e8;
  box-shadow:0 0 0 4px rgba(30,164,183,.12);
}
.grid .span-2{grid-column:1/-1}

.summary .row{
  display:flex;justify-content:space-between;align-items:center;
  margin:10px 0;
}
.summary .total{font-size:1.1rem;font-weight:700}
.summary .badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:#e7faf2;color:#0b8c4a;font-weight:700;font-size:.85rem;
}
.pm-title{margin:18px 0 10px;font-size:1rem}
.pm-placeholder{
  border:1px dashed #cfe9ed;border-radius:14px;
  padding:14px 12px;color:var(--sy-muted);font-size:.95rem
}
.sep{
  height:1px;border:0;margin:12px 0;background:var(--sy-border);
}
.terms{
  display:flex;align-items:flex-start;gap:10px;margin:14px 0 4px;
  color:var(--sy-muted);font-size:.9rem;
}
.terms input{margin-top:3px;accent-color:var(--sy-primary)}
.terms a{color:var(--sy-primary);text-decoration:none}
.terms a:hover{text-decoration:underline}

/* Responsive */
@media (max-width: 980px){
  .checkout-saludya{grid-template-columns:1fr;gap:20px}
  .order-editor .options{grid-template-columns:1fr}
}

/* Examenes */

/* Panel inline dentro de la tarjeta */
.inline-panel{
  margin-top:12px; padding:14px; border:1px solid #e6eef1;
  border-radius:12px; background:#fafcfd;
}
.inline-panel .panel-head{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:8px;
}
.inline-panel .sel-all{ font-size:.95rem; color:#475569; display:flex; align-items:center; gap:8px; }
.inline-options{ list-style:none; margin:0; padding:0; max-height:260px; overflow:auto; }
.inline-options li{ margin:6px 0; }
.inline-options label{ display:flex; gap:10px; align-items:flex-start; padding:8px 10px;
  border:1px solid #e6eef1; border-radius:10px; background:#fff; }
.inline-options input[type="checkbox"]{ width:18px; height:18px; accent-color:#1ea4b7; margin-top:2px; }
.inline-options .opt-name{ font-weight:600; }
.inline-options .opt-price{ color:#0b5394; font-weight:600; margin-left:6px; }
.panel-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.panel-foot .js-total{ font-size:1.05rem; color:#0b5394; }
.card-actions{ display:flex; gap:10px; margin-top:10px; }
.btn{ border:0; border-radius:10px; padding:10px 14px; cursor:pointer; font-weight:700; }
.btn-primary{ background:#0b5394; color:#fff; }
.btn-primary:disabled{ opacity:.6; cursor:not-allowed; }
.btn-secondary{ background:#e2f3f5; color:#0b5394; }

/* ===== Modal exámenes ===== */
.modal-exams { position: fixed; inset: 0; display: none; z-index: 9999; }
.modal-exams[aria-hidden="false"] { display: block; }

.modal-backdrop{
  position: absolute; inset:0; background: rgba(0,0,0,.45);
}
.modal-card{
  position: relative; max-width: 720px; margin: 6vh auto; background:#fff;
  border-radius: 14px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-close{
  position:absolute; right:10px; top:10px; width:36px; height:36px; border:0;
  border-radius:50%; background:#f1f5f9; cursor:pointer; font-size:20px;
}
#modal-title{ font: 800 1.4rem/1 "Poppins",system-ui,Arial; margin:0 0 4px; color:#0e2a3c; }
.modal-sub{ margin:0 0 14px; color:#476877; }

.modal-list{ display:grid; gap:10px; margin: 12px 0 14px; }
.opt{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  border:1px solid #e6eef5; border-radius:10px; padding:12px 14px; background:#fff;
}
.opt input{ transform: translateY(1px); }
.opt .price{ color:#0b6bb1; font-weight:700; }

.modal-summary{
  display:grid; gap:6px; border-top:1px solid #eef3f7; padding-top:12px; margin-top:4px;
  color:#0d3141;
}
.modal-summary .total{ font-size:1.1rem; }

.modal-actions{
  display:flex; justify-content:flex-end; gap:10px; margin-top:14px;
}
.btn-outline{
  background:#eef5fa; border:1px solid #d8e5f1; color:#0d3141; padding:10px 14px; border-radius:8px;
  font-weight:700; cursor:pointer;
}
.btn-primary{
  background:#0077c8; color:#fff; border:0; padding:10px 16px; border-radius:8px; font-weight:800; cursor:pointer;
}
.btn-primary:hover{ filter:brightness(1.05); }

/* =================== BOTÓN ELEGIR EXÁMENES =================== */

.btn-elegir {
  display: inline-block;
  background-color: #00b4b4; /* mismo color que Añadir al carrito */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
}

.btn-elegir:hover {
  background-color: #009090;
  transform: translateY(-1px);
}

/* Para igualar el ancho con el botón Añadir al carrito dentro de las tarjetas */
.examen-item .btn-elegir {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-top: 8px;
}

/* ===== Scroll interno del modal ===== */
.modal-card{
  max-height: 90vh;       /* no supera la ventana */
  overflow: auto;         /* hace scroll dentro del modal */
  -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
}

/* (Opcional) si la lista es larguísima, darle más respiro */
.modal-list{ margin-bottom: 10px; }

/* (Opcional) en pantallas chicas, que el modal aproveche el ancho */
@media (max-width: 640px){
  .modal-card{ width: 95vw; }
}

/* ==== Checkout – estilos visuales ==== */
:root{
  --accent: #11b5a3;      /* color de marca */
  --accent-600:#0aa290;
  --accent-50:#e6faf7;
  --ink:#0f172a;          /* gris casi negro */
  --muted:#64748b;        /* gris medio */
  --line:#e5e7eb;         /* bordes suaves */
  --card:#ffffff;
  --bg:#f7fafc;
}

body{ background: var(--bg); }

/* tarjeta de cada producto en checkout */
.co-item{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 6px 18px rgba(2, 8, 20, .06);
  transition: box-shadow .2s ease, transform .08s ease;
  margin: 14px 0;
}
.co-item:hover{ box-shadow: 0 10px 28px rgba(2,8,20,.10); transform: translateY(-1px); }

/* encabezado */
.co-head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; margin-bottom: 10px;
}
.co-head .section-title{
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  margin: 0;
}
.co-qty{
  background: var(--accent-50);
  color: var(--accent-600);
  border: 1px solid #b8efe7;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

/* lista de exámenes como "chips" */
.co-exams{
  list-style: none; padding: 0; margin: 8px 0 10px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.co-exams .exam-chip{
  display:inline-flex; align-items:center; gap: 8px;
  border: 1px dashed #cfe9e6;
  background: #f5fffd;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: .92rem; line-height: 1.1;
}
.co-exams .exam-chip em{
  font-style: normal; font-weight: 700; color: var(--accent-600);
}

/* pie con subtotal */
.co-foot{
  display:flex; align-items:center; justify-content:space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px; margin-top: 8px;
  color: var(--muted);
}
.co-foot strong{
  color: var(--ink); font-size: 1.05rem;
}

/* badge del resumen derecho (si lo tenés) */
.summary .badge{
  background: var(--accent);
  color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700;
}

/* “estado vacío” */
.order-editor .muted{ color: var(--muted); }
.order-editor p a.btn.btn-primary{
  background: var(--accent); border-color: var(--accent);
}
.order-editor p a.btn.btn-primary:hover{ background: var(--accent-600); }

/* botones inferiores (si usás Confirmar / Eliminar) */
button.btn-primary, .btn.btn-primary{
  background: var(--accent); border: 1px solid var(--accent);
  color:#fff; border-radius: 12px; padding: 10px 16px; font-weight:700;
  transition: filter .15s ease, transform .06s ease;
}
button.btn-primary:hover, .btn.btn-primary:hover{ filter: brightness(.95); }
button.btn-primary:active, .btn.btn-primary:active{ transform: translateY(1px); }

button.btn-outline, .btn.btn-outline{
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; font-weight:700;
}
button.btn-outline:hover, .btn.btn-outline:hover{ border-color:#cbd5e1; }

/* responsive suave */
@media (max-width: 720px){
  .co-head{ align-items:flex-start; }
  .co-qty{ font-size:.85rem; }
  .co-exams{ gap:6px; }
  .co-exams .exam-chip{ padding:7px 9px; font-size:.9rem; }
}

/* Checkout pago */

#payer-card .grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
}
#payer-card label{display:flex;flex-direction:column;gap:6px;font-weight:600}
#payer-card input[type="text"],
#payer-card input[type="email"],
#payer-card input[type="date"]{
  padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px
}
.pay-methods{grid-column:1/-1;border:1px solid #e5e7eb;border-radius:14px;padding:12px}
.pay-methods .radio{display:flex;align-items:center;gap:10px;margin:4px 0}
.terms{grid-column:1/-1;display:flex;align-items:center;gap:10px}
.actions{grid-column:1/-1;display:flex;gap:12px}

/* ==== Checkout – ajustes finales ==== */

/* Ocultar los botones laterales Confirmar / Eliminar */
.order-editor .actions { 
  display: none !important;
}

/* Centrar título "Método de pago" y el selector de pago */
.pm-title { 
  text-align: center !important; 
  margin-top: 8px; 
}

/* Centrar el bloque de radios de pago */
.pay-methods { 
  text-align: center; 
}
.pay-methods .radio { 
  justify-content: center; 
}

/* Centrar el botón "Realizar pedido" y quitar ancho completo */
#payer-card .actions { 
  justify-content: center !important; 
}
#payer-card .actions .btn-block { 
  width: auto !important; 
  min-width: 220px; 
}

/* --- Quitar Khipu (opción de transferencia) solo con CSS --- */
/* Si el radio tiene value="khipu", ocultamos ese input y su label adyacente */
.pay-methods input[type="radio"][value="khipu"],
.pay-methods input[type="radio"][value="khipu"] + label {
  display: none !important;
}

/* (opcional) si el contenedor de la opción Khipu tiene una clase, lo ocultamos también */
.pay-methods .radio.khipu { 
  display: none !important; 
}

/* Columna derecha con stack vertical */
.co-right {
  display: grid;
  gap: 20px;
  align-content: start;
}

/* Mobile: apilar en una columna */
@media (max-width: 800px) {
  .checkout-saludya {
    grid-template-columns: 1fr;
  }
}

/* ==== Ocultar momentáneamente FAQ y Testimonios (pedido de Erich) ==== */
.faq,
.testimonios {
  display: none !important;
}













