/* Landing Programas Sugar Care (2026-11-30). Solo se carga en la página /programas/. */
.scp .scp-hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 5.2vw, 4.9rem); }
.scp .scp-sub { font-size: 1.2rem; color: var(--ink); margin: 18px 0 0; }
.scp .scp-hero .lede { margin: 14px 0 12px; }
.scp .scp-note-strong { color: var(--teal); font-weight: 700; margin-bottom: 26px; }
.scp .scp-hero-card { padding: 8px; }
.scp .scp-hero-card figure { margin: 0; }
.scp .scp-hero-card img { aspect-ratio: auto; object-fit: contain; border-radius: 8px; }
.scp figure { margin: 0; }
.scp .wp-block-button__link { text-decoration: none; }
.scp h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.scp .section-title h2 { max-width: 18ch; }
/* Grids y tarjetas */
.scp-grid { display: grid; gap: 18px; }
.scp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.scp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px; margin: 0 !important; }
.scp-card > * { margin: 0; }
.scp-card h3 { margin-bottom: 8px; }
.scp-card .scp-price { color: var(--teal); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.scp-card > p:not(.scp-price) { color: var(--muted); flex: 1; margin-bottom: 18px; }
.scp-card .wp-block-buttons, .scp-card .wp-block-button, .scp-card .wp-block-button__link { width: 100%; }
.scp-card .wp-block-button__link { display: flex; justify-content: center; min-height: 49px; align-items: center; }
.scp-card-featured { border: 2px solid var(--teal); box-shadow: 0 12px 30px #12383a14; }
.scp-mint { background: var(--mint); }
.scp-mint .scp-card { border-color: #d4e5e2; }
/* Bloques en dos columnas */
.scp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(25px, 5vw, 70px); align-items: center; }
.scp-split-top { align-items: start; }
.scp-split-copy > p:not(.eyebrow):not(.scp-sub) { color: var(--muted); margin-top: 14px; }
.scp-art { border-radius: 18px; overflow: hidden; background: #e5f1ee; }
.scp-art img { width: 100%; height: auto; }
.scp-split-copy .scp-art { margin-top: 26px; }
.scp-subtitle { margin-top: 56px; }
.scp-callout { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 12px 12px 0; }
.scp-callout p { margin: 0; color: var(--ink) !important; }
.scp-callout p + p { margin-top: 6px; color: var(--muted) !important; }
.scp-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.5vw, 40px); }
.scp-panel h3 + * { margin-top: 14px; }
.scp-panel .scp-check + h3 { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.scp-panel p { color: var(--muted); }
/* Listas con palomita */
.scp-check { list-style: none; padding: 0; margin: 14px 0 0; }
.scp-check li { position: relative; padding: 6px 0 6px 32px; }
.scp-check li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--teal); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
/* Anual (panel oscuro del sitio) */
.scp .scp-premium .premium-copy .scp-sub { color: #fff; margin-top: 12px; }
.scp .scp-premium .scp-h4 { font-size: 1.3rem; margin-top: 26px; letter-spacing: -.02em; }
.scp .scp-premium .scp-check li::before { background: #ffffff22; color: #bde8e2; }
.scp .scp-premium .premium-price { margin: 24px 0 18px; gap: 6px; }
.scp .scp-premium .premium-price p { margin: 0; }
.scp .scp-premium .scp-small { color: #d6efeb; font-size: .95rem; }
.scp .scp-premium .wp-block-button__link { background: #fff; color: var(--teal); }
.scp .scp-premium .wp-block-button__link:hover { background: #daf0eb; }
.scp .scp-disclaimer { font-size: .875rem; opacity: .85; margin-top: 14px; }
.scp-premium-art { display: flex; align-items: center; justify-content: center; background: #e5f1ee; padding: clamp(16px, 3vw, 36px); }
.scp-premium-art img { width: 100%; height: auto !important; border-radius: 12px; }
/* Modalidades de pago */
.scp-option { margin: 0 !important; background: var(--mint); border: 1px solid var(--line); border-radius: 15px; padding: 24px; text-align: center; }
.scp-option p { margin: 0; }
.scp-option-name { color: var(--teal); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .875rem; }
.scp-option-price { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; margin-top: 8px !important; color: var(--ink); }
.scp-step { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #104c4f; color: #fff; border-radius: 18px; padding: clamp(22px, 3.5vw, 36px); }
.scp-step p { margin: 8px 0 0; color: #d6efeb; }
.scp-step .wp-block-button__link { background: #fff; color: var(--teal); }
.scp-step .wp-block-button__link:hover { background: #daf0eb; }
.scp-pay .scp-disclaimer { color: var(--muted); }
.scp-pay .section-title > p { color: var(--muted); }
/* Comparador */
.scp-table th, .scp-table td { text-align: center; }
.scp-table th[scope=row], .scp-table thead th:first-child { text-align: left; }
.scp-table tbody tr:last-child { background: var(--mint); }
.scp-closing .scp-tagline { color: #fff; margin-top: 14px; }
.scp-closing .wrap > div { max-width: 62ch; }
/* Anclas */
#caminos, #cursos, #anual, #sugar-care-360, #pago, #comparar { scroll-margin-top: 24px; }
@media (max-width: 990px) {
  .scp-grid-3 { grid-template-columns: 1fr 1fr; }
  .scp-grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .scp-split { grid-template-columns: 1fr; }
  .scp .scp-premium { grid-template-columns: 1fr; }
  .scp .scp-premium-art { order: -1; }
}
@media (max-width: 690px) {
  .scp-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .scp .scp-hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .scp-card, .scp-option { padding: 18px; }
  .scp-step { flex-direction: column; align-items: flex-start; }
  .scp-step .wp-block-buttons, .scp-step .wp-block-button, .scp-step .wp-block-button__link { width: 100%; text-align: center; }
  .scp-subtitle { margin-top: 40px; }
  .scp-table th, .scp-table td { padding: .6rem .35rem; font-size: .8rem; line-height: 1.3; }
  .scp-table th[scope=row], .scp-table thead th:first-child { padding-left: .6rem; }
  .scp .scp-premium-art { order: -1; }
}
/* Ritmo vertical: sin huecos entre secciones */
.scp > *, .scp .premium > *, .scp .scp-grid > *, .scp .scp-split > * { margin-block: 0 !important; }
.scp .closing h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.scp .closing .wp-block-button__link { background: #fff; color: var(--teal); }
.scp .closing .wp-block-button__link:hover { background: #daf0eb; }
/* Animación de entrada (.sc-reveal): el contenido es visible por defecto; programas.js solo anima si hay JS y sin reduced-motion. */

/* pagos (2026-12-01): dos botones por curso/plan (MXN sólido + USD outline) */
.scp .scp-usd { color: var(--muted); font-weight: 700; font-size: .95rem; }
.scp .scp-pay-buttons { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.scp .scp-pay-buttons .wp-block-button { flex: 1 1 150px; margin: 0; }
.scp .scp-pay-buttons .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 49px; padding: .7rem 1rem; text-align: center; white-space: nowrap; }
.scp .scp-card .scp-pay-buttons .wp-block-button { width: auto; }
.scp .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--action); border: 2px solid var(--action); }
.scp .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mint); color: #09595c; border-color: #09595c; }
.scp .scp-premium .scp-pay-buttons { max-width: 440px; }
.scp .scp-premium .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.scp .scp-premium .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #ffffff1a; color: #fff; }
.scp .scp-premium .premium-price .scp-usd-line { color: #d6efeb; font-weight: 700; }
@media (min-width: 991px) { .scp .scp-card .scp-pay-buttons .wp-block-button { flex: 1 1 0; } .scp .scp-card .scp-pay-buttons .wp-block-button__link { font-size: .93rem; padding-inline: .5rem; } }

/* beneficios (2026-12-01): listas con check, alineación de botones y etiqueta de nivel */
.scp .is-style-sc-check,
.scp .scp-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.scp .is-style-sc-check li,
.scp .scp-check li {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 28px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink);
}
.scp .is-style-sc-check li:last-child,
.scp .scp-check li:last-child { margin-bottom: 0; }
.scp .is-style-sc-check li::before,
.scp .scp-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--mint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23116867' d='M6.3 11.2 3.4 8.3l1.2-1.2 1.7 1.7 4.4-4.4 1.2 1.2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.scp-card .is-style-sc-check,
.scp-card .scp-check {
  flex: 1 1 auto;
  margin: 4px 0 18px;
}
.scp-card .wp-block-buttons,
.scp-card .scp-pay-buttons { margin-top: auto; }
.scp-level {
  margin: 0 0 8px !important;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scp-card .scp-level { margin-top: -2px !important; margin-bottom: 6px !important; }
.scp .scp-premium .scp-level { color: #bde8e2; }
.scp .scp-premium .is-style-sc-check li,
.scp .scp-premium .scp-check li { color: #eef9f7; }
.scp .scp-premium .is-style-sc-check li::before,
.scp .scp-premium .scp-check li::before {
  background-color: #ffffff22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23bde8e2' d='M6.3 11.2 3.4 8.3l1.2-1.2 1.7 1.7 4.4-4.4 1.2 1.2z'/></svg>");
}
.scp-panel .is-style-sc-check + h3,
.scp-panel .scp-check + h3 { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 690px) {
  .scp .is-style-sc-check li,
  .scp .scp-check li { font-size: .9rem; padding-left: 26px; }
}

/* imagenes (2026-12-01): fotos 16:9 en las tarjetas de curso, a ancho completo */
.scp-card { overflow: hidden; }
.scp-card > .wp-block-image.scp-card-photo,
.scp-card .scp-card-photo {
  margin: -24px -24px 16px !important;
  width: calc(100% + 48px);
  max-width: none;
}
.scp-card .scp-card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 690px) {
  .scp-card > .wp-block-image.scp-card-photo,
  .scp-card .scp-card-photo {
    margin: -18px -18px 14px !important;
    width: calc(100% + 36px);
  }
}

/* anual-imagen (2026-12-01): foto vertical Acceso anual, completa y sin recortar el texto */
.scp .scp-premium-art {
  background: #c8f2f5;
  padding: clamp(12px, 2vw, 24px);
  align-self: stretch;
  min-height: 0;
}
.scp .scp-premium-art figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scp .scp-premium-art img {
  width: 100%;
  height: 100% !important;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}
@media (max-width: 990px) {
  .scp .scp-premium-art figure { height: auto; }
  .scp .scp-premium-art img {
    height: auto !important;
    max-height: min(80vh, 680px);
    object-fit: contain;
  }
}

/* herofix (2026-12-02): la tarjeta flotante del hero medía 1500px de alto y tapaba el rostro.
   Causa: imagen lazy con sizes="auto" (Chrome aplica contain-intrinsic-size 3000x1500) + aspect-ratio:auto anulaba la proporción de width/height. */
.scp .scp-hero-card img { aspect-ratio: 1200 / 340; height: auto; contain-intrinsic-size: none; }

/* popup-pago + imágenes (2026-12-02) */
/* Hero: foto nueva con su propio fondo y esquinas redondeadas; se quita el contenedor recortado y la tarjeta flotante */
.scp .scp-hero .hero-art { background: transparent; border-radius: 0; min-height: 0; overflow: visible; margin: 0; padding: 24px 0; display: flex; align-items: center; justify-content: center; position: static; }
.scp .scp-hero .scp-hero-photo { margin: 0; display: flex; justify-content: center; width: 100%; }
.scp .scp-hero .scp-hero-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 540px; object-fit: contain; aspect-ratio: 1000 / 1256; filter: drop-shadow(0 18px 34px #12383a24); }
@media (max-width: 990px) { .scp .scp-hero .scp-hero-photo img { max-height: min(70vh, 520px); } }
@media (max-width: 690px) { .scp .scp-hero .hero-art { padding: 8px 0 20px; } .scp .scp-hero .scp-hero-photo img { max-height: min(62vh, 470px); } }

/* Sugar Care 360: foto completa, sin recorte (contain), igual que la imagen de Anual */
.scp .scp-art-360 { background: transparent; border-radius: 0; overflow: visible; }
.scp .scp-art-360 figure { margin: 0; }
.scp .scp-art-360 img { display: block; width: 100%; height: auto; object-fit: contain; aspect-ratio: 1200 / 649; contain-intrinsic-size: none; filter: drop-shadow(0 12px 26px #12383a1c); }

/* Botón "Ver opciones de pago" dentro del bloque oscuro del 360 */
.scp .scp-step-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scp .scp-step .scp-pay-360 .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #ffffffb8; }
.scp .scp-step .scp-pay-360 .wp-block-button__link:hover { background: #ffffff1f; border-color: #fff; }
@media (max-width: 690px) { .scp .scp-step-actions { width: 100%; flex-direction: column; } .scp .scp-step-actions .wp-block-button { width: 100%; } }

/* Ventana de pago */
html.scpay-lock { overflow: hidden; }
.scpay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0d2a2cb3; overflow-y: auto; opacity: 0; transition: opacity .18s ease; }
.scpay[hidden] { display: none; }
.scpay.is-open { opacity: 1; }
.scpay-dialog { position: relative; width: min(100%, 440px); margin: auto; background: #fff; color: var(--ink); border-radius: 20px; padding: 34px 28px 28px; box-shadow: 0 30px 80px #0a22244d; outline: none; transform: translateY(10px) scale(.985); transition: transform .2s ease; font-family: inherit; }
.scpay.is-open .scpay-dialog { transform: none; }
.scpay-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #52706f); cursor: pointer; }
.scpay-x:hover { background: var(--mint, #e8f4f1); color: var(--ink); }
.scpay-title { margin: 0 28px 20px; text-align: center; font-family: var(--display, inherit); font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.scpay-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line, #d3e4e0); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.scpay-cur { appearance: none; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 8px; min-height: 46px; cursor: pointer; }
.scpay-cur[aria-pressed="true"] { background: var(--teal); color: #fff; }
.scpay-cur:not([aria-pressed="true"]):hover { background: var(--mint, #e8f4f1); }
.scpay-opts { display: grid; gap: 10px; margin-bottom: 20px; }
.scpay-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; border: 1.5px solid var(--line, #d3e4e0); border-radius: 12px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.scpay-opt:hover { border-color: #8fc4bd; }
.scpay-opt.is-on { background: #e3f6f2; border-color: var(--teal); }
.scpay-radio { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scpay-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #5b6f6e; background: #fff; display: grid; place-items: center; }
.scpay-opt.is-on .scpay-dot { border-color: var(--teal); }
.scpay-opt.is-on .scpay-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }
.scpay-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.scpay-amt { margin-left: auto; text-align: right; font-size: .88rem; font-weight: 600; color: var(--teal); }
.scpay-opt:has(.scpay-radio:focus-visible) { outline: 3px solid #0d7a7a66; outline-offset: 2px; }
.scpay-go { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 12px; background: var(--teal); color: #fff !important; font-weight: 800; font-size: 1.05rem; text-decoration: none !important; text-align: center; }
.scpay-go:hover { filter: brightness(1.08); }
.scpay-go:focus-visible, .scpay-cur:focus-visible, .scpay-x:focus-visible { outline: 3px solid #0d7a7a99; outline-offset: 2px; }
@media (max-width: 480px) {
  .scpay { align-items: flex-end; padding: 12px; }
  .scpay-dialog { padding: 30px 18px 20px; border-radius: 20px; }
  .scpay-opt { flex-wrap: wrap; row-gap: 2px; padding: 10px 14px; }
  .scpay-amt { flex-basis: 100%; margin-left: 34px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .scpay, .scpay-dialog { transition: none; } }
@media (min-width: 991px) { .scp .scp-step-actions { flex-wrap: nowrap; flex: none; } .scp .scp-step-actions .wp-block-button__link { white-space: nowrap; } .scp .scp-step > .wp-block-group { flex: 1 1 0; min-width: 0; } }

/* header-programas (2026-12-02): encabezado solo para /programas/. No es fijo: el header global tampoco lo es. */
.scp-header.sc-site-header {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 90px;
  background: #fff;
}
.scp-header.sc-site-header::after { content: none; display: none; }
.scp-header.sc-site-header > * { margin: 0 !important; order: 0; }
.scp-header .scp-logo {
  display: block;
  flex: none;
  width: 121px;
  height: 67px;
  margin-right: auto !important;
}
.scp-header .scp-logo img { width: 100%; height: 100%; object-fit: contain; }
.scp-header .scp-menu-toggle { display: none; }
.scp-header .scp-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 39px);
}
.scp-header .scp-nav a {
  text-decoration: none;
  font-weight: 650;
  color: inherit;
  white-space: nowrap;
}
.scp-header .scp-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.scp-header .scp-header-cta { flex: none; margin-left: 0 !important; }
@media (max-width: 800px) {
  .scp-header.sc-site-header { min-height: 72px; gap: 10px; }
  .scp-header .scp-logo { width: 100px; height: 58px; }
  .scp-header .scp-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    order: 2;
    flex: none;
    min-height: 40px;
    padding: .45rem .8rem;
    border: 1px solid var(--line, #d4e5e2);
    border-radius: 7px;
    background: #fff;
    color: var(--teal);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .scp-header .scp-menu-icon {
    display: block;
    width: 16px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  }
  .scp-header .scp-header-cta {
    order: 1;
    margin-left: auto !important;
    min-height: 40px;
    padding: .45rem 1rem;
    font-size: .9rem;
  }
  .scp-header .scp-nav {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line, #d4e5e2);
    border-radius: 8px;
    box-shadow: 0 12px 30px #12383a1a;
  }
  .scp-header.is-open .scp-nav,
  .scp-header .scp-nav.is-open { display: flex; }
  .scp-header .scp-nav a { padding: 12px 14px; border-radius: 6px; }
  .scp-header .scp-nav a:hover { background: var(--mint, #edf7f5); text-decoration: none; }
}
@media (max-width: 374px) {
  .scp-header .scp-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .scp-header .scp-header-cta { padding-inline: .7rem; }
}
