/* ==========================================================================
   cuponidad-v2 / settings/variables.css
   Tokens de diseño de la nueva capa visual (namespace cd2-*).
   Prefijo --cd2- en todas las custom properties para evitar
   colisiones con variables ya existentes en resources/css/settings/*.
   Origen: resources/maqueta/assets/css/settings/variables.css
   ========================================================================== */

:root {
  /* --- Marca ------------------------------------------------------------ */
  --cd2-primary:            #f15a24;
  --cd2-primary-dark:       #d94a17;
  --cd2-primary-soft:       #fff1ea;
  --cd2-primary-border:     #f7c3ab;
  --cd2-price:              #ee3124;
  /* Azul de marca para texto de menú lateral y tarjetas de oferta. */
  --cd2-brand-blue:         #232a6d;

  /* --- Texto ------------------------------------------------------------ */
  --cd2-title:              #2f354f;
  --cd2-text:               #3d4256;
  --cd2-text-soft:          #6b7280;
  --cd2-text-mute:          #9aa0b0;
  --cd2-text-invert:        #ffffff;

  /* --- Superficies ------------------------------------------------------ */
  --cd2-bg:                 #f5f5f5;
  --cd2-surface:            #ffffff;
  --cd2-surface-alt:        #fafbfc;
  --cd2-chip:               #f1f3f7;
  --cd2-border:             #e5e7eb;
  --cd2-border-soft:        #eef0f4;

  /* --- Estados ------------------------------------------------------------ */
  --cd2-star:               #ffb302;
  --cd2-whatsapp:           #25d366;
  --cd2-success:            #1f9d55;
  --cd2-error:              #d63031;

  /* --- Agrupadores (color pastel) ---------------------------------------- */
  --cd2-g1-ink: #e23e57; --cd2-g1-bg: #fdeaee;
  --cd2-g2-ink: #f5871f; --cd2-g2-bg: #fff3e2;
  --cd2-g3-ink: #0f9d6e; --cd2-g3-bg: #e6f7f0;
  --cd2-g4-ink: #7c4dff; --cd2-g4-bg: #f0ebff;
  --cd2-g5-ink: #2f80ed; --cd2-g5-bg: #e8f1fd;
  --cd2-g6-ink: #e91e8c; --cd2-g6-bg: #fdeaf5;

  /* --- Tipografía --------------------------------------------------------- */
  --cd2-font-base: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --cd2-fs-xxs: 11px;
  --cd2-fs-xs:  12px;
  --cd2-fs-sm:  13px;
  --cd2-fs-md:  14px;
  --cd2-fs-lg:  16px;
  --cd2-fs-xl:  20px;
  --cd2-fs-2xl: 26px;
  --cd2-fs-3xl: 34px;

  /* --- Métricas ------------------------------------------------------------ */
  --cd2-sidebar-w:    232px;
  --cd2-header-h:     72px;
  --cd2-mobile-nav-h: 58px;
  --cd2-gap:          16px;
  --cd2-radius-sm:    6px;
  --cd2-radius:       10px;
  --cd2-radius-lg:    14px;
  --cd2-radius-pill:  999px;
  --cd2-shadow-sm:    0 1px 2px rgba(47, 53, 79, .06);
  --cd2-shadow:       0 2px 10px rgba(47, 53, 79, .08);
  --cd2-shadow-lg:    0 8px 28px rgba(47, 53, 79, .12);
  /* Escala baja a propósito: el sitio real ya usa z-index 2 (header/cuenta),
     3 (panel de cuenta) y 5 (overlay de modales, ver components/modal/default.scss).
     Los valores 50/60/70/100 de la maqueta original chocarían con los modales
     reales (login, registro, MercadoPago) y quedarían por encima de ellos. */
  --cd2-z-header:     2;
  --cd2-z-sidebar:    3;
  --cd2-z-float:      4;
  --cd2-z-modal:      6;

  /* --- Breakpoints (referencia, no usables como var() en @media) --------- */
  /* 375 / 390 / 430 / 768 / 1024 / 1280 / 1440 — ver notas de auditoría:
     el CSS de la maqueta original usa 900/1200/1600/2000 y se reescribe
     a esta grilla en cada componente migrado. */
}

/* ==========================================================================
   cuponidad-v2 / layouts/main.css
   Armazón compartido por las páginas migradas (misma clase real, sin tocar
   el Blade). Real: ".content-wrapper" se usa en home, support, category,
   section, sectiongroup, search, etc. — layouts/main.scss original la
   define global.
   ========================================================================== */

/* layouts/main.scss original limita TODO el sitio (header incluido, ya que
   vive dentro de <main class="container__main">) a max-width:1000px. El
   nuevo diseño pide ancho completo. */
.container__main { max-width: none; width: 100%; }

/* Header y footer van a todo el ancho; el contenido de página se centra a 1600px
   (las páginas con sidebar lo hacen vía .cd2-page-shell, ver components/sidebar.css). */
.content-wrapper {
  padding: 0 var(--cd2-gap);
  max-width: 1600px;
  margin: 0 auto;
}
.content-wrapper .container__section,
.content-wrapper .wrapper_banner { margin: 24px 0; }
.content-wrapper .wrapper_banner img { border-radius: var(--cd2-radius-lg); width: 100%; display: block; }

@media (max-width: 768px) {
  .content-wrapper { padding: 0 12px; }
}

/* ==========================================================================
   cuponidad-v2 / global/header.css
   Reskin visual del header real (misma estructura/selectores, sin tocar
   el Blade). Real: resources/views/components/globals/header.blade.php
                     resources/views/partials/menudesktop.blade.php
                     resources/views/components/globals/side-btns.blade.php
   Origen visual: resources/maqueta/assets/css/global/header.css
   ========================================================================== */

.container__header {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: var(--cd2-z-header);
  border-bottom: 1px solid var(--cd2-border-soft);
  box-shadow: 0 4px 18px rgba(31, 42, 68, .06);
}
/* Manchas naranjas suaves en los extremos de la pantalla (mockup). Van sobre
   el fondo del header (100% de ancho) y dentro de su caja — el degradado se
   apaga antes del borde — así no hace falta overflow:hidden, que taparía el
   panel de "Mi cuenta" y el autocompletado. */
.container__header::before,
.container__header::after {
  content: ""; position: absolute; top: 0; height: var(--cd2-header-h); width: 340px; pointer-events: none; z-index: 0;
}
.container__header::before {
  left: 0; background: radial-gradient(ellipse 70% 120% at 0% 30%, rgba(245, 89, 31, .16) 0%, rgba(245, 89, 31, .05) 45%, rgba(245, 89, 31, 0) 72%);
}
.container__header::after {
  right: 0; background: radial-gradient(ellipse 70% 120% at 100% 70%, rgba(245, 89, 31, .14) 0%, rgba(245, 89, 31, .04) 45%, rgba(245, 89, 31, 0) 72%);
}

/* El fondo va al 100%; el contenido (logo, buscador, cuenta) se alinea con el
   contenido de página: mismo tope de 1600px y mismo gutter que .cd2-page-shell. */
.container__header .header__main {
  position: relative; z-index: 1;
  max-width: 1600px;
  height: var(--cd2-header-h);
  margin: 0 auto;
  padding: 0 var(--cd2-gap);
  display: flex; align-items: center; gap: 0;
}

.container__header #btn__menu {
  color: var(--cd2-title);
  background: none; border: 0;
}

/* Logo ---------------------------------------------------------------- */
.container__header .logo_cupo { display: flex; align-items: center; flex: 0 0 auto; }
.container__header .logo_header_new.logo_header_full { height: 40px; width: auto; }
.container__header .logo_header_new.logo_header_icon { height: 36px; width: auto; }

/* Buscador ------------------------------------------------------------ */
.container__header .autocomplete { flex: 1 1 auto; max-width: 660px; margin: 0 auto; position: relative; }
.container__header .header__search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 0 0 16px;
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-pill);
  box-shadow: 0 4px 14px rgba(31, 42, 68, .07);
  overflow: hidden;
}
.container__header .header__search:focus-within { border-color: var(--cd2-primary-border); box-shadow: 0 6px 18px rgba(245, 89, 31, .14); }
.container__header .header__search_icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--cd2-title); }
.container__header .header__search input {
  flex: 1 1 auto; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: var(--cd2-fs-sm); color: var(--cd2-title);
  font-family: var(--cd2-font-base);
}
.container__header .header__search input::-moz-placeholder { color: var(--cd2-text-soft); }
.container__header .header__search input:-ms-input-placeholder { color: var(--cd2-text-soft); }
.container__header .header__search input::placeholder { color: var(--cd2-text-soft); }
/* Botón "Buscar" naranja integrado al extremo derecho de la píldora */
.container__header #btn_main_search {
  flex: 0 0 auto; width: auto !important; min-width: 104px; height: 100% !important; padding: 0 22px; margin: 0;
  border: 0; border-radius: 0 var(--cd2-radius-pill) var(--cd2-radius-pill) 0;
  background: linear-gradient(90deg, var(--cd2-primary) 0%, #f0430f 100%);
  color: var(--cd2-text-invert); font-size: var(--cd2-fs-md); font-weight: 700; font-family: var(--cd2-font-base);
  display: flex; align-items: center; cursor: pointer; transition: filter .15s ease;
}
.container__header #btn_main_search:hover { filter: brightness(.95); }
.container__header #btn_main_search .fa { display: none; }
.container__header #btn_main_search_mobile { display: none; border: 0; }
#myInputautocomplete-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--cd2-surface); 
  border-radius: var(--cd2-radius); box-shadow: var(--cd2-shadow-lg);
  z-index: var(--cd2-z-header);
}

/* Carrito / Mis cupones / Mis créditos / Mi cuenta (side-btns.blade.php) -
   Ícono a la izquierda, label a la derecha (horizontal, no apilado). Los 4
   iguales (antes "Mi cuenta" era el único con círculo de color de fondo —
   se pareja con el resto). */
.container__header_profile { margin-left: auto; }
.container__header_profile .header_profile__content { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
/* Ícono arriba, etiqueta abajo (mockup); "Mi cuenta" va en fila con su caret */
.container__header_profile .header_profile__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 76px; padding: 6px 10px; border-radius: var(--cd2-radius);
  font-size: var(--cd2-fs-xs); font-weight: 600; color: var(--cd2-title); line-height: 1.1;
  background: none; border: 0; white-space: nowrap; text-decoration: none;
}
.container__header_profile .header_profile__link svg { height: 22px; width: auto; }
.container__header_profile .header_profile__link:hover { background: var(--cd2-chip); }
.container__header_profile .header_profile__divider { width: 1px; height: 34px; margin: 0 4px; background: var(--cd2-border); }
.container__header_profile .header_profile__account_toggle { flex-direction: row; gap: 8px; min-width: 0; padding: 8px 10px; font-size: var(--cd2-fs-sm); }
/* Badge del carrito (#numberitems.account_circle lo actualiza cart.js/internal.js) */
.container__header_profile .icon__shopping_cart { position: relative; display: inline-flex; }
.container__header_profile .icon__shopping_cart .account_circle {
  position: absolute; top: -8px; right: -10px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  background: #ff3b30; color: var(--cd2-text-invert);
  font-size: 10px; font-weight: 700; line-height: 1; border-radius: var(--cd2-radius-pill);
  box-shadow: 0 0 0 2px var(--cd2-surface);
}
.container__header_profile .header_profile__icon_circle--account {
  display: block; background: none; border-radius: 0;
}
.container__header_profile .account_circle { background-color: var(--cd2-primary); }

/* Badge de "Mis créditos" (mismo patrón que el badge del carrito: solo se
   pinta si hay saldo real > 0 — hoy siempre 0 porque el cálculo de saldo
   real está deshabilitado en master.blade.php, así que no se ve por ahora). */
.container__header_profile .header_profile__badge_wrap { position: relative; display: inline-flex; line-height: 0; }
.container__header_profile .header_profile__badge_wrap .icon__my_credits { display: inline-flex; line-height: 0; }
.container__header_profile .header_profile__badge {
  position: absolute; top: -8px; right: -8px; z-index: 1;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  background: #ff3b30; color: var(--cd2-text-invert);
  font-size: 10px; font-weight: 700; line-height: 1; border-radius: var(--cd2-radius-pill);
  box-shadow: 0 0 0 2px var(--cd2-surface);
}

.container__header_profile .header_profile__account_panel {
  background: var(--cd2-surface); border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg); box-shadow: var(--cd2-shadow-lg);
}
.container__header_profile .account_panel__item:hover { background: var(--cd2-surface-alt); }
.container__header_profile .account_panel__item--highlight { background: var(--cd2-primary-soft); }
.container__header_profile .account_panel__icon { background: var(--cd2-primary); border-radius: var(--cd2-radius-pill); }
.container__header_profile .account_panel__icon--register,
.container__header_profile .account_panel__icon--guest,
.container__header_profile .account_panel__icon--profile,
.container__header_profile .account_panel__icon--coupons,
.container__header_profile .account_panel__icon--credits,
.container__header_profile .account_panel__icon--logout { background: var(--cd2-chip); }
.container__header_profile .account_panel__icon--contact { background: var(--cd2-whatsapp); }

/* "Mis cupones"/"Mis créditos" dentro del panel: solo hace falta en mobile
   (en desktop ya son íconos propios arriba — repetirlos ahí sería duplicar). */
@media (min-width: 769px) {
  .container__header_profile .account_panel__item--extra { display: none; }
}
.container__header_profile .account_panel__divider { background: var(--cd2-border-soft); }
.container__header_profile .account_panel__item_title { color: var(--cd2-title); }
.container__header_profile .account_panel__item_subtitle { color: var(--cd2-text-soft); }

/* Menú desktop de segmentos (partials/menudesktop.blade.php real) ------ */
#categories_menu .sub {
  background: var(--cd2-surface); border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg); box-shadow: var(--cd2-shadow-lg);
}
#categories_menu .nivel2 h3 a { color: var(--cd2-title); }
#categories_menu .nivel2 ul li a { color: var(--cd2-text); }
#categories_menu .nivel2 ul li a:hover { color: var(--cd2-primary); }
/* Ícono hamburguesa del disparador del mega-menú desktop: ahora que existe
   el sidebar de segmentos, solo hace falta en mobile. */
.hamburg { display: none; }

/* Drawer de categorías móvil (menu__mobile, dentro del header real) ---- */
.menu__mobile { background: var(--cd2-surface); }
.menu__mobile .menu__mobile_item > a { color: var(--cd2-title); }
.menu__mobile .menu__sub_active > a { color: var(--cd2-primary); font-weight: 700; }

/* Barra de segmentos (globals/category-nav.blade.php, nuevo) ------------
   Solo en mobile (ver el "display:flex" que la reactiva dentro del media
   query de abajo) — en desktop ya cubre lo mismo el sidebar de segmentos. */
.cd2-catnav {
  display: none; align-items: center; gap: 4px;
  height: 52px; padding: 0 var(--cd2-gap);
  border-top: 1px solid var(--cd2-border-soft);
  overflow-x: auto; scrollbar-width: none;
  font-family: var(--cd2-font-base);
}
.cd2-catnav::-webkit-scrollbar { display: none; }
.cd2-catnav__list { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.cd2-catnav__item {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 52px; padding: 0 12px;
  font-size: var(--cd2-fs-sm); font-weight: 600; color: var(--cd2-text-soft);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.cd2-catnav__item:hover { color: var(--cd2-title); }
.cd2-catnav__item.is-active { color: var(--cd2-primary); border-bottom-color: var(--cd2-primary); }
.cd2-catnav__icon {
  width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: var(--cd2-radius-pill);
}
.cd2-catnav__icon svg { width: 13px; height: 13px; }
.cd2-catnav__icon svg path, .cd2-catnav__icon svg rect, .cd2-catnav__icon svg circle {
  fill: #fff !important; stroke: #fff !important;
}

.cd2-catnav__more_wrap { position: relative; flex: 0 0 auto; margin-left: auto; }
.cd2-catnav__more {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; margin-left: 12px;
  background: var(--cd2-chip); border: 0; border-radius: var(--cd2-radius-pill);
  font-size: var(--cd2-fs-sm); font-weight: 600; color: var(--cd2-title); cursor: pointer;
}
.cd2-catnav__more:hover { background: var(--cd2-surface-alt); }
.cd2-catnav__more .cd2-catnav__chevron { transition: transform .15s ease; }
.cd2-catnav__more[aria-expanded="true"] .cd2-catnav__chevron { transform: rotate(180deg); }
.cd2-catnav__panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--cd2-z-header);
  min-width: 240px; max-height: 70vh; overflow-y: auto;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg); box-shadow: var(--cd2-shadow-lg);
  padding: 8px;
}
.cd2-catnav__panel ul { list-style: none; margin: 0; padding: 0; }
.cd2-catnav__panel li + li { margin-top: 2px; }
.cd2-catnav__panel a {
  display: block; padding: 9px 10px; border-radius: var(--cd2-radius-sm);
  font-size: var(--cd2-fs-sm); color: var(--cd2-title); text-decoration: none;
}
.cd2-catnav__panel a:hover { background: var(--cd2-surface-alt); color: var(--cd2-primary); }

@media (max-width: 900px) {
  .cd2-catnav { display: flex; margin: 0 0 12px 0;}
}

@media (max-width: 768px) {
  /* height (no min-height) dejaba el buscador de su propia fila (abajo)
     desbordando fuera de la caja de 54px, tapado por el contenido siguiente. */
  .container__header .header__main { height: auto; min-height: 54px; gap: 0; padding: 8px 12px; }
  .container__header .logo_header_new.logo_header_full { height: 32px; }
  /* El header viejo (global/header.scss) ya hace que el buscador pase a su
     propia fila completa debajo (order:10 + flex:0 0 100%) — acá solo hay
     que NO taparlo. La regla base ".autocomplete{flex:1 1 auto}" (sin media
     query) se aplicaría siempre y pisaría ese flex-basis:100% del viejo por
     cargar después, así que se re-declara acá para la fila propia en mobile. */
  .container__header .autocomplete { order: 10; flex: 0 0 100%; max-width: none; margin: 0; }
  /* Buscador mobile: mismos tokens de color que desktop, pero con el
     separador vertical antes de la lupa y el ícono más oscuro, como la
     referencia (en desktop el botón va integrado sin línea divisoria). */
  .container__header .header__search { height: 44px; padding-left: 14px; background: var(--cd2-chip); border-color: var(--cd2-border-soft); box-shadow: none; }
  .container__header .header__search_icon { display: none; }
  .container__header #btn_main_search {
    min-width: 0; padding: 0 14px; margin: 0; background: none; border-radius: 0;
    border-left: 1px solid var(--cd2-border); color: var(--cd2-title);
  }
  .container__header #btn_main_search .fa { display: block; }
  .container__header #btn_main_search .header__search_label { display: none; }
  .container__header::before, .container__header::after { display: none; }
  .container__header_profile .header_profile__link { min-width: 0; padding: 6px 8px; }
  .container__header_profile .header_profile__label { display: none; }
  .container__header_profile .header_profile__divider { display: none; }
  /* Mis cupones / Mis créditos: en mobile no entran junto al resto sin
     amontonarse — se quedan accesibles desde el panel de "Mi cuenta" (ver
     header_profile__account_panel), como estaba antes de agregarlos acá. */
  .container__header_profile .header_profile__item--extra { display: none; }
  .container__header { border-bottom: 0; box-shadow: var(--cd2-shadow-sm); }
  .hamburg { display: block; }
}

/* Desktop (>=769px): botón "Categorías" + accesos de invitado en línea ---
   Todo lo de este bloque NO aplica en mobile: ahí se mantiene el header tal
   cual (dropdown "Ingresar", drawer de categorías). */
.cd2-hcats { display: none; }
.header_profile__item--guestdesk, .header_profile__divider--guestdesk { display: none; }
.header_profile__item--authdesk { display: none; }
@media (min-width: 769px) {
  .container__header .header__main { gap: 14px; }
  .cd2-hcats { display: block; position: relative; flex: 0 0 auto; }
  .cd2-hcats__btn {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
    background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius);
    font-family: var(--cd2-font-base); font-size: var(--cd2-fs-md); font-weight: 600; color: var(--cd2-title); cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .cd2-hcats__btn:hover, .cd2-hcats__btn[aria-expanded="true"] { border-color: var(--cd2-primary-border); box-shadow: var(--cd2-shadow-sm); }
  .cd2-hcats__btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .cd2-hcats__btn .cd2-hcats__chev { width: 12px; height: 12px; transition: transform .15s ease; }
  .cd2-hcats__btn[aria-expanded="true"] .cd2-hcats__chev { transform: rotate(180deg); }
  .cd2-hcats__panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: var(--cd2-z-float);
    min-width: 260px; padding: 8px; background: var(--cd2-surface); border: 1px solid var(--cd2-border);
    border-radius: var(--cd2-radius-lg); box-shadow: var(--cd2-shadow-lg); font-family: var(--cd2-font-base);
  }
  .cd2-hcats__item {
    display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--cd2-radius-sm);
    color: var(--cd2-brand-blue); font-size: var(--cd2-fs-sm); font-weight: 500; text-decoration: none;
  }
  .cd2-hcats__item:hover { background: var(--cd2-primary-soft); color: var(--cd2-primary); }
  .cd2-hcats__ico { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; }
  .cd2-hcats__ico--star { background: var(--cd2-star); }
  .cd2-hcats__ico svg { width: 14px; height: 14px; }
  .cd2-hcats__ico svg path, .cd2-hcats__ico svg rect, .cd2-hcats__ico svg circle { fill: #fff !important; stroke: #fff !important; }
  .cd2-hcats__name { flex: 1 1 auto; }
  .cd2-hcats__count { font-size: var(--cd2-fs-xs); color: var(--cd2-text-mute); }

  /* Invitado: Iniciar sesión / Regístrate / Como invitado en fila, carrito al final */
  .header_profile__item--guestdesk { display: block; }
  .header_profile__divider--guestdesk { display: block; }
  .container__header_profile .header_profile__link--row {
    flex-direction: row; gap: 9px; min-width: 0; padding: 8px 12px; font-size: var(--cd2-fs-md); font-weight: 700;
  }
  .container__header_profile .header_profile__link--row svg { height: 22px; width: auto; }
  .header_profile__account--guestmobile, .header_profile__divider--guestmobile { display: none; }
  /* Logueado: "Mi perfil" directo; el dropdown "Mi cuenta" solo en mobile */
  .header_profile__item--authdesk { display: block; }
  .header_profile__account--authmobile { display: none; }
  .container__header_profile .header_profile__item--cart { order: 20; }
  .container__header_profile .header_profile__item--cart .header_profile__link { font-size: var(--cd2-fs-md); font-weight: 700; padding: 4px 8px; }
  .container__header_profile .header_profile__item--cart .header_profile__link svg { height: 26px; }
  .container__header_profile .header_profile__divider--beforecart { order: 19; }
  .container__header_profile .header_profile__divider--aftercart { order: 21; }
  .container__header_profile .header_profile__item--logout { order: 22; }
}

/* ==========================================================================
   cuponidad-v2 / global/footer.css
   Footer según mockup aprobado: barra "Ingresar al inicio", bloque blanco de
   4 columnas con divisores (marca | servicio al cliente | contáctanos |
   redes + buscador + beneficios), franja "Visita también nuestros sitios"
   con chips y barra inferior navy con el bloque legal.
   Real: resources/views/components/globals/footer.blade.php
         resources/views/components/icons/footer.blade.php
   El footer vive dentro de .container__main (max 1600px): cada franja pinta
   su fondo a sangre completa con box-shadow + clip-path (no genera scroll).
   Clases nuevas cd2-footer__* para que el footer.scss viejo no aplique.
   ========================================================================== */

.cd2-footer {
  --ft-navy: #1e2a44;
  --ft-navy-deep: #16213a;
  --ft-text: #4a5568;
  --ft-soft: #6b7280;
  --ft-orange: #f5591f;
  --ft-orange-soft: #fff1e8;
  --ft-blue: #1a73e8;
  --ft-blue-soft: #e8f0fe;
  --ft-band: #eef2f7;
  --ft-border: #e6ebf2;

  position: relative; margin-top: 24px; border-top: 0;
  font-family: var(--cd2-font-base); color: var(--ft-text); background: transparent;
}
.cd2-footer .cd2-ico { flex: 0 0 auto; }
.cd2-footer__inner { max-width: none; margin: 0; padding: 0 40px; }

/* Cada franja se pinta a sangre completa aunque el contenedor tope en 1600px */
.cd2-footer__back,
.cd2-footer__main,
.cd2-footer__visit,
.cd2-footer__bottom { position: relative; -webkit-clip-path: inset(0 -100vmax); clip-path: inset(0 -100vmax); }
.cd2-footer__back   { background: var(--ft-band);  box-shadow: 0 0 0 100vmax var(--ft-band); }
.cd2-footer__main   { background: #fff;            box-shadow: 0 0 0 100vmax #fff; }
.cd2-footer__visit  { background: #f7f9fc;         box-shadow: 0 0 0 100vmax #f7f9fc; }
.cd2-footer__bottom { background: var(--ft-navy);  box-shadow: 0 0 0 100vmax var(--ft-navy); }

/* Ingresar al inicio ------------------------------------------------------- */
.cd2-footer__back { text-align: center; padding: 13px; cursor: pointer; }
.cd2-footer__back p {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 14px; font-weight: 700; color: var(--ft-navy);
}
.cd2-footer__back .cd2-ico { width: 20px; height: 20px; }

/* Bloque principal --------------------------------------------------------- */
.cd2-footer__main { padding: 34px 0 30px; overflow: hidden; }
/* Decoración: mancha naranja suave abajo a la izquierda + bolsa arriba a la derecha */
.cd2-footer__main::before {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245, 89, 31, .16) 0%, rgba(245, 89, 31, .06) 45%, rgba(245, 89, 31, 0) 70%);
  pointer-events: none;
}
.cd2-footer__main::after {
  content: ""; position: absolute; right: -30px; top: -16px; width: 190px; height: 190px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd9c4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z' fill='%23fff1e8'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.cd2-footer__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1.6fr;
}
.cd2-footer__col { padding: 0 28px; min-width: 0; }
.cd2-footer__col:first-child { padding-left: 0; }
.cd2-footer__col:last-child { padding-right: 0; }
.cd2-footer__col + .cd2-footer__col { border-left: 1px solid var(--ft-border); }

.cd2-footer__title {
  position: relative; margin: 0 0 20px; padding-bottom: 10px;
  font-size: 20px; font-weight: 700; color: var(--ft-navy); line-height: 1.2;
}
.cd2-footer__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px;
  background: var(--ft-orange); border-radius: 2px;
}

/* Marca */
.cd2-footer__logo { display: block; width: 224px; height: auto; margin: 0 0 16px; }
.cd2-footer__desc { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ft-text); max-width: 290px; }
.cd2-footer__play {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 16px 7px 11px;
  background: #000; color: #fff; border-radius: 10px; text-decoration: none; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cd2-footer__play:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.cd2-footer__play svg { flex: 0 0 auto; }
.cd2-footer__play span { display: flex; flex-direction: column; font-size: 10px; letter-spacing: .04em; line-height: 1.2; }
.cd2-footer__play span strong { font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.1; }
.cd2-footer__award { display: block; max-width: 100%; height: auto; }

/* Servicio al cliente */
.cd2-footer__links { list-style: none; margin: 0; padding: 0; }
.cd2-footer__links li + li { margin-top: 2px; }
.cd2-footer__links a {
  display: flex; align-items: center; gap: 12px; padding: 6px 0;
  font-size: 15px; color: var(--ft-navy); text-decoration: none; transition: color .15s ease;
}
.cd2-footer__links a .cd2-ico { width: 20px; height: 20px; color: var(--ft-navy); }
.cd2-footer__links a span { flex: 1 1 auto; }
.cd2-footer__links a .cd2-ico--chevron { width: 16px; height: 16px; color: #a0aec0; }
.cd2-footer__links a:hover { color: var(--ft-orange); }
.cd2-footer__links a:hover .cd2-ico { color: var(--ft-orange); }

/* Contáctanos */
.cd2-footer__contact { list-style: none; margin: 0 0 16px; padding: 0; }
.cd2-footer__contact li {
  display: flex; align-items: flex-start; gap: 12px; padding: 6px 0;
  font-size: 15px; line-height: 1.4; color: var(--ft-text);
}
.cd2-footer__contact li + li { margin-top: 2px; }
.cd2-footer__contact .cd2-ico { width: 22px; height: 22px; color: var(--ft-navy); margin-top: 0; }
.cd2-footer__contact--wa .cd2-ico { color: #25d366; }
.cd2-footer__contact--wa span { color: var(--ft-navy); }
.cd2-footer__book {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--ft-band); border: 1px solid var(--ft-border); border-radius: 14px;
  color: var(--ft-navy); text-decoration: none; box-shadow: 0 4px 14px rgba(30, 42, 68, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cd2-footer__book:hover { color: var(--ft-navy); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 42, 68, .1); }
.cd2-footer__book .cd2-ico--book { width: 44px; height: 44px; color: var(--ft-blue); }
.cd2-footer__book span { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.cd2-footer__book .cd2-ico--chevron { width: 18px; height: 18px; color: var(--ft-navy); }

/* Redes / buscador / beneficios */
.cd2-footer__social { display: flex; gap: 18px; list-style: none; margin: 0 0 22px; padding: 0; }
.cd2-footer__social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; color: #fff;
  box-shadow: 0 6px 16px rgba(30, 42, 68, .12); transition: transform .15s ease;
}
.cd2-footer__social a:hover { transform: translateY(-2px); color: #fff; }
.cd2-footer__social a .cd2-ico { width: 25px; height: 25px; }
.cd2-footer__social--fb { background: #1877f2; }
.cd2-footer__social--ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.cd2-footer__social--tk { background: #000; }
.cd2-footer__social--wa { background: #25d366; }

.cd2-footer__subtitle { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ft-navy); }
.cd2-footer__search {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 4px 4px 4px 16px;
  background: #fff; border: 1px solid var(--ft-border); border-radius: 999px;
  box-shadow: 0 8px 22px rgba(30, 42, 68, .08);
}
.cd2-footer__search .cd2-ico { width: 20px; height: 20px; color: var(--ft-blue); }
.cd2-footer__search .input__search_footer {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px;
  font-size: 14px; color: var(--ft-navy); outline: 0;
}
.cd2-footer__search .input__search_footer::-moz-placeholder { color: #94a3b8; }
.cd2-footer__search .input__search_footer:-ms-input-placeholder { color: #94a3b8; }
.cd2-footer__search .input__search_footer::placeholder { color: #94a3b8; }
.cd2-footer__search #btn__search_footer {
  height: 100%; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ft-orange); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease;
}
.cd2-footer__search #btn__search_footer:hover { background: #dd4a14; }

.cd2-footer__features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 24px 0 0; padding: 0;
}
.cd2-footer__features li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cd2-footer__feature-ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ft-blue-soft); color: var(--ft-blue);
  display: grid; place-items: center;
}
.cd2-footer__feature-ico .cd2-ico { width: 22px; height: 22px; }
.cd2-footer__features li > span:last-child { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ft-navy); }

/* Visita también nuestros sitios ------------------------------------------- */
.cd2-footer__visit { padding: 18px 0; }
.cd2-footer__visit-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cd2-footer__visit-head { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.cd2-footer__visit-head strong { font-size: 18px; font-weight: 700; color: var(--ft-navy); white-space: nowrap; }
.cd2-footer__visit-head span { font-size: 13px; color: var(--ft-soft); white-space: nowrap; }
.cd2-footer__sites { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.cd2-footer__sites li { display: flex; align-items: center; }
.cd2-footer__sites li + li::before { content: ""; width: 1px; height: 26px; margin: 0 12px; background: #cbd5e1; }
.cd2-footer__sites a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(30, 42, 68, .07);
  font-size: 14px; font-weight: 600; color: var(--ft-navy); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cd2-footer__sites a:hover { color: var(--ft-navy); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(30, 42, 68, .11); }
.cd2-footer__site-logo {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 13px; color: #fff; letter-spacing: -.02em;
}
.cd2-footer__site-logo .cd2-ico { width: 20px; height: 20px; }
.cd2-footer__site-logo--lr { background: #e3000f; }
.cd2-footer__site-logo--podcast { background: var(--ft-blue-soft); color: var(--ft-navy); }
.cd2-footer__site-logo--ep { background: #d7f5f0; color: #0aa38e; font-family: var(--cd2-font-base); }
.cd2-footer__site-logo--libero { background: #0b3d91; }
.cd2-footer__site-logo--wapa { background: #ff1f8f; font-family: var(--cd2-font-base); }
.cd2-footer__site-logo--buenazo { background: #f7f9fc; color: var(--ft-orange); font-family: var(--cd2-font-base); font-size: 20px; }

/* Barra inferior ----------------------------------------------------------- */
.cd2-footer__bottom { padding: 20px 0 22px; color: rgba(255, 255, 255, .8); overflow: hidden; }
.cd2-footer__bubble {
  position: absolute; right: -30px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); pointer-events: none;
}
.cd2-footer__bubble::after {
  content: ""; position: absolute; left: 60px; bottom: -22px; width: 70px; height: 70px;
  background: rgba(255, 255, 255, .06); transform: rotate(45deg); border-radius: 8px;
}
.cd2-footer__bottom-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cd2-footer__legal { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 14px; flex: 1 1 auto; }
.cd2-footer__legal strong { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.cd2-footer__legal-links { display: flex; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cd2-footer__legal-links li + li::before { content: "|"; margin: 0 14px; color: rgba(255, 255, 255, .35); }
.cd2-footer__legal-links a { font-size: 14px; color: rgba(255, 255, 255, .8); text-decoration: none; }
.cd2-footer__legal-links a:hover { color: #fff; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1280px) {
  .cd2-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cd2-footer__col { padding: 0 28px; }
  .cd2-footer__col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cd2-footer__col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 900px) {
  .cd2-footer { margin-bottom: 0; } /* la barra de navegación inferior móvil no existe en el markup */
  .cd2-footer__main::after { display: none; }
  .cd2-footer__features { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .cd2-footer__visit-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cd2-footer__sites li + li::before { margin: 0 10px; }
  .cd2-footer__bottom-row { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .cd2-footer__legal { align-items: center; }
  .cd2-footer__legal-links { justify-content: center; }
}
@media (max-width: 640px) {
  .cd2-footer__inner { padding: 0 16px; }
  .cd2-footer__main { padding: 32px 0; }
  .cd2-footer__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .cd2-footer__col, .cd2-footer__col:nth-child(even) { padding: 0; border-left: 0; }
  .cd2-footer__col + .cd2-footer__col { padding-top: 28px; border-top: 1px solid var(--ft-border); }
  .cd2-footer__title { font-size: 20px; margin-bottom: 20px; }
  .cd2-footer__logo { width: 200px; }
  .cd2-footer__social { gap: 14px; }
  .cd2-footer__social a { width: 48px; height: 48px; }
  .cd2-footer__search { height: 52px; padding-left: 14px; }
  .cd2-footer__search #btn__search_footer { padding: 0 18px; font-size: 15px; }
  .cd2-footer__sites li + li::before { display: none; }
  .cd2-footer__sites { gap: 10px; }
}

/* ==========================================================================
   cuponidad-v2 / components/support.css
   Páginas informativas (quiénes somos, cómo funciona, cómo comprar,
   preguntas frecuentes, promociona tu negocio, legal, privacidad).
   Real: resources/views/pages/support/*.blade.php + pages/support/lateral.blade.php
   Origen: resources/maqueta/assets/css/pages/support.css
   ========================================================================== */

.cd2-support {
  padding: 20px 0;
  font-family: var(--cd2-font-base);
}

/* Nav horizontal en píldoras (antes era una columna vertical fija a la
   izquierda — redundante con el sidebar de segmentos que ya se agregó a
   estas páginas). Con 7 pestañas no siempre entran: scroll horizontal en
   vez de wrappear. */
.cd2-support__menu {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--cd2-surface-alt);
  border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-pill);
  padding: 6px; margin-bottom: 20px;
}
.cd2-support__menu::-webkit-scrollbar { display: none; }
.cd2-support__menu a {
  flex: 0 0 auto; display: block;
  padding: 10px 18px;
  border-radius: var(--cd2-radius-pill);
  font-size: var(--cd2-fs-sm);
  font-weight: 600;
  color: var(--cd2-text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.cd2-support__menu a:hover { color: var(--cd2-title); }
.cd2-support__menu a.is-active {
  color: var(--cd2-text-invert);
  font-weight: 700;
  background: var(--cd2-primary);
}

.cd2-support__main { display: grid; gap: 20px; }

/* Encabezado de la página (kicker + título + bajada) ---------------------- */
.cd2-panel__hero { margin-bottom: 18px; }
.cd2-panel__kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: var(--cd2-fs-xs); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cd2-primary);
}
.cd2-panel__kicker i { display: block; width: 26px; height: 2px; background: var(--cd2-primary); }
.cd2-panel__title { font-size: var(--cd2-fs-2xl); color: var(--cd2-title); margin: 0 0 6px; font-weight: 700; }
.cd2-panel__subtitle { font-size: var(--cd2-fs-md); color: var(--cd2-text-soft); margin: 0; }

.cd2-panel {
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg);
  box-shadow: var(--cd2-shadow-sm);
  padding: 24px;
}

.cd2-support__aside .cd2-panel { padding: 20px; }
.cd2-support__aside-title {
  font-size: var(--cd2-fs-lg); font-weight: 700; color: var(--cd2-title); margin: 0 0 10px;
}
.cd2-support__aside-text { font-size: var(--cd2-fs-sm); color: var(--cd2-text); line-height: 1.6; }
.cd2-support__aside-text p { margin: 0 0 8px; }
.cd2-support__aside-text a { color: var(--cd2-primary); font-weight: 600; }

.cd2-prose { font-family: var(--cd2-font-base); }
.cd2-prose h1 { font-size: var(--cd2-fs-2xl); color: var(--cd2-title); margin: 0 0 8px; }
.cd2-prose h2 { font-size: var(--cd2-fs-lg); color: var(--cd2-title); margin: 22px 0 8px; }
.cd2-prose h3 { font-size: var(--cd2-fs-md); color: var(--cd2-title); margin: 16px 0 6px; }
.cd2-prose p, .cd2-prose li { font-size: var(--cd2-fs-sm); color: var(--cd2-text); line-height: 1.65; }
.cd2-prose img { max-width: 100%; height: auto; }
.cd2-prose ul { display: grid; gap: 6px; margin: 8px 0 14px; padding: 0; list-style: none; }
.cd2-prose ul li { position: relative; padding-left: 16px; }
.cd2-prose ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--cd2-primary); border-radius: var(--cd2-radius-pill);
}
.cd2-prose ol { counter-reset: cd2n; display: grid; gap: 8px; margin: 8px 0 14px; padding: 0; list-style: none; }
.cd2-prose ol li {
  counter-increment: cd2n; position: relative; padding-left: 26px; font-size: var(--cd2-fs-sm);
}
.cd2-prose ol li::before {
  content: counter(cd2n); position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: var(--cd2-text-invert);
  background: var(--cd2-primary); border-radius: var(--cd2-radius-pill);
}

/* Preguntas frecuentes ---------------------------------------------------- */
.cd2-faq__item { border-bottom: 1px solid var(--cd2-border-soft); }
.cd2-faq__q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 0; text-align: left; background: none; border: 0; cursor: pointer;
  font-size: var(--cd2-fs-md); font-weight: 600; color: var(--cd2-title);
}
.cd2-faq__q svg { margin-left: auto; color: var(--cd2-text-mute); transition: transform .18s ease; }
.cd2-faq__item.is-open .cd2-faq__q svg { transform: rotate(180deg); }
.cd2-faq__a { display: none; padding-bottom: 14px; font-size: var(--cd2-fs-sm); color: var(--cd2-text); }
.cd2-faq__item.is-open .cd2-faq__a { display: block; }

/* Tarjetas de pasos ("cómo funciona" / "cómo comprar") -------------------- */
.cd2-steps__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cd2-step__card {
  display: grid; gap: 8px; padding: 18px; text-align: center;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius);
}
.cd2-step__card .cd2-step__num {
  width: 34px; height: 34px; margin: 0 auto; display: grid; place-items: center;
  font-weight: 700; color: var(--cd2-text-invert);
  background: var(--cd2-primary); border-radius: var(--cd2-radius-pill);
}
.cd2-step__card h3 { font-size: var(--cd2-fs-md); margin: 0; }
.cd2-step__card p  { font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); margin: 0; }

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

/* Layout en modo "plain": sin panel blanco, cada bloque trae su propia tarjeta */
.cd2-panel--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* "Cómo funciona" (mockup): hero + pasos numerados ---------------------------- */
.cd2-how { --how-orange: #f15a24; --how-navy: #1f2a44; --how-text: #4a5568; display: grid; gap: 18px; }

.cd2-how__hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 46%); align-items: stretch;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: 18px;
  box-shadow: var(--cd2-shadow-sm); overflow: hidden; min-height: 176px;
}
.cd2-how__hero-text { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.cd2-how__hero-text .cd2-panel__kicker { margin-bottom: 6px; }
.cd2-how__hero-text .cd2-panel__title { font-size: 34px; margin: 0 0 8px; color: var(--how-navy); }
.cd2-how__hero-text .cd2-panel__subtitle { font-size: var(--cd2-fs-md); color: var(--how-text); max-width: 520px; line-height: 1.5; }
.cd2-how__hero-art {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #fff3ea 0%, #ffd9c2 55%, #ffc7a6 100%);
  border-radius: 0 18px 18px 120px / 0 18px 18px 90px;
}
.cd2-how__hero-art::before {
  content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 120px;
  background: var(--cd2-surface); transform: skewX(-12deg);
}
.cd2-how__hero-claim {
  position: absolute; left: 22%; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive; font-size: 19px; line-height: 1.25;
  color: var(--how-navy); font-weight: 600; text-align: center;
}
.cd2-how__phone { position: absolute; right: 12%; top: 50%; transform: translateY(-46%) rotate(6deg); filter: drop-shadow(0 12px 22px rgba(31, 42, 68, .22)); }
.cd2-how__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.cd2-how__blob--1 { width: 120px; height: 120px; right: -30px; bottom: -50px; background: rgba(241, 90, 36, .18); }
.cd2-how__blob--2 { width: 56px; height: 56px; right: 34%; bottom: 12px; background: rgba(255, 255, 255, .55); }

/* Pasos */
.cd2-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
/* .cd2-prose numera los <ol> con ::before y les da padding-left: hay que
   igualar esa especificidad (.cd2-prose ol li) para que no afecte a los pasos */
.cd2-prose .cd2-how__steps > .cd2-how__step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 0; counter-increment: none; }
.cd2-prose .cd2-how__steps > .cd2-how__step::before { content: none; display: none; }
.cd2-how__num { position: relative; display: flex; justify-content: center; padding-top: 14px; height: 100%; }
.cd2-how__num span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: linear-gradient(160deg, #ff7f2a, var(--how-orange)); color: #fff; font-size: 26px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(241, 90, 36, .32);
}
/* Conector vertical + chevron hacia el siguiente paso */
.cd2-how__step:not(:last-child) .cd2-how__num::before {
  content: ""; position: absolute; left: 50%; top: 70px; bottom: -18px; width: 2px; margin-left: -1px; background: var(--cd2-border);
}
.cd2-how__step:not(:last-child) .cd2-how__num::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 10px; height: 10px; margin-left: -5px;
  border-right: 2px solid #a0aec0; border-bottom: 2px solid #a0aec0; transform: rotate(45deg); background: var(--cd2-bg);
}
.cd2-how__card {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) 176px; gap: 22px; align-items: center;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: 18px;
  box-shadow: var(--cd2-shadow-sm); padding: 18px 22px 18px 18px;
}
.cd2-how__tile {
  width: 160px; height: 124px; border-radius: 14px; display: grid; place-items: center;
}
.cd2-how__tile--blue { background: linear-gradient(160deg, #eef3ff, #e3ebff); }
.cd2-how__tile--purple { background: linear-gradient(160deg, #f0ebff, #e6dcff); }
.cd2-how__body h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--how-navy); }
.cd2-how .cd2-how__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cd2-how .cd2-how__body ul li {
  position: relative; padding-left: 28px; font-size: var(--cd2-fs-md); line-height: 1.5; color: var(--how-text);
}
.cd2-how .cd2-how__body ul li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--how-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.cd2-how__body a { color: var(--how-navy); text-decoration: none; }
.cd2-how__body a:hover { color: var(--how-orange); }
.cd2-how__body strong { color: var(--how-navy); font-weight: 700; }
.cd2-how__perk {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-radius: 14px;
  font-size: var(--cd2-fs-md); line-height: 1.3;
}
.cd2-how__perk strong { font-weight: 700; }
.cd2-how__perk-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #fff; }
.cd2-how__perk-ico .cd2-ico, .cd2-how__perk-ico svg { width: 22px; height: 22px; }
.cd2-how__perk--orange { background: #fff1e8; color: #e35a1f; }
.cd2-how__perk--green  { background: #e8f8ef; color: #1f9d55; }
.cd2-how__perk--purple { background: #f0ebff; color: #6b4ff6; }
.cd2-how__perk--green .cd2-how__perk-ico { background: #1f9d55; color: #fff; border-radius: 12px; }
.cd2-how__perk--purple .cd2-how__perk-ico { background: #fff; color: #6b4ff6; }
.cd2-how__perk--orange .cd2-how__perk-ico { color: #e35a1f; }

@media (max-width: 1200px) {
  .cd2-how__card { grid-template-columns: 130px minmax(0, 1fr); }
  .cd2-how__tile { width: 130px; height: 104px; }
  .cd2-how__tile svg { width: 80px; height: 80px; }
  .cd2-how__perk { grid-column: 2; justify-self: start; }
}
@media (max-width: 768px) {
  .cd2-how__hero { grid-template-columns: 1fr; }
  .cd2-how__hero-art { min-height: 170px; border-radius: 0 0 18px 18px; }
  .cd2-how__hero-art::before { display: none; }
  .cd2-how__hero-text { padding: 20px; }
  .cd2-how__hero-text .cd2-panel__title { font-size: 26px; }
  .cd2-how__step { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .cd2-how__num span { width: 44px; height: 44px; font-size: 20px; }
  .cd2-how__step:not(:last-child) .cd2-how__num::before { top: 58px; }
  .cd2-how__card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .cd2-how__tile { width: 100%; height: 110px; }
  .cd2-how__perk { grid-column: 1; }
  .cd2-how__body h2 { font-size: 19px; }
}

/* Tarjeta "Publica tu Negocio" (aside de todas las páginas de ayuda) -------- */
.cd2-support__aside .cd2-publish {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 18px 22px; border-radius: 18px;
}
.cd2-publish__intro { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cd2-publish__ico {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f0fe; color: #2b6de0;
}
.cd2-publish__ico .cd2-ico { width: 28px; height: 28px; }
.cd2-support__aside .cd2-publish .cd2-support__aside-title { margin: 0 0 4px; font-size: var(--cd2-fs-lg); }
.cd2-publish__sub { margin: 0; font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); line-height: 1.4; }
.cd2-publish__contact {
  list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--cd2-border);
  display: grid; gap: 8px; align-self: stretch; align-content: center;
}
.cd2-support__aside .cd2-publish .cd2-publish__contact li {
  display: flex; align-items: center; gap: 10px; padding: 0;
  font-size: var(--cd2-fs-sm); color: var(--cd2-text);
}
.cd2-support__aside .cd2-publish .cd2-publish__contact li::before { content: none; }
.cd2-publish__contact .cd2-ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--cd2-title); }
.cd2-publish__contact--wa .cd2-ico { color: #25d366; }
.cd2-publish__cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--cd2-radius-pill);
  background: var(--cd2-primary); color: var(--cd2-text-invert) !important; font-size: var(--cd2-fs-md); font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 18px rgba(241, 90, 36, .28); transition: background-color .15s ease, transform .1s ease;
}
.cd2-publish__cta:hover { background: var(--cd2-primary-dark); color: var(--cd2-text-invert); text-decoration: none; }
.cd2-publish__cta:active { transform: translateY(1px); }
@media (max-width: 1100px) {
  .cd2-support__aside .cd2-publish { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cd2-publish__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .cd2-support__aside .cd2-publish { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .cd2-publish__contact { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--cd2-border); }
  .cd2-publish__cta { width: 100%; }
}

/* "Cómo comprar" (mockup): hero + video + 6 pasos + ayuda ----------------------- */
.cd2-buy { --buy-navy: #1f2a44; --buy-text: #4a5568; --buy-orange: #f15a24; display: grid; gap: 18px; }

.cd2-buy__hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: 18px;
  box-shadow: var(--cd2-shadow-sm); overflow: hidden;
}
.cd2-buy__hero-text { padding: 24px 28px 20px; }
.cd2-buy__hero-text .cd2-panel__kicker { margin-bottom: 6px; }
.cd2-buy__hero-text .cd2-panel__title { font-size: 34px; margin: 0 0 8px; color: var(--buy-navy); }
.cd2-buy__hero-text .cd2-panel__title em { font-style: normal; color: var(--buy-orange); }
.cd2-buy__hero-text .cd2-panel__subtitle { font-size: var(--cd2-fs-md); color: var(--buy-text); line-height: 1.5; max-width: 560px; }
.cd2-buy .cd2-buy__features {
  list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--cd2-border-soft);
  display: flex; flex-wrap: wrap; gap: 14px 28px;
}
.cd2-buy .cd2-buy__features li { display: flex; align-items: center; gap: 10px; padding: 0; }
.cd2-buy .cd2-buy__features li::before { content: none; }
.cd2-buy .cd2-buy__features li > span:last-child { display: flex; flex-direction: column; }
.cd2-buy .cd2-buy__features strong { font-size: var(--cd2-fs-sm); color: var(--buy-navy); font-weight: 700; }
.cd2-buy .cd2-buy__features small { font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }
.cd2-buy__feature-ico { width: 34px; height: 34px; border-radius: 50%; background: #fff1e8; color: var(--buy-orange); display: grid; place-items: center; flex: 0 0 auto; }
.cd2-buy__feature-ico .cd2-ico, .cd2-buy__feature-ico svg { width: 18px; height: 18px; }

.cd2-buy__hero-art {
  position: relative; overflow: hidden; min-height: 200px;
  background: linear-gradient(135deg, #e9f1ff 0%, #d9e7ff 50%, #ffe6d6 100%);
  border-radius: 0 18px 18px 140px / 0 18px 18px 100px;
}
.cd2-buy__float {
  position: absolute; display: grid; place-items: center; color: #fff; font-weight: 800;
  border-radius: 14px; box-shadow: 0 10px 22px rgba(31, 42, 68, .18);
}
.cd2-buy__float .cd2-ico { width: 26px; height: 26px; }
.cd2-buy__float--cart { left: 10%; top: 14%; width: 52px; height: 52px; background: #2b6de0; transform: rotate(-8deg); }
.cd2-buy__float--pct { left: 8%; bottom: 20%; width: 46px; height: 46px; font-size: 22px; background: var(--buy-orange); transform: rotate(8deg); }
.cd2-buy__float--ticket { right: 12%; top: 10%; width: 46px; height: 46px; background: #e91e8c; transform: rotate(12deg); }
.cd2-buy__bubble {
  position: absolute; right: 8%; bottom: 22%; padding: 12px 16px; border-radius: 16px 16px 16px 4px;
  background: #2b6de0; color: #fff; font-weight: 700; font-size: var(--cd2-fs-sm); line-height: 1.25; text-align: center;
  box-shadow: 0 10px 22px rgba(43, 109, 224, .3); transform: rotate(-4deg);
}
.cd2-buy__bag { position: absolute; border-radius: 50%; pointer-events: none; }
.cd2-buy__bag--1 { left: 40%; bottom: -60px; width: 160px; height: 160px; background: rgba(255, 255, 255, .45); }
.cd2-buy__bag--2 { left: 30%; top: -30px; width: 90px; height: 90px; background: rgba(43, 109, 224, .10); }

/* Video */
.cd2-buy__video {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center;
  background: linear-gradient(135deg, #151b2c 0%, #1f2a44 100%); border-radius: 18px; padding: 26px 30px; color: #fff;
  box-shadow: 0 14px 34px rgba(31, 42, 68, .22);
}
.cd2-buy__video-text h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.15; color: #fff; }
.cd2-buy__video-text p { margin: 0 0 26px; font-size: var(--cd2-fs-md); color: rgba(255, 255, 255, .8); max-width: 300px; }
.cd2-buy__channel { display: inline-flex; align-items: center; gap: 10px; font-size: var(--cd2-fs-sm); font-weight: 600; color: rgba(255, 255, 255, .9); }
.cd2-buy__channel img { width: 28px; height: 28px; border-radius: 50%; background: #fff; -o-object-fit: contain; object-fit: contain; padding: 3px; }
.cd2-buy__video-media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.cd2-buy__poster { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; opacity: .9; }
.cd2-buy__video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cd2-buy__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 52px; margin: -26px 0 0 -38px;
  display: grid; place-items: center; border: 0; border-radius: 14px; cursor: pointer;
  background: #ff0000; color: #fff; box-shadow: 0 10px 26px rgba(255, 0, 0, .35); transition: transform .15s ease;
}
.cd2-buy__play:hover { transform: scale(1.06); }
.cd2-buy__yt {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #fff !important; font-size: var(--cd2-fs-xs); font-weight: 600; text-decoration: none;
}
.cd2-buy__video.is-playing .cd2-buy__yt { display: none; }

/* Pasos */
.cd2-prose .cd2-buy__steps { --tone: var(--buy-orange); --tone-soft: #fff1e8; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cd2-prose .cd2-buy__steps > .cd2-buy__step {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; padding: 20px 20px 20px 22px;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: 18px; box-shadow: var(--cd2-shadow-sm); counter-increment: none;
}
.cd2-prose .cd2-buy__steps > .cd2-buy__step::before { content: none; display: none; }
.cd2-buy__step--purple { --tone: #6b4ff6; --tone-soft: #efeaff; }
.cd2-buy__step--orange { --tone: #f15a24; --tone-soft: #fff1e8; }
.cd2-buy__step--blue   { --tone: #2b6de0; --tone-soft: #e8f0fe; }
.cd2-buy__step--green  { --tone: #1f9d55; --tone-soft: #e6f7ee; }
.cd2-buy__step--yellow { --tone: #f5a800; --tone-soft: #fff6dc; }
.cd2-buy__step--pink   { --tone: #e91e8c; --tone-soft: #fdeaf5; }
.cd2-buy__step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cd2-buy__num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tone); color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 8px 18px rgba(31, 42, 68, .16);
}
.cd2-buy .cd2-buy__step-head h3 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--buy-navy); }
.cd2-buy__step-desc { margin: 0 0 10px; font-size: var(--cd2-fs-sm); line-height: 1.5; color: var(--buy-text); }
.cd2-buy .cd2-buy__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cd2-buy .cd2-buy__checks li { position: relative; padding-left: 24px; font-size: var(--cd2-fs-sm); line-height: 1.45; color: var(--buy-text); }
.cd2-buy .cd2-buy__checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.cd2-buy__cta {
  display: inline-flex; align-items: center; margin-top: 14px; padding: 10px 20px; border-radius: 10px;
  background: var(--tone); color: #fff !important; font-size: var(--cd2-fs-sm); font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 16px rgba(31, 42, 68, .16);
}
.cd2-buy__cta:hover { filter: brightness(.95); text-decoration: none; }

/* Mini-ilustraciones */
.cd2-buy__art { display: grid; place-items: center; align-self: stretch; border-radius: 14px; background: var(--tone-soft); padding: 12px; min-height: 190px; }
.cd2-buy__phone {
  width: 118px; padding: 12px 10px; border-radius: 18px; background: var(--buy-navy);
  display: grid; gap: 6px; box-shadow: 0 12px 24px rgba(31, 42, 68, .25);
}
.cd2-buy__phone > * { background: #fff; border-radius: 6px; }
.cd2-buy__phone-brand { padding: 6px 4px; text-align: center; font-size: 13px; font-weight: 800; color: var(--buy-orange); }
.cd2-buy__phone-brand span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--buy-orange); vertical-align: -1px; }
.cd2-buy__field { padding: 6px 7px; font-size: 8px; color: #94a3b8; background: #f3f6fb !important; }
.cd2-buy__btn { padding: 7px 10px; text-align: center; font-size: 10px; font-weight: 700; color: #fff !important; border-radius: 8px; }
.cd2-buy__btn--orange { background: var(--buy-orange) !important; }
.cd2-buy__btn--green { background: #1f9d55 !important; }
.cd2-buy__offer { width: 130px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 10px 22px rgba(31, 42, 68, .16); transform: rotate(-4deg); }
.cd2-buy__offer-img { position: relative; height: 70px; background: linear-gradient(135deg, #ee3124, #ff7f2a); }
.cd2-buy__badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 999px; background: #ee3124; color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.cd2-buy__offer-body { padding: 8px 10px 10px; display: grid; gap: 2px; }
.cd2-buy__offer-body small { font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: .04em; }
.cd2-buy__offer-body strong { font-size: 11px; line-height: 1.25; color: var(--buy-navy); }
.cd2-buy__offer-price { font-size: 12px; font-weight: 800; color: var(--buy-orange); }
.cd2-buy__offer-price del { font-size: 9px; font-weight: 400; color: #94a3b8; margin-left: 4px; }
.cd2-buy__panel { width: 130px; padding: 12px; border-radius: 12px; background: #fff; display: grid; gap: 8px; box-shadow: 0 10px 22px rgba(31, 42, 68, .12); }
.cd2-buy__panel small { font-size: 10px; font-weight: 600; color: var(--buy-text); }
.cd2-buy__stepper { display: flex; align-items: center; border: 1px solid var(--cd2-border); border-radius: 8px; overflow: hidden; }
.cd2-buy__stepper span { flex: 1; text-align: center; padding: 6px 0; font-size: 12px; color: var(--buy-navy); background: #f3f6fb; }
.cd2-buy__stepper b { flex: 1; text-align: center; font-size: 12px; color: var(--buy-navy); }
.cd2-buy__input { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border: 1px solid var(--cd2-border); border-radius: 8px; font-size: 10px; font-weight: 700; color: var(--buy-navy); }
.cd2-buy__input i { font-style: normal; width: 14px; height: 14px; border-radius: 50%; background: #e6ebf2; color: #64748b; display: grid; place-items: center; font-size: 10px; }
.cd2-buy__panel--pay { gap: 6px; }
.cd2-buy__pay { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; font-size: 9px; font-weight: 600; color: var(--buy-navy); }
.cd2-buy__pay.is-on { background: #e8f0fe; }
.cd2-buy__pay i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c5cedb; flex: 0 0 auto; }
.cd2-buy__pay.is-on i { border-color: #2b6de0; background: #2b6de0; box-shadow: inset 0 0 0 2px #fff; }
.cd2-buy__pay img { height: 14px; width: auto; flex: 0 0 auto; margin-left: auto; }
.cd2-buy__pay.is-on img { height: 12px; }
.cd2-buy__pay .cd2-ico { width: 14px; height: 14px; color: var(--buy-navy); }
.cd2-buy__pay span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd2-buy__phone--success { text-align: center; padding: 14px 10px; gap: 8px; }
.cd2-buy__phone--success > * { background: transparent; }
.cd2-buy__check-big { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; background: #1f9d55; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(31, 157, 85, .25); }
.cd2-buy__phone--success strong { font-size: 11px; color: #fff; }
.cd2-buy__phone--success small { font-size: 7.5px; line-height: 1.35; color: rgba(255, 255, 255, .75); }
.cd2-buy__phone--success .cd2-buy__btn { background: var(--buy-orange) !important; }

/* Ayuda */
.cd2-buy__help {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 18px 24px; background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: 18px; box-shadow: var(--cd2-shadow-sm);
}
.cd2-buy__help-intro { display: flex; align-items: center; gap: 14px; }
.cd2-buy__help-intro > div { display: flex; flex-direction: column; gap: 2px; }
.cd2-buy__help-intro strong { font-size: 18px; color: var(--buy-navy); }
.cd2-buy__help-intro small { font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); }
.cd2-buy__help-ico { width: 52px; height: 52px; border-radius: 50%; background: #e8f0fe; color: #2b6de0; display: grid; place-items: center; flex: 0 0 auto; }
.cd2-buy__help-ico .cd2-ico { width: 26px; height: 26px; }
.cd2-buy__help-item { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-left: 24px; border-left: 1px solid var(--cd2-border); }
.cd2-buy__help-item > span:last-child { display: flex; flex-direction: column; }
.cd2-buy__help-item small { font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }
.cd2-buy__help-item strong { font-size: var(--cd2-fs-md); color: var(--buy-navy); }
.cd2-buy__help-item:hover strong { color: var(--buy-orange); }
.cd2-buy__help-item-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.cd2-buy__help-item-ico .cd2-ico { width: 24px; height: 24px; }
.cd2-buy__help-item-ico--wa { background: #25d366; }
.cd2-buy__help-item-ico--mail { background: #2b6de0; }

@media (max-width: 1200px) {
  .cd2-prose .cd2-buy__steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cd2-buy__hero { grid-template-columns: 1fr; }
  .cd2-buy__hero-art { min-height: 170px; border-radius: 0 0 18px 18px; }
  .cd2-buy__hero-text { padding: 20px; }
  .cd2-buy__hero-text .cd2-panel__title { font-size: 28px; }
  .cd2-buy__video { grid-template-columns: 1fr; padding: 20px; }
  .cd2-buy__video-text h2 { font-size: 20px; }
  .cd2-buy__video-text p { margin-bottom: 14px; }
  .cd2-prose .cd2-buy__steps > .cd2-buy__step { grid-template-columns: 1fr; padding: 16px; }
  .cd2-buy__art { min-height: 160px; }
  .cd2-buy__help { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .cd2-buy__help-item { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--cd2-border-soft); }
}

/* ==========================================================================
   cuponidad-v2 / components/float-nav.css
   Nuevo: WhatsApp flotante + volver arriba + barra inferior móvil.
   Real: resources/views/components/globals/float-nav.blade.php (nuevo)
   Origen visual: resources/maqueta/assets/css/global/side-btns.css
   ========================================================================== */

.cd2-float__whatsapp {
  display: none; /* solo en móvil (ver media query de abajo) */
  position: fixed; left: 18px; bottom: 18px; z-index: var(--cd2-z-float);
  width: 52px; height: 52px; place-items: center;
  background: var(--cd2-whatsapp);
  border-radius: var(--cd2-radius-pill); box-shadow: var(--cd2-shadow-lg);
}

.cd2-float__top {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--cd2-z-float);
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--cd2-title); background: var(--cd2-surface);
  border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius-pill);
  box-shadow: var(--cd2-shadow);
}
.cd2-float__top svg { transform: rotate(0deg); }

.cd2-nav__mobile { display: none; }

@media (max-width: 768px) {
  .cd2-float__whatsapp { display: grid; bottom: 14px; width: 46px; height: 46px; }
  /* Ficha de oferta: la barra fija de compra (.sidebar__mobile, ~56px) ocupa el borde */
  body:has(.sidebar__mobile:not([style*="display: none"])) .cd2-float__whatsapp { bottom: 72px; }
  body:has(.sidebar__mobile:not([style*="display: none"])) .float_suscription__icon { bottom: 130px !important; }
  /* Sobre flotante de suscripción (pages con .float_scp_btn; se muestra a <=414px
     desde components/section.scss): va apilado encima del WhatsApp, no encima
     literalmente. Centros alineados (52px de ancho vs 46px). */
  .float_suscription__icon { left: 18px !important; width: 46px !important; height: 46px !important; bottom: 72px !important; }
  .float_suscription__icon svg { width: 24px; height: 24px; }
  .cd2-float__top { display: none; }

  .cd2-nav__mobile {
    position: fixed; inset: auto 0 0 0; z-index: var(--cd2-z-float);
    height: var(--cd2-mobile-nav-h);
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--cd2-surface); border-top: 1px solid var(--cd2-border);
    font-family: var(--cd2-font-base);
  }
  .cd2-nav__mobile a {
    display: grid; place-items: center; gap: 2px;
    font-size: 10px; color: var(--cd2-text-soft); text-decoration: none;
  }
  .cd2-nav__mobile a svg { width: 21px; height: 21px; }
  .cd2-nav__mobile a.is-active { color: var(--cd2-primary); font-weight: 700; }
}

/* ==========================================================================
   cuponidad-v2 / components/offer-card.css
   Reskin de la tarjeta de oferta y su grilla (misma estructura/selectores).
   Real: resources/views/components/thumbnails.blade.php
         resources/views/components/section.blade.php
   Usado en: home, category, section, sectiongroup, search (todas usan
   x-section / x-thumbnails), así que este único archivo mejora varias
   páginas a la vez.
   Origen visual: resources/maqueta/assets/css/components/offer-card.css
   ========================================================================== */

.container__section .wrapper__section {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.container__section .section__title {
  font-size: 18px; font-weight: 700; color: var(--cd2-title);
  font-family: var(--cd2-font-base);
}
.container__section .section__title::after { content: none; }
.container__section .section__see_more {
  font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-primary);
  text-decoration: none;
}
.container__section .section__see_more::after { border-color: var(--cd2-primary); }

/* Título de resultados de búsqueda (pages/search.blade.php) */
.content-wrapper > .wrapper__section {
  margin: 20px 0 14px; padding: 0;
}
.content-wrapper > .wrapper__section h4.section {
  font-size: var(--cd2-fs-xl); font-weight: 700; color: var(--cd2-title);
  font-family: var(--cd2-font-base); margin: 0;
}

/* Grilla de tarjetas ---------------------------------------------------- */
.wrapper__list_all {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

/* Tarjeta ---------------------------------------------------------------- */
.container__thumbnail {
  width: auto; max-width: none;
  display: flex; flex-direction: column;
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border);
  border-radius: 12px;
  overflow: hidden;
  /* contexto de apilamiento propio: los z-index internos (badge, overlay) no
     deben pintarse sobre el header sticky al hacer scroll */
  isolation: isolate;
  transition: box-shadow .18s ease, transform .18s ease;
  font-family: var(--cd2-font-base);
}
.container__thumbnail:hover { box-shadow: var(--cd2-shadow); transform: translateY(-2px); }
.container__thumbnail > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }

.container__thumbnail .thumbnail__figure {
  position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--cd2-chip); overflow: hidden;
  flex: 0 0 auto; /* el <a> padre es flex-column con alturas igualadas: sin esto el figure se encoge y pierde el 16/9 */
}
/* La imagen va en absoluto: si fluye dentro con height:100% sobre alto auto,
   su alto natural estira la caja y el aspect-ratio del figure deja de mandar
   (se veía con la foto a proporción propia en mobile). */
.container__thumbnail .thumbnail__figure picture,
.container__thumbnail .thumbnail__figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block;
}
.container__thumbnail .thumbnail__more_details {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(47, 53, 79, .55); opacity: 0; transition: opacity .18s ease;
}
.container__thumbnail:hover .thumbnail__more_details { opacity: 1; }
.container__thumbnail .thumbnail__more_details_text {
  padding: 6px 14px; font-size: var(--cd2-fs-xs); font-weight: 600;
  color: var(--cd2-text-invert); border: 1px solid var(--cd2-text-invert);
  border-radius: var(--cd2-radius-pill);
}
.container__thumbnail .logo-promocion {
  position: absolute; left: 8px; bottom: 8px;
  width: 34px; height: 34px; border-radius: var(--cd2-radius-sm);
  background-color: var(--cd2-surface); background-size: contain; background-repeat: no-repeat; background-position: center;
  box-shadow: var(--cd2-shadow-sm);
}

/* Badge de descuento / mejor precio (mockup) */
.container__thumbnail .cd2-offer__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 5px 10px; font-size: var(--cd2-fs-xs); font-weight: 700; line-height: 1;
  color: var(--cd2-text-invert); background: var(--cd2-price); border-radius: var(--cd2-radius-pill);
}
.container__thumbnail .cd2-offer__badge--best { background: var(--cd2-success); }

.container__thumbnail .thumbnail__figcaption {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1 1 auto;
}
.container__thumbnail .thumbnail__title {
  font-size: 14px; font-weight: 700; color: var(--cd2-brand-blue); line-height: 1.3;
  /* el CSS viejo (pages/components/thumbnails.scss) fija height/max-height al h2:
     con 14px y 2 líneas cortaba a media letra */
  margin: 0; padding: 0; height: auto !important; max-height: none !important; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.container__thumbnail .thumbnail__place {
  font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); margin: 0; min-height: 1.4em;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4;
}
.container__thumbnail .thumbnail__place .fa { margin-right: 3px; }
.container__thumbnail .thumbnail__place .fa { color: var(--cd2-text-mute); }
.container__thumbnail .thumbnail__provider {
  font-size: var(--cd2-fs-sm); color: var(--cd2-brand-blue); margin: 0;
  text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.container__thumbnail .thumbnail__price {
  margin: auto 0 0; padding-top: 8px; font-size: var(--cd2-fs-xl); font-weight: 800; color: var(--cd2-primary);
  align-items: center; letter-spacing: -.01em;
}
.container__thumbnail .cd2-offer__actions { display: flex; align-items: center; gap: 6px; }
/* Chips de modalidad (x-offer-tags): Recojo / Local / Delivery */
/* Fila del precio: el precio nunca se parte; los chips van en UNA fila y, si no
   caben al lado, bajan completos a una segunda línea alineados a la derecha. */
.container__thumbnail .thumbnail__price { flex-wrap: wrap; row-gap: 6px; align-items: center; }
.container__thumbnail .cd2-offer__amount { flex: 0 0 auto; white-space: nowrap; }
.container__thumbnail .cd2-offer__actions { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
/* Desktop: chips solo con ícono (el title hace de tooltip), siempre en la misma
   línea que el precio. En mobile (tarjeta a ancho completo) llevan texto. */
@media (min-width: 901px) {
  .container__thumbnail .cd2-tag { padding: 0; width: 26px; height: 26px; justify-content: center; }
  .container__thumbnail .cd2-tag span { display: none; }
  .container__thumbnail .cd2-tag svg { width: 15px; height: 15px; }
  .container__thumbnail .cd2-offer__actions { gap: 6px; }
}
.cd2-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px;
  border-radius: var(--cd2-radius-pill); font-size: var(--cd2-fs-xxs); font-weight: 700; line-height: 1;
  letter-spacing: .01em; white-space: nowrap; font-family: var(--cd2-font-base);
}
.cd2-tag svg { width: 13px; height: 13px; flex: 0 0 auto; }
.cd2-tag--recojo     { background: var(--cd2-g5-bg); color: var(--cd2-g5-ink); }
.cd2-tag--local      { background: var(--cd2-g3-bg); color: var(--cd2-g3-ink); }
.cd2-tag--delivery,
.cd2-tag--delivery24 { background: var(--cd2-primary-soft); color: var(--cd2-primary); }

@media (max-width: 1200px) {
  .wrapper__list_all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* "Mobile" en el resto del sitio (footer, destacado) corta en 900px: acá
   también, directo a 1 tarjeta por fila — nada de una fila intermedia de 2
   columnas que deje las tarjetas angostas. */
@media (max-width: 900px) {
  .wrapper__list_all { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  /* pages/components/section.scss trae ".wrapper__list_all
     .container__thumbnail{max-width:48.5% !important}" (y variantes por
     ancho de pantalla) pensado para su propio grid de 2 columnas — con la
     tarjeta a ancho completo hay que neutralizarlo o queda a mitad de ancho. */
  .wrapper__list_all .container__thumbnail { width: 100% !important; max-width: none !important; }
  .container__thumbnail .thumbnail__price { font-size: var(--cd2-fs-lg); }
  /* Imagen más baja en mobile: la tarjeta va a ancho completo y con 16/9 la
     foto ocupaba media pantalla. object-fit:cover (regla base) recorta sin
     deformar. */
  .container__thumbnail .thumbnail__figure { aspect-ratio: 5 / 2; }
}

/* Filtro de distrito/negocio/zona (utils/filter.js) oculta tarjetas con la
   clase .d-none (utilidad de Bootstrap, que estas páginas ya no cargan). La
   regla base de arriba fija display:flex y ganaba; se restituye acá. */
.container__thumbnail.d-none { display: none !important; }

/* ==========================================================================
   cuponidad-v2 / components/featured.css
   Reskin del bloque destacado del home (misma estructura/selectores, swiper
   real intacto). Real: resources/views/components/featured.blade.php
                        resources/views/components/slider/featured-home.blade.php
                        resources/views/components/slider/item/item-featured-home.blade.php
   Origen visual: resources/maqueta/assets/css/components/featured.css
   ========================================================================== */

/* Destacado del home (mockup): imagen a la izquierda, panel degradado durazno
   a la derecha con corte diagonal, etiqueta del comercio, título, descripción,
   precio + precio anterior y botón "Ver oferta". Swiper real intacto.
   Real: resources/views/pages/home.blade.php ".cd2-featured-home" */
.cd2-featured-home { margin-bottom: 24px; isolation: isolate; /* z-index internos (flechas, dots, badge) no pasan sobre el header sticky */ }

.slider__featured_home {
  border-radius: var(--cd2-radius-lg); overflow: hidden; border: 1px solid var(--cd2-border);
  background: var(--cd2-surface);
}
.slider__featured_home .swiper-pagination {
  /* Abajo a la izquierda del panel derecho, como el mockup */
  position: absolute; top: auto; bottom: 16px; left: calc(55% + 28px); right: auto;
  width: auto; margin: 0; padding: 0; text-align: left; z-index: 3;
}
.slider__featured_home .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 3px !important; background: #f3c5ad; opacity: 1; }
.slider__featured_home .swiper-pagination-bullet-active { background: var(--cd2-primary); }
.slider__featured_home .swiper-button-prev,
.slider__featured_home .swiper-button-next {
  top: 50%; margin-top: -20px;
  width: 40px; height: 40px;
  color: var(--cd2-title); background: rgba(255, 255, 255, .95);
  border-radius: var(--cd2-radius-pill); box-shadow: var(--cd2-shadow); z-index: 4;
}
.slider__featured_home .swiper-button-prev { left: 16px; }
.slider__featured_home .swiper-button-next { right: 16px; }
.slider__featured_home .swiper-button-prev::after,
.slider__featured_home .swiper-button-next::after { font-size: 14px; font-weight: 700; }

.container__featured_home { font-family: var(--cd2-font-base); }
.container__featured_home a {
  /* pages/components/slider/featured-home.scss trae "a{display:block;
     max-height:346px}" — hay que neutralizar max-height explícitamente. */
  display: grid; grid-template-columns: minmax(0, 55%) minmax(0, 1fr);
  align-items: stretch; text-decoration: none; max-height: none; height: auto;
}
.container__featured_home .featured_home__media { position: relative; height: 300px; background: var(--cd2-chip); overflow: hidden; }
.container__featured_home .featured_home__media picture,
.container__featured_home .featured_home__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; -o-object-fit: cover; object-fit: cover; display: block; }
.container__featured_home .featured_home__discount {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; font-size: var(--cd2-fs-xs); font-weight: 700; letter-spacing: .2px; text-transform: uppercase;
  color: var(--cd2-text-invert); background: var(--cd2-price); border-radius: var(--cd2-radius-pill);
}
.container__featured_home .logo-promocion {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--cd2-radius-sm);
  background-color: var(--cd2-surface); background-size: contain; background-repeat: no-repeat; background-position: center;
  box-shadow: var(--cd2-shadow-sm);
}

.container__featured_home .featured_home__description {
  /* neutraliza position:absolute + el degradado azul de featured-home.scss */
  position: relative; inset: auto; z-index: 1;
  background: linear-gradient(135deg, #fff6ef 0%, #ffe9db 100%);
  padding: 22px 32px 40px 28px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 300px;
}
/* Corte diagonal que monta sobre la imagen (mockup) */
.container__featured_home .featured_home__description::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -56px; width: 90px;
  background: linear-gradient(135deg, #fff6ef 0%, #ffefe3 100%);
  transform: skewX(-9deg); pointer-events: none;
}
.container__featured_home .featured_home__description > * { position: relative; }
/* featured-home.scss pinta título/marca en blanco con el mismo anidamiento
   (3 clases) — hay que igualar esa especificidad. */
.container__featured_home .featured_home__description .featured_home__brand {
  font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-primary); margin: 0; text-decoration: none;
}
.container__featured_home .featured_home__description .featured_home__title {
  font-size: 24px; color: var(--cd2-title); margin: 0; line-height: 1.2; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.container__featured_home .featured_home__desc {
  font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.container__featured_home .featured_home__description .wrapper__featured_home__price {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 10px; flex-wrap: wrap;
}
.container__featured_home .featured_home__description .wrapper__featured_home__price .featured_home__price {
  font-size: 30px; font-weight: 800; line-height: 1; color: var(--cd2-primary); letter-spacing: -.01em;
}
.container__featured_home .featured_home__price_original { font-size: var(--cd2-fs-md); line-height: 1; color: var(--cd2-text-mute); }
.container__featured_home .featured_home__description .wrapper__featured_home__price .featured_home__show_more {
  margin-left: auto; padding: 11px 22px; font-size: var(--cd2-fs-sm); font-weight: 700; line-height: 1.2;
  height: auto; max-width: none; width: auto; white-space: nowrap; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cd2-text-invert); background: var(--cd2-primary); border-radius: var(--cd2-radius-pill);
  box-shadow: 0 6px 16px rgba(241, 90, 36, .28);
}

/* Slider destacado de category/section/sectiongroup (distinto del de home,
   #slider_featured es reemplazado por AJAX en utils/filter.js al filtrar).
   Mismo diseño que el destacado del home: imagen 55% | panel degradado con
   corte diagonal, etiqueta del comercio, título, descripción, precio +
   tachado y "Ver oferta". El CSS viejo (components/slider/featured.scss)
   traía imagen sin límite de alto y layout en row-reverse; todo neutralizado. */
.container__slider_featured {
  border-radius: var(--cd2-radius-lg); overflow: hidden; margin-bottom: 24px;
  border: 1px solid var(--cd2-border); background: var(--cd2-surface); position: relative; isolation: isolate;
}
.slider__featured .swiper-pagination {
  position: absolute; top: auto; bottom: 16px; left: calc(55% + 28px); right: auto;
  width: auto; margin: 0; padding: 0; text-align: left; z-index: 3;
}
.slider__featured .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 3px !important; background: #f3c5ad; opacity: 1; }
.slider__featured .swiper-pagination-bullet-active { background: var(--cd2-primary); }
.slider__featured .swiper-button-prev,
.slider__featured .swiper-button-next {
  top: 50%; margin-top: -20px;
  width: 40px; height: 40px;
  color: var(--cd2-title); background: rgba(255, 255, 255, .95);
  border-radius: var(--cd2-radius-pill); box-shadow: var(--cd2-shadow); z-index: 4;
}
.slider__featured .swiper-button-prev { left: 16px; }
.slider__featured .swiper-button-next { right: 16px; }
.slider__featured .swiper-button-prev::after,
.slider__featured .swiper-button-next::after { font-size: 14px; font-weight: 700; }

/* featured.scss trae "padding: 16px 32px" y una imagen de fondo en el
   CONTENEDOR RAÍZ (no en el <a>) — eso era el hueco entre la imagen y el borde. */
.container__featured_item { font-family: var(--cd2-font-base); background: none !important; padding: 0 !important; }
.container__featured_item a {
  display: grid !important; flex-direction: row !important;
  grid-template-columns: minmax(0, 55%) minmax(0, 1fr);
  align-items: stretch; text-decoration: none; cursor: pointer !important;
  background-image: none !important; padding: 0 !important; height: auto;
}
.container__featured_item .featured_item__sello {
  position: relative; height: 300px; min-height: 0; background: var(--cd2-chip);
  border-radius: 0; overflow: hidden;
}
.container__featured_item picture,
.container__featured_item img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; -o-object-fit: cover; object-fit: cover; display: block; margin-bottom: 0 !important;
}
.container__featured_item .featured_item__discount {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; font-size: var(--cd2-fs-xs); font-weight: 700; letter-spacing: .2px; text-transform: uppercase;
  color: var(--cd2-text-invert); background: var(--cd2-price); border-radius: var(--cd2-radius-pill);
}
.container__featured_item .logo-promocion {
  position: absolute; right: 12px; bottom: 12px; left: auto; top: auto; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--cd2-radius-sm);
  background-color: var(--cd2-surface); background-size: contain; background-repeat: no-repeat; background-position: center;
  box-shadow: var(--cd2-shadow-sm);
}

.container__featured_item .featured_item__description {
  margin: 0 !important; max-width: none !important; width: auto !important;
  position: relative; z-index: 1; min-height: 300px;
  background: linear-gradient(135deg, #fff6ef 0%, #ffe9db 100%);
  padding: 22px 32px 40px 28px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.container__featured_item .featured_item__description::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -56px; width: 90px;
  background: linear-gradient(135deg, #fff6ef 0%, #ffefe3 100%);
  transform: skewX(-9deg); pointer-events: none;
}
.container__featured_item .featured_item__description > * { position: relative; }
.container__featured_item .featured_item__brand {
  font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-primary); margin: 0; text-decoration: none;
}
.container__featured_item .featured_item__title {
  font-size: 24px; color: var(--cd2-title); margin: 0; line-height: 1.2; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.container__featured_item .featured_item__desc {
  font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.container__featured_item .featured_item__price {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 10px; flex-wrap: wrap;
}
.container__featured_item .featured_item__price_now { font-size: 30px; font-weight: 800; line-height: 1; color: var(--cd2-primary); letter-spacing: -.01em; }
.container__featured_item .featured_item__price_original { font-size: var(--cd2-fs-md); line-height: 1; color: var(--cd2-text-mute); }
.container__featured_item .featured_item__price .featured_item__show_more {
  margin-left: auto; padding: 11px 22px; font-size: var(--cd2-fs-sm); font-weight: 700; line-height: 1.2;
  height: auto; width: auto; white-space: nowrap; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cd2-text-invert); background: var(--cd2-primary); border: 0; border-radius: var(--cd2-radius-pill);
  box-shadow: 0 6px 16px rgba(241, 90, 36, .28);
}

@media (max-width: 900px) {
  .container__featured_home a,
  .container__featured_item a { grid-template-columns: minmax(0, 1fr) !important; }
  /* Más compacto en mobile: menos alto de imagen, menos padding/gap. */
  .container__featured_home .featured_home__media,
  .container__featured_item .featured_item__sello { height: 200px; }
  .container__featured_home .featured_home__description,
  .container__featured_item .featured_item__description { min-height: 0; }
  .container__featured_item .featured_item__description::before { display: none; }
  .container__featured_home .featured_home__description,
  .container__featured_item .featured_item__description { padding: 12px 14px; gap: 4px; }
  .container__featured_home .featured_home__description .featured_home__title,
  .container__featured_item .featured_item__title { font-size: var(--cd2-fs-lg); line-height: 1.2; }
  .container__featured_home .featured_home__desc,
  .container__featured_item .featured_item__desc { font-size: var(--cd2-fs-xs); }
  .container__featured_home .wrapper__featured_home__price,
  .container__featured_item .featured_item__price { margin-top: 2px; }
  .container__featured_home .featured_home__description .wrapper__featured_home__price .featured_home__price,
  .container__featured_item .featured_item__price_now { font-size: 22px; }
  .container__featured_home .featured_home__description .wrapper__featured_home__price .featured_home__show_more,
  .container__featured_item .featured_item__show_more { margin-left: 0; padding: 9px 16px; }
  .slider__featured_home .swiper-button-prev,
  .slider__featured_home .swiper-button-next,
  .slider__featured .swiper-button-prev,
  .slider__featured .swiper-button-next { display: none; }
  /* La paginación asumía el layout de 2 columnas (dots bajo la descripción,
     desplazados 42%+28px); apilado en 1 columna hay que centrarla a todo el
     ancho, bajo el precio/botón (mismo criterio que en desktop: alineada al
     borde inferior de toda la tarjeta). */
  .slider__featured_home .swiper-pagination,
  .slider__featured .swiper-pagination {
    left: 14px; right: 14px; bottom: 8px; text-align: center;
  }
  .container__featured_home .featured_home__description::before { display: none; }
  .container__featured_home .featured_home__description { padding-bottom: 28px; }
}

/* ==========================================================================
   cuponidad-v2 / components/filters.css
   Reskin de la barra de filtros (misma estructura/selectores — utils/filter.js
   transforma los <select> en widgets .select-selected/.select-items en
   tiempo de ejecución, así que no se toca el Blade).
   Real: resources/views/components/filter.blade.php
         resources/js/utils/filter.js
   Origen visual: resources/maqueta/assets/css/components/filters.css
   ========================================================================== */

.container__filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px; margin-bottom: 20px;
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius);
  font-family: var(--cd2-font-base);
}
.container__filter h3 {
  font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-title);
  margin: 0; flex: 0 0 auto;
}

.container__filter .custom-select {
  position: relative; min-width: 170px;
}
.container__filter .custom-select select { display: none; }
.container__filter .custom-select > i.fa,
.container__filter .custom-select > i[class*="fa-"] {
  display: none; /* el ícono de FontAwesome original queda oculto: el widget ya tiene su propia flecha */
}

.container__filter .select-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 38px; padding: 0 12px;
  font-size: var(--cd2-fs-sm); color: var(--cd2-title);
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius-sm);
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.container__filter .select-selected:hover { border-color: var(--cd2-primary-border); }
.container__filter .select-selected::after {
  /* El CSS viejo (resources/css/components/filter.scss) define este mismo
     ::after como flecha absoluta con background-image propio — hay que
     neutralizar cada propiedad suya explícitamente, no solo las nuevas,
     porque el cascade las resuelve por propiedad, no por bloque. */
  content: ""; position: static; flex: 0 0 auto;
  width: 7px; height: 7px; margin-left: 6px; top: auto; left: auto;
  background: none;
  border: 0; border-right: 2px solid var(--cd2-text-mute); border-bottom: 2px solid var(--cd2-text-mute);
  transform: rotate(45deg); transition: transform .18s ease;
}
.container__filter .select-selected.select-arrow-active { color: var(--cd2-primary); border-color: var(--cd2-primary); background: var(--cd2-primary-soft); }
.container__filter .select-selected.select-arrow-active::after { transform: rotate(-135deg); border-color: var(--cd2-primary); background: none; }

.container__filter .select-items {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 100%; max-height: 280px; overflow-y: auto;
  padding: 6px; background: var(--cd2-surface);
  border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius);
  box-shadow: var(--cd2-shadow-lg);
}
.container__filter .select-items.select-hide { display: none; }
.container__filter .select-items div {
  padding: 7px 10px; border-radius: var(--cd2-radius-sm);
  font-size: var(--cd2-fs-sm); color: var(--cd2-text); cursor: pointer; white-space: nowrap;
}
.container__filter .select-items div:hover,
.container__filter .select-items div.same-as-selected { background: var(--cd2-surface-alt); color: var(--cd2-primary); }

/* Barra de filtros móvil ------------------------------------------------- */
.container__filter__mobile {
  display: none; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 16px;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius);
  font-family: var(--cd2-font-base);
}
.container__filter__mobile .mobile-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--cd2-fs-sm); font-weight: 600; color: var(--cd2-title); text-decoration: none;
}
.container__filter__mobile .mobile-order-btn { position: relative; margin-left: auto; }
.container__filter__mobile select.mobile_order,
.container__filter__mobile select.district_mobile {
  height: 34px; padding: 0 10px; font-size: var(--cd2-fs-xs);
  border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius-sm); color: var(--cd2-title);
}
.container__filter__mobile .custom-select { border: 0 !important; background: none !important; padding: 0 !important; height: auto !important; }
.container__filter__mobile .custom-select > i { display: none; }
.container__filter__mobile .select-selected {
  padding: 0 !important; font-size: var(--cd2-fs-xs) !important; color: var(--cd2-title) !important;
}
.container__filter__mobile .select-items {
  border-radius: var(--cd2-radius) !important; background: var(--cd2-surface) !important;
  border: 1px solid var(--cd2-border); box-shadow: var(--cd2-shadow-lg);
}
.container__filter__mobile .select-items div {
  padding: 8px 10px !important; font-size: var(--cd2-fs-sm);
}
.container__filter__mobile .select-items div:hover,
.container__filter__mobile .same-as-selected { background: var(--cd2-surface-alt) !important; color: var(--cd2-primary); }

/* Modal de filtros mobile (Bootstrap #left_modal_sm) --------------------- */
#left_modal_sm .modal-content { border-radius: var(--cd2-radius-lg); border: 0; font-family: var(--cd2-font-base); }
#left_modal_sm .modal-title { font-size: var(--cd2-fs-md); color: var(--cd2-title); font-weight: 700; }
#left_modal_sm .tt-collapse { border-bottom: 1px solid var(--cd2-border-soft); }
#left_modal_sm .tt-collapse-title {
  padding: 12px 0; margin: 0; font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-title); cursor: pointer;
}
#left_modal_sm .tt-list-row { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
#left_modal_sm .tt-list-row li { font-size: var(--cd2-fs-sm); color: var(--cd2-text); display: flex; align-items: center; gap: 8px; padding: 4px 0; }
#left_modal_sm .tt-list-row input[type="radio"] { accent-color: var(--cd2-primary); }
#left_modal_sm .modal__categories { color: var(--cd2-text); text-decoration: none; }
#left_modal_sm .modal__categories.modal__active,
#left_modal_sm .modal__categories:hover { color: var(--cd2-primary); font-weight: 600; }

/* IMPORTANTE: utils/filter.js decide qué <select> recibe id="order_filter"/
   "district_filter" con el breakpoint window.width() > 480 (no 768, el que
   usamos en el resto de cuponidad-v2) — hay que igualar exactamente ese
   punto de corte o el widget visible dejaría de estar conectado al que
   dispara el AJAX de ordenar/filtrar. */
@media (max-width: 480px) {
  .container__filter { display: none; }
  .container__filter__mobile { display: flex; }
}

/* ==========================================================================
   cuponidad-v2 / components/breadcrumb.css
   Real: resources/views/pages/category.blade.php ".tt-breadcrumb"
         resources/views/pages/section.blade.php  ".tt-breadcrumb"
   Origen visual: resources/maqueta/assets/css/components/breadcrumb.css
   ========================================================================== */

/* pages/sellos.scss trae ".tt-breadcrumb { display:none }" a propósito
   (antes solo se mostraba ≤480px); en el nuevo diseño se muestra siempre. */
.tt-breadcrumb { display: block; padding: 14px 0 6px; font-family: var(--cd2-font-base); }
.tt-breadcrumb .container { padding: 0; max-width: none; }
.tt-breadcrumb ul {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
  font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft);
}
.tt-breadcrumb li { display: flex; align-items: center; gap: 6px; }
/* pages/sellos.scss ya agrega un separador "/" con ::before en
   li:not(:first-child) dentro de su media query (≤480px) — reutilizamos
   ese mismo selector y lo neutralizamos/redefinimos en vez de sumar un
   ::after propio, que duplicaría el separador en pantallas chicas. */
.tt-breadcrumb li:not(:first-child)::before {
  content: "/"; position: static; left: auto; top: auto; display: inline;
  color: var(--cd2-text-mute);
}
.tt-breadcrumb a { color: var(--cd2-text-soft); text-decoration: none; }
.tt-breadcrumb a:hover { color: var(--cd2-primary); }
.tt-breadcrumb li[style*="font-weight"] { color: var(--cd2-title); }

/* Banner de segmento/categoría (mismo componente que la maqueta ya usa) -- */
.banner__segment { border-radius: var(--cd2-radius-lg); overflow: hidden; display: block; margin: 0 0 4px; }
.banner__segment img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  .tt-breadcrumb { padding: 10px 0 4px; }
}

/* Mobile: migas más compactas (en la ficha de oferta el último tramo es el
   título completo y ocupaba dos líneas grandes). */
@media (max-width: 768px) {
  .tt-breadcrumb { padding: 8px 0 2px; }
  .tt-breadcrumb ul, .tt-breadcrumb li, .tt-breadcrumb li a { font-size: var(--cd2-fs-xxs) !important; line-height: 1.3; }
  .tt-breadcrumb ul { flex-wrap: wrap; row-gap: 0; }
  .tt-breadcrumb li:last-child { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tt-breadcrumb { padding-bottom: 8px; }
}

/* ==========================================================================
   cuponidad-v2 / components/product-detail.css
   Reskin del detalle de oferta (galería + info + tabs + modal de compra).
   Real: resources/views/components/product-description.blade.php
         resources/views/components/slider/thumbs-gallery.blade.php
         resources/views/components/tabs.blade.php
         resources/views/components/modal/buy.blade.php
   IMPORTANTE: ".container__main_product", ".wrapper__product",
   ".product__description" y ".product__action" también se reutilizan en
   master.blade.php dentro de ".sidebar__mobile" (la barra fija de compra
   mobile) — todo lo de acá va scopeado a ".content-wrapper" para no
   afectar esa barra, que se trata aparte al final de este archivo.
   Origen visual: resources/maqueta/assets/css/components/gallery.css,
                  components/tabs.css, pages/internal.css
   ========================================================================== */

/* Contenedor blanco único: envuelve galería+info y las tabs, como la
   referencia (nuevo, resources/views/pages/internal.blade.php ".cd2-product-panel"). */
.cd2-product-panel {
  background: var(--cd2-surface); border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg); box-shadow: var(--cd2-shadow-sm);
  padding: 16px; margin-bottom: 8px;
}

.content-wrapper .container__main_product {
  display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 1fr); gap: 12px;
  margin-bottom: 24px; font-family: var(--cd2-font-base);
}

/* Galería: imagen principal a su proporción natural (sin recorte) y miniaturas en
   fila debajo. thumbs-gallery.scss / pages/internal.css (viejos) acotan ancho y
   alto del contenedor, slider, slide, imagen y miniaturas: se anulan. */
.content-wrapper .container__swiper__main {
  position: relative; max-width: none !important; max-height: none !important; height: auto; width: 100%; margin: 0 !important;
  display: flex; flex-direction: column; gap: 14px;
}
.content-wrapper .cd2-gallery { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.content-wrapper .slider__main {
  position: relative; margin: 0; width: 100%; max-width: none; max-height: none; border-radius: var(--cd2-radius-lg); overflow: hidden;
  background: var(--cd2-chip); isolation: isolate;
}
.content-wrapper .container__swiper__main .slider__main .swiper-wrapper,
.content-wrapper .container__swiper__main .slider__main .swiper-slide { height: auto !important; max-height: none !important; }
.content-wrapper .container__swiper__main .slider__main .swiper-slide picture,
.content-wrapper .container__swiper__main .slider__main .swiper-slide img {
  width: 100%; height: auto !important; max-height: none !important; aspect-ratio: auto; -o-object-fit: contain; object-fit: contain; display: block; margin: 0;
}
.content-wrapper .slider__main .swiper-pagination { bottom: 10px; left: 0; right: 0; width: 100%; text-align: center; }
.content-wrapper .slider__main .swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .75; margin: 0 3px !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.content-wrapper .slider__main .swiper-pagination-bullet-active { background: var(--cd2-primary); opacity: 1; }
.content-wrapper .cd2-gallery__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 6px 12px; border-radius: var(--cd2-radius-pill); background: var(--cd2-price); color: var(--cd2-text-invert);
  font-size: var(--cd2-fs-sm); font-weight: 700; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
/* Miniaturas: fila horizontal de 74x46 */
.content-wrapper .container__swiper__main .slider__miniaturas,
.content-wrapper .container__swiper__main .slider__miniaturas .container__miniaturas,
.content-wrapper .container__swiper__main .slider__miniaturas .item__miniatura,
.content-wrapper .container__swiper__main .slider__miniaturas .item__miniatura img { max-height: none !important; }
.content-wrapper .container__swiper__main .slider__miniaturas { padding: 4px 2px !important; margin: 0; height: auto; overflow: hidden; }
.content-wrapper .container__swiper__main .slider__miniaturas .item__miniatura {
  position: relative; width: 74px !important; max-width: none !important; height: 46px !important; margin-left: 0 !important; margin-right: 0 !important;
  border-radius: var(--cd2-radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--cd2-chip); box-shadow: var(--cd2-shadow-sm);
}
.content-wrapper .slider__miniaturas .swiper-slide-thumb-active.item__miniatura,
.content-wrapper .slider__miniaturas .item__miniatura:hover { border-color: var(--cd2-primary); }
.content-wrapper .container__swiper__main .slider__miniaturas .item__miniatura img {
  width: 100% !important; max-width: none !important; height: 100% !important; aspect-ratio: auto; -o-object-fit: cover !important; object-fit: cover !important; -o-object-position: center; object-position: center; display: block;
}

/* Info del producto (mockup) ------------------------------------------------- */
.content-wrapper .wrapper__product { display: flex; flex-direction: column; gap: 0; }
.content-wrapper .cd2-product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.content-wrapper .cd2-product__actions { display: flex; gap: 8px; order: 0; margin: 0; }
.content-wrapper .cd2-product__actions .cd2-offer__fav,
.content-wrapper .cd2-product__actions .cd2-product__share {
  position: static; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--cd2-radius-pill); border: 1px solid var(--cd2-border);
  background: var(--cd2-surface); color: var(--cd2-title); cursor: pointer;
}
.content-wrapper .cd2-product__actions .cd2-offer__fav.is-active { color: var(--cd2-price); border-color: var(--cd2-price); }
.content-wrapper .cd2-product__actions .cd2-offer__fav.is-active svg path { fill: currentColor; }
.content-wrapper .cd2-product__actions .cd2-product__share svg { width: 16px; height: 16px; }
.content-wrapper .cd2-product__actions .cd2-product__share svg path,
.content-wrapper .cd2-product__actions .cd2-product__share svg circle { fill: currentColor; }
.content-wrapper .product__brand { margin: 0; font-size: var(--cd2-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.content-wrapper .product__brand .brand { color: var(--cd2-text-soft); text-decoration: none; border: 0; }
.content-wrapper .product__brand .brand:hover { color: var(--cd2-primary); }
.content-wrapper .product__title { font-size: 22px; font-weight: 700; color: var(--cd2-title); line-height: 1.3; margin: 0 0 12px; }

.content-wrapper .cd2-product__place {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-title); text-transform: uppercase; letter-spacing: .02em;
}
.content-wrapper .cd2-product__place svg { width: 16px; height: 16px; flex: 0 0 auto; }
.content-wrapper .cd2-product__place svg path { fill: var(--cd2-title); }
.content-wrapper .cd2-product__place span { min-width: 0; }
.content-wrapper .cd2-product__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: var(--cd2-fs-sm); color: var(--cd2-text); }
.content-wrapper .wrapper__stars { display: flex; align-items: center; gap: 2px; margin: 0; }
.content-wrapper .wrapper__stars svg { width: 18px; height: 18px; }

/* El product.scss viejo pone .product__description en fila (precio | datos):
   ahora precio y beneficios van apilados a todo el ancho. */
.content-wrapper .wrapper__product .product__description { display: block; }

/* Caja de precio */
.content-wrapper .cd2-product__pricebox {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 16px 20px; background: #fff1ee; border: 1px solid #ffd9d0; border-radius: var(--cd2-radius-lg);
}
.content-wrapper .cd2-product__pricebox-main { display: flex; flex-direction: column; gap: 2px; }
.content-wrapper .cd2-product__pricebox-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; text-align: right; }
.content-wrapper .cd2-product__pricebox-side .cd2-product__place,
.content-wrapper .cd2-product__pricebox-side .cd2-product__rating { margin: 0; justify-content: flex-end; }
.content-wrapper .cd2-product__pricebox-side .cd2-product__place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.content-wrapper .txt__price_original { font-size: var(--cd2-fs-sm); color: var(--cd2-text-soft); }
.content-wrapper .cd2-product__pricerow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.content-wrapper .price__desc { font-size: 34px; font-weight: 800; line-height: 1; color: var(--cd2-price); margin: 0; letter-spacing: -.01em; }
.content-wrapper .cd2-product__old { font-size: var(--cd2-fs-lg); color: var(--cd2-text-mute); text-decoration: line-through; }
.content-wrapper .cd2-product__save {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10px 18px; border-radius: var(--cd2-radius); background: #ffe1dc; border: 0;
}
.content-wrapper .cd2-product__save small { font-size: var(--cd2-fs-xs); color: #b23a2e; }
.content-wrapper .cd2-product__save strong { font-size: var(--cd2-fs-xl); font-weight: 800; color: var(--cd2-price); line-height: 1.1; }

/* Beneficios: una fila compacta, ícono a la izquierda y texto al lado */
.content-wrapper .cd2-product__perks {
  list-style: none; margin: 0 0 16px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  background: var(--cd2-surface-alt); border: 1px solid var(--cd2-border-soft); border-radius: var(--cd2-radius);
}
.content-wrapper .cd2-product__perks li { flex: 1 1 0; min-width: 150px; }
.content-wrapper .cd2-product__perks li, .content-wrapper .cd2-product__perk-link { display: flex; flex-direction: row; align-items: center; gap: 10px; text-align: left; text-decoration: none; }
.content-wrapper .cd2-product__perks li > strong, .content-wrapper .cd2-product__perk-link > strong { margin: 0; }
.content-wrapper .cd2-product__perk-text { display: flex; flex-direction: column; min-width: 0; }
.content-wrapper .cd2-product__perks strong { font-size: var(--cd2-fs-xs); font-weight: 700; color: var(--cd2-title); line-height: 1.2; }
.content-wrapper .cd2-product__perks small { font-size: 11px; color: var(--cd2-text-soft); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.content-wrapper .cd2-product__perk-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.content-wrapper .cd2-product__perk-ico .cd2-ico { width: 18px; height: 18px; }
.content-wrapper .cd2-product__perk-ico--orange { background: #fff1e8; color: var(--cd2-primary); }
.content-wrapper .cd2-product__perk-ico--blue   { background: #e8f0fe; color: #2b6de0; }
.content-wrapper .cd2-product__perk-ico--indigo { background: #eceafd; color: #5b4de0; }
.content-wrapper .cd2-product__perk-ico--sky    { background: #e6f4fb; color: #2b8fd6; }
.content-wrapper .cd2-product__perk-link:hover strong { color: var(--cd2-primary); }

.content-wrapper .product__action.product__action__desktop {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
}
.content-wrapper .product__action #add__cart {
  width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--cd2-surface); border: 1px solid var(--cd2-primary); border-radius: var(--cd2-radius);
  color: var(--cd2-primary);
}
.content-wrapper .product__action #buy__product {
  flex: 1 1 auto; max-width: 360px; height: 56px;
  background: var(--cd2-primary); color: var(--cd2-text-invert); border: 0; border-radius: var(--cd2-radius);
  font-size: var(--cd2-fs-lg); font-weight: 700; text-transform: none;
}
.content-wrapper .product__action #buy__product:hover { background: var(--cd2-primary-dark); }

/* Tabs ----------------------------------------------------------------------- */
.content-wrapper .container__tabs.widget_tabs { margin-top: 8px; font-family: var(--cd2-font-base); }
.content-wrapper .container__tabs .tab { display: flex; gap: 4px; border-bottom: 1px solid var(--cd2-border); }
.content-wrapper .container__tabs .tablinks {
  padding: 12px 24px; font-size: var(--cd2-fs-md); font-weight: 600; color: var(--cd2-text-soft);
  background: none; border: 0; border-bottom: 3px solid transparent;
}
.content-wrapper .container__tabs .tablinks.active,
.content-wrapper .container__tabs .tablinks:hover { color: var(--cd2-primary); border-bottom-color: var(--cd2-primary); }
.content-wrapper .container__tabs .tabcontent { padding: 6px 16px; font-size: var(--cd2-fs-sm); color: var(--cd2-text); }
.content-wrapper .container__tabs .callout.callout-info {
  background: var(--cd2-surface-alt) !important; border-left-color: var(--cd2-success) !important;
  border-radius: var(--cd2-radius-sm);
}

@media (max-width: 900px) {
  .content-wrapper .container__main_product { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .content-wrapper .cd2-product__perks li { min-width: 130px; }
  .content-wrapper .cd2-product__pricebox { padding: 14px 16px; }
  /* !important: components/productDescription.scss (.wrapper__product .product__title) empata en especificidad */
  .content-wrapper .wrapper__product .product__title, .content-wrapper .product__title { font-size: 16px !important; line-height: 1.3 !important; margin-bottom: 8px; }
  .content-wrapper .price__desc { font-size: 28px; }
}

/* Modal "Selecciona tu opción" (subofertas) ------------------------------------
   Real: resources/views/components/modal/buy.blade.php. Máx. 860px en desktop y
   96% en móvil (pisa el 90% de components/modal/default.scss). */
.container_buy .wrapper__modal {
  width: 92%; max-width: 860px; padding: 0; overflow: hidden; max-height: calc(100% - 40px);
  display: flex; flex-direction: column;
  background: var(--cd2-surface); border-radius: 20px; font-family: var(--cd2-font-base);
  box-shadow: 0 24px 60px rgba(31, 42, 68, .28);
}
.container_buy .header__modal {
  display: flex; align-items: center; gap: 18px; padding: 22px 28px 18px !important; border-bottom: 0 !important;
}
.cd2-buy-modal__ico {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cd2-primary-soft); color: var(--cd2-primary);
}
.cd2-buy-modal__ico .cd2-ico { width: 34px; height: 34px; }
.cd2-buy-modal__titles { flex: 1 1 auto; min-width: 0; }
.container_buy .header__modal h3 { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--cd2-title); line-height: 1.2; }
.cd2-buy-modal__titles p { margin: 0; font-size: var(--cd2-fs-md); color: var(--cd2-text-soft); }
.container_buy .btn_close_modal {
  align-self: flex-start; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: var(--cd2-surface) !important; border: 1px solid var(--cd2-border) !important; border-radius: 50%; color: var(--cd2-title) !important; cursor: pointer;
}
.container_buy .btn_close_modal:hover { background: var(--cd2-chip); }
.container_buy .content__modal { padding: 0 28px 24px; overflow-y: auto; margin: 0; }

/* Opciones */
.cd2-buy-modal__options { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.container_buy .lists_options_buy { display: block !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }
.cd2-buy-modal__label {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin: 0; padding: 8px 16px; cursor: pointer;
  background: var(--cd2-surface); border: 1.5px solid var(--cd2-border); border-radius: 16px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cd2-buy-modal__label:hover { border-color: var(--cd2-primary-border); }
.cd2-buy-modal__option.is-selected .cd2-buy-modal__label {
  border-color: var(--cd2-primary); background: #fff8f4; box-shadow: 0 0 0 1px var(--cd2-primary), 0 10px 26px rgba(241, 90, 36, .12);
}
.cd2-buy-modal__option.is-soldout .cd2-buy-modal__label { cursor: not-allowed; opacity: .6; }
.cd2-buy-modal__label input { position: absolute; opacity: 0; width: 0; height: 0; }
.cd2-buy-modal__radio {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c5cedb; background: var(--cd2-surface); transition: all .15s ease;
}
.cd2-buy-modal__option.is-selected .cd2-buy-modal__radio { border-color: var(--cd2-primary); background: var(--cd2-primary); box-shadow: inset 0 0 0 5px #fff; }
.container_buy .content_option { min-width: 0; }
.container_buy .content_option .cd2-buy-modal__chip {
  display: inline-block !important; width: auto !important; margin-bottom: 8px; padding: 5px 12px; border-radius: var(--cd2-radius-pill);
  background: var(--cd2-primary-soft); color: var(--cd2-primary); font-size: var(--cd2-fs-sm); font-weight: 700;
}
.cd2-buy-modal__option.is-selected .cd2-buy-modal__chip { background: #ffe2d3; }
.container_buy .content_option .cd2-buy-modal__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--cd2-title); line-height: 1.35; }
.cd2-buy-modal__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: var(--cd2-fs-md); color: var(--cd2-text); }
.cd2-buy-modal__meta span { display: inline-flex; align-items: center; gap: 8px; }
.cd2-buy-modal__meta .cd2-ico { width: 18px; height: 18px; color: var(--cd2-title); }
.container_buy .content_actions { display: flex !important; flex-direction: column !important; align-items: flex-end !important; justify-content: center; gap: 8px !important; flex: 0 0 auto; text-align: right; }
.container_buy .content_actions strong { display: block; font-size: 30px; font-weight: 800; color: var(--cd2-primary); line-height: 1; letter-spacing: -.01em; }
.container_buy .content_actions .cd2-buy-modal__popular {
  display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 14px !important; border-radius: var(--cd2-radius-pill) !important; white-space: nowrap;
  background: var(--cd2-primary-soft) !important; color: var(--cd2-primary) !important; font-size: var(--cd2-fs-sm) !important; font-weight: 700; line-height: 1.2;
}
.container_buy .content_actions .cd2-buy-modal__popular svg { color: #ee3124; }
.container_buy .span_.cd2-buy-modal__soldout { font-size: var(--cd2-fs-md); font-weight: 700; color: var(--cd2-text-mute); }

/* Nota y acciones */
.cd2-buy-modal__note {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px;
  background: #fff1ee; border-radius: 16px;
}
.cd2-buy-modal__note-ico {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #ffd9cf; color: var(--cd2-primary);
}
.cd2-buy-modal__note-ico .cd2-ico { width: 28px; height: 28px; transform: rotate(-12deg); }
.cd2-buy-modal__note strong { display: block; font-size: var(--cd2-fs-lg); color: var(--cd2-title); margin-bottom: 2px; }
.cd2-buy-modal__note span { font-size: var(--cd2-fs-md); color: var(--cd2-text); }
.cd2-buy-modal__footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 22px; }
.cd2-buy-modal__cancel, .cd2-buy-modal__add {
  height: 62px; border-radius: 16px; font-size: 18px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: background-color .15s ease, color .15s ease;
}
.cd2-buy-modal__cancel { background: var(--cd2-surface); color: var(--cd2-title); border: 1.5px solid var(--cd2-border); }
.cd2-buy-modal__cancel:hover { background: var(--cd2-chip); }
.cd2-buy-modal__add { background: var(--cd2-primary); color: var(--cd2-text-invert); border: 0; box-shadow: 0 10px 24px rgba(241, 90, 36, .30); }
.cd2-buy-modal__add:hover { background: var(--cd2-primary-dark); }
.cd2-buy-modal__add:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 768px) {
  .container_buy .wrapper__modal { width: 96%; max-height: calc(100% - 16px); border-radius: 16px; }
  .container_buy .header__modal { padding: 16px 16px 12px; gap: 12px; }
  .cd2-buy-modal__ico { width: 52px; height: 52px; }
  .cd2-buy-modal__ico .cd2-ico { width: 24px; height: 24px; }
  .container_buy .header__modal h3 { font-size: 20px; }
  .cd2-buy-modal__titles p { font-size: var(--cd2-fs-sm); }
  .container_buy .btn_close_modal { width: 36px; height: 36px; }
  .container_buy .content__modal { padding: 0 14px 16px; }
  .cd2-buy-modal__label { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cd2-buy-modal__radio { width: 24px; height: 24px; }
  .container_buy .content_actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .container_buy .content_actions strong { font-size: 24px; }
  .container_buy .content_option .cd2-buy-modal__title { font-size: 15px; }
  .cd2-buy-modal__note { padding: 12px 14px; gap: 12px; }
  .cd2-buy-modal__note-ico { width: 44px; height: 44px; }
  .cd2-buy-modal__footer { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .cd2-buy-modal__cancel, .cd2-buy-modal__add { height: 52px; font-size: 16px; }
}

/* Barra fija de compra en mobile (master.blade.php ".sidebar__mobile"),
   se apila sobre la barra inferior nueva (x-globals.float-nav) en vez de
   superponerse: comparten el borde inferior de la pantalla. */
.sidebar__mobile {
  bottom: 0 !important; z-index: var(--cd2-z-float); /* no existe barra inferior de navegación: pegada al borde */
  background: var(--cd2-surface); box-shadow: 0 -4px 14px rgba(47, 53, 79, .10);
}
/* Respiro para que el final del contenido no quede bajo la barra fija */
@media (max-width: 768px) {
  body:has(.sidebar__mobile:not([style*="display: none"])) .cd2-page-shell { padding-bottom: 68px; }
}
.sidebar__mobile .product__action { display: flex; align-items: center; gap: 10px; }
.sidebar__mobile #add__cart {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--cd2-surface); border: 1px solid var(--cd2-primary); border-radius: var(--cd2-radius);
  color: var(--cd2-primary); margin: 6px 0 6px 12px !important;
}
.sidebar__mobile #buy__product {
  flex: 1 1 auto; height: 44px; margin: 6px 12px 6px 0 !important;
  background: var(--cd2-primary); color: var(--cd2-text-invert); border: 0; border-radius: var(--cd2-radius);
  font-size: var(--cd2-fs-sm); font-weight: 700; text-transform: none;
}

/* Ajustes cuando la galería+info y las tabs quedan dentro del mismo
   contenedor blanco ".cd2-product-panel" (ver más arriba): sin margen
   propio, separadas por una línea sutil en vez de espacio+fondo repetido. */
.cd2-product-panel .container__main_product { margin-bottom: 0; }
.cd2-product-panel .container__tabs.widget_tabs {
  margin-top: 0; padding-top: 20px; border-top: 0 solid var(--cd2-border-soft);
}

/* ==========================================================================
   cuponidad-v2 / components/auth-modal.css
   Modales de acceso (login con pestañas y registro). Se cargan en
   master.blade.php en TODAS las páginas, así que viven en app.css (bundle
   global), no en un page-css aparte.

   Real: resources/views/components/modal/login.blade.php
         resources/views/components/modal/register.blade.php
   Ambos wrappers siguen siendo .container__modal (fixed, z 5, .close_modal =>
   display:none; ver css/components/modal/default.scss) y llevan la clase
   común .cd2-auth. Las clases .tablinks/.tabcontent2 y los ids se conservan
   porque los usa openTab2() (master), settings.js y general.js.
   ========================================================================== */

/* Overlay + diálogo -------------------------------------------------------- */
.container__modal.cd2-auth {
  background: rgba(31, 42, 68, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: var(--cd2-font-base);
}
.container__modal.cd2-auth.close_modal { display: none; }

.cd2-auth__dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cd2-surface); border-radius: 18px; box-shadow: var(--cd2-shadow-lg);
}

/* Pestañas (login) --------------------------------------------------------- */
.cd2-auth__tabs {
  display: flex; align-items: stretch; flex: 0 0 auto;
  background: var(--cd2-surface-alt); border-bottom: 1px solid var(--cd2-border);
}
.cd2-auth .cd2-auth__tab {
  flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 10px; background: none; border: 0; border-right: 1px solid var(--cd2-border); cursor: pointer;
  font: inherit; font-size: var(--cd2-fs-sm); font-weight: 600; line-height: 1.2; color: var(--cd2-text-soft); text-align: left;
  transition: background .15s ease, color .15s ease;
}
.cd2-auth .cd2-auth__tab svg { flex: 0 0 auto; width: 26px; height: 26px; }
.cd2-auth .cd2-auth__tab:hover { color: var(--cd2-title); background: var(--cd2-chip); }
.cd2-auth .cd2-auth__tab.active { background: var(--cd2-primary); color: #fff; }
.cd2-auth .cd2-auth__tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  border: 8px solid transparent; border-bottom-color: var(--cd2-surface); border-top: 0;
}
.cd2-auth .cd2-auth__close {
  flex: 0 0 auto; width: 52px; display: grid; place-items: center; background: none; border: 0; cursor: pointer;
  color: var(--cd2-title); transition: background .15s ease;
}
.cd2-auth .cd2-auth__close:hover { background: var(--cd2-chip); }
.cd2-auth .cd2-auth__close svg { width: 16px; height: 16px; }

/* Paneles: openTab2() alterna style.display sobre .tabcontent2; el layout va
   en el hijo .cd2-auth__pane. Se anulan el padding y el borde naranja que le
   pone el CSS viejo (main.css). */
.cd2-auth .tabcontent2 { padding: 0; border: 0; overflow-y: auto; min-height: 0; }
.cd2-auth__pane { display: flex; flex-direction: column; align-items: stretch; padding: 26px 30px 22px; text-align: center; }

.cd2-auth__hero {
  align-self: center; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cd2-primary-soft); color: var(--cd2-title); box-shadow: 0 0 0 10px #fff7f3;
}
.cd2-auth__hero svg { width: 40px; height: 40px; }
#compra_invitado .cd2-auth__hero { color: var(--cd2-primary); }
.cd2-auth__title { margin: 22px 0 0; font-size: var(--cd2-fs-2xl); font-weight: 800; color: var(--cd2-title); line-height: 1.15; }
.cd2-auth__lead { margin: 6px 0 0; font-size: var(--cd2-fs-md); color: var(--cd2-text-soft); line-height: 1.45; }

/* Mensajes que pintan setLogin()/general.js: <div class="form-group"><div class="alert alert-danger">…
   (Bootstrap no está cargado, así que se estilizan aquí). */
.cd2-auth__msg { text-align: left; }
.cd2-auth__msg .alert {
  margin: 14px 0 -4px; padding: 9px 12px; border-radius: var(--cd2-radius-sm); font-size: var(--cd2-fs-xs);
  background: var(--cd2-g1-bg); color: var(--cd2-error); border: 1px solid #f5c2c7;
}
.cd2-auth__msg .alert-success { background: var(--cd2-g3-bg); color: var(--cd2-g3-ink); border-color: #bfe8d3; }

/* Campos -------------------------------------------------------------------- */
.cd2-auth__label { display: block; margin: 18px 0 6px; font-size: var(--cd2-fs-md); font-weight: 700; color: var(--cd2-title); text-align: left; }
.cd2-auth__label b { font-weight: 700; }
.cd2-auth__label .req { color: var(--cd2-primary); }
.cd2-auth__labelrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cd2-auth__labelrow .cd2-auth__label { margin-bottom: 6px; }
.cd2-auth__hint { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }
.cd2-auth__hint svg { width: 14px; height: 14px; color: var(--cd2-g5-ink); }
.cd2-auth__hint--wa svg { color: var(--cd2-whatsapp); }

.cd2-auth__field { position: relative; display: flex; align-items: center; }
.cd2-auth__field > svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--cd2-text-soft); pointer-events: none; }
.cd2-auth .cd2-auth__field input {
  width: 100%; height: 52px; margin: 0; padding: 0 48px 0 50px; font: inherit; font-size: var(--cd2-fs-md); color: var(--cd2-text);
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cd2-auth .cd2-auth__field input::-moz-placeholder { color: var(--cd2-text-mute); }
.cd2-auth .cd2-auth__field input:-ms-input-placeholder { color: var(--cd2-text-mute); }
.cd2-auth .cd2-auth__field input::placeholder { color: var(--cd2-text-mute); }
.cd2-auth .cd2-auth__field input:focus { border-color: var(--cd2-primary); box-shadow: 0 0 0 3px var(--cd2-primary-soft); }
.cd2-auth .cd2-auth__eye {
  position: absolute; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--cd2-text-soft);
}
.cd2-auth .cd2-auth__eye:hover { background: var(--cd2-chip); color: var(--cd2-title); }
.cd2-auth .cd2-auth__eye svg { width: 18px; height: 18px; }

.cd2-auth__links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: var(--cd2-fs-sm); }
.cd2-auth__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--cd2-primary); text-decoration: none; font-weight: 500; }
.cd2-auth__links a:hover { text-decoration: underline; }
.cd2-auth__links a#register_user_login { color: var(--cd2-title); }
.cd2-auth__links a svg { width: 16px; height: 16px; }

/* Botón principal. También cubre el <button class="btn btn_modal"> que
   settings.js inyecta en #btn_login_buttom al abrir el modal desde una compra. */
.cd2-auth__submit { margin-top: 18px; }
.cd2-auth .cd2-auth__submit .btn_modal {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; margin: 0; padding: 0 20px;
  background: var(--cd2-primary) !important; color: #fff !important; border: 0 !important; border-radius: var(--cd2-radius-pill);
  font: inherit; font-size: var(--cd2-fs-lg); font-weight: 700; cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.cd2-auth .cd2-auth__submit .btn_modal:hover { background: var(--cd2-primary-dark) !important; }
.cd2-auth .cd2-auth__submit .btn_modal:active { transform: translateY(1px); }
.cd2-auth .cd2-auth__submit .btn_modal svg { width: 20px; height: 20px; flex: 0 0 auto; }
.cd2-auth .cd2-auth__submit .btn_modal .cd2-auth__arrow, .cd2-regp .cd2-auth__submit .cd2-auth__arrow { width: 18px; height: 18px; margin-left: 10px; }
.cd2-auth__btn--focus span { flex: 1 1 auto; text-align: center; }

.cd2-auth__divider { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--cd2-text-soft); font-size: var(--cd2-fs-xs); }
.cd2-auth__divider::before, .cd2-auth__divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cd2-border); }
.cd2-auth__perks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; gap: 0; }
.cd2-auth__perks li { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; font-size: var(--cd2-fs-xs); color: var(--cd2-text); }
.cd2-auth__perks li + li { border-left: 1px solid var(--cd2-border); }
.cd2-auth__perks svg { width: 18px; height: 18px; color: var(--cd2-title); }

.cd2-auth__note {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 16px; text-align: left;
  background: var(--cd2-g3-bg); border-radius: var(--cd2-radius); color: #1e6b3f;
}
.cd2-auth__note-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--cd2-success); color: #fff; display: grid; place-items: center; }
.cd2-auth__note-ico svg { width: 16px; height: 16px; }
.cd2-auth__note p { margin: 0; padding-left: 16px; border-left: 1px solid #bfe8d3; font-size: var(--cd2-fs-sm); line-height: 1.5; }
.cd2-auth__note b { color: #15532f; }

.cd2-auth__safe {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--cd2-border-soft); font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft);
}
.cd2-auth__safe svg { width: 15px; height: 15px; color: var(--cd2-text-mute); }

/* Pestaña LRFOCUS */
.cd2-auth__pane--focus { padding-top: 32px; }
.cd2-auth__focuslogo { align-self: center; height: 48px; width: auto; }
.cd2-auth__pane--focus .cd2-auth__lead { margin-top: 16px; }
.cd2-auth__pane--focus .cd2-auth__submit { margin-top: 24px; }
.cd2-auth__pane--focus .cd2-auth__safe { margin-top: 22px; }

/* Registro ------------------------------------------------------------------ */
.cd2-reg { width: min(520px, 100%); }
.cd2-reg__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex: 0 0 auto;
  padding: 22px 26px 16px; border-bottom: 3px solid var(--cd2-primary); text-align: left;
}
.cd2-reg__title { margin: 0; font-size: var(--cd2-fs-2xl); font-weight: 800; color: var(--cd2-title); line-height: 1.1; }
.cd2-reg__lead { margin: 6px 0 0; font-size: var(--cd2-fs-md); color: var(--cd2-text-soft); line-height: 1.4; }
.cd2-auth .cd2-reg__close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--cd2-chip); border: 0; cursor: pointer;
  color: var(--cd2-title); display: grid; place-items: center; transition: background .15s ease;
}
.cd2-auth .cd2-reg__close:hover { background: #e4e7ee; }
.cd2-auth .cd2-reg__close svg { width: 15px; height: 15px; }
.cd2-reg__pane { padding-top: 6px; overflow-y: auto; min-height: 0; }
.cd2-reg__pane .cd2-auth__label { margin-top: 16px; }
.cd2-reg__check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: var(--cd2-fs-md); color: var(--cd2-text); text-align: left; cursor: pointer; }
.cd2-reg__check + .cd2-reg__check { margin-top: 10px; }
.cd2-reg__check input { width: 20px; height: 20px; margin: 0; accent-color: var(--cd2-primary); flex: 0 0 auto; }
.cd2-reg__check a { color: var(--cd2-primary); text-decoration: none; }
.cd2-reg__check a:hover { text-decoration: underline; }
.cd2-reg__note {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; padding: 14px 16px; text-align: left;
  background: var(--cd2-primary-soft); border-radius: var(--cd2-radius); color: var(--cd2-text);
}
.cd2-reg__note-ico { flex: 0 0 auto; width: 30px; height: 30px; color: var(--cd2-primary); display: grid; place-items: center; }
.cd2-reg__note-ico svg { width: 30px; height: 30px; }
.cd2-reg__note p { margin: 0; font-size: var(--cd2-fs-sm); line-height: 1.5; }
.cd2-reg__note b { color: var(--cd2-title); }
.cd2-reg__pane .cd2-auth__submit { margin-top: 18px; margin-bottom: 4px; }

/* Móvil: centrado en ambos ejes, escala reducida y scroll interno ---------- */
@media (max-width: 520px) {
  .container__modal.cd2-auth { padding: 12px; align-items: center; }
  .cd2-auth__dialog { width: min(400px, 100%); max-height: calc(100vh - 24px); border-radius: 16px; }
  .cd2-auth .cd2-auth__tab { flex-direction: column; gap: 5px; padding: 10px 6px; font-size: var(--cd2-fs-xxs); text-align: center; }
  .cd2-auth .cd2-auth__tab svg { width: 20px; height: 20px; }
  .cd2-auth .cd2-auth__tab.active::after { border-width: 6px; }
  .cd2-auth .cd2-auth__close { width: 40px; }
  .cd2-auth__pane { padding: 16px 16px 14px; }
  .cd2-auth__hero { width: 56px; height: 56px; box-shadow: 0 0 0 6px #fff7f3; }
  .cd2-auth__hero svg { width: 28px; height: 28px; }
  .cd2-auth__title { margin-top: 12px; font-size: var(--cd2-fs-xl); }
  .cd2-auth__lead { font-size: var(--cd2-fs-sm); margin-top: 4px; }
  .cd2-auth__label { margin: 12px 0 5px; font-size: var(--cd2-fs-sm); }
  .cd2-auth .cd2-auth__field input { height: 44px; font-size: var(--cd2-fs-sm); padding: 0 42px 0 42px; border-radius: var(--cd2-radius-sm); }
  .cd2-auth__field > svg { left: 13px; width: 16px; height: 16px; }
  .cd2-auth__links { margin-top: 10px; font-size: var(--cd2-fs-xs); }
  .cd2-auth__submit { margin-top: 12px; }
  .cd2-auth .cd2-auth__submit .btn_modal { height: 46px; font-size: var(--cd2-fs-md); }
  .cd2-auth__divider { margin-top: 14px; }
  .cd2-auth__perks { flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 10px; }
  .cd2-auth__perks li + li { border-left: 0; }
  .cd2-auth__perks li { padding: 0; }
  .cd2-auth__labelrow .cd2-auth__hint { display: none; }
  .cd2-auth__note { margin-top: 12px; padding: 10px 12px; gap: 10px; }
  .cd2-auth__note p { font-size: var(--cd2-fs-xs); padding-left: 10px; }
  .cd2-auth__safe { margin-top: 12px; padding-top: 10px; font-size: var(--cd2-fs-xxs); }
  .cd2-auth__pane--focus { padding-top: 22px; }
  .cd2-auth__focuslogo { height: 36px; }
  .cd2-reg__head { padding: 16px 16px 12px; }
  .cd2-reg__title { font-size: var(--cd2-fs-xl); }
  .cd2-reg__lead { font-size: var(--cd2-fs-sm); }
  .cd2-auth .cd2-reg__close { width: 32px; height: 32px; }
  .cd2-reg__check { font-size: var(--cd2-fs-sm); margin-top: 10px; }
  .cd2-reg__check input { width: 18px; height: 18px; }
  .cd2-reg__note { margin-top: 12px; padding: 10px 12px; }
  .cd2-reg__note p { font-size: var(--cd2-fs-xs); }
}

/* ==========================================================================
   cuponidad-v2 / components/subscribe-modal.css
   Modal de suscripción (rediseño). Real: components/modal/subscribe.blade.php
   El wrapper sigue siendo .container__modal.container_subscribe (fixed, z 5,
   con .close_modal => display:none; ver css/components/modal/default.scss),
   así que aquí solo se reemplaza el fondo del overlay y el contenido.
   ========================================================================== */

.container__modal.cd2-sub {
  background: rgba(31, 42, 68, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: var(--cd2-font-base);
}
.container__modal.cd2-sub.close_modal { display: none; }

.cd2-sub__dialog {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  width: min(920px, 100%); max-height: calc(100vh - 32px); overflow: hidden;
  background: var(--cd2-surface); border-radius: 18px; box-shadow: var(--cd2-shadow-lg);
}

.cd2-sub__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cd2-chip); border: 0; color: var(--cd2-title); cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
.cd2-sub__close:hover { background: #e4e7ee; }
.cd2-sub__close svg { width: 14px; height: 14px; }

/* Panel izquierdo: foto + textos superpuestos ----------------------------- */
.cd2-sub__media { position: relative; min-height: 380px; background: #f7efe8; }
.cd2-sub__media img { position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -o-object-position: 20% 40%; object-position: 20% 40%; }
.cd2-sub__pill {
  position: absolute; left: 18px; bottom: 22px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; background: rgba(255,255,255,.94); border-radius: var(--cd2-radius-pill);
  box-shadow: var(--cd2-shadow); color: var(--cd2-primary);
}
.cd2-sub__pill svg { width: 26px; height: 26px; flex: 0 0 auto; }
.cd2-sub__pill strong { display: block; font-size: var(--cd2-fs-md); font-weight: 800; line-height: 1.1; }
.cd2-sub__pill small { display: block; font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }

/* Panel derecho: formulario ---------------------------------------------- */
.cd2-sub__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 34px 22px; overflow-y: auto; }
.cd2-sub__logo { width: 150px; height: auto; }
.cd2-sub__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 16px;
  background: var(--cd2-primary-soft); color: var(--cd2-primary); border-radius: var(--cd2-radius-pill);
  font-size: var(--cd2-fs-sm); font-weight: 700;
}
.cd2-sub__badge svg { width: 16px; height: 16px; }
.cd2-sub__title { margin: 12px 0 0; font-size: var(--cd2-fs-2xl); font-weight: 800; color: var(--cd2-title); line-height: 1.15; }
.cd2-sub__title span { color: var(--cd2-primary); }
.cd2-sub__lead { margin: 6px 0 0; font-size: var(--cd2-fs-md); color: var(--cd2-text); }

.cd2-sub__brands {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 16px; padding: 12px 14px;
  background: var(--cd2-primary-soft); border-radius: var(--cd2-radius); text-align: left;
}
.cd2-sub__brands svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--cd2-primary); margin-top: 2px; }
.cd2-sub__brands p { margin: 0; font-size: var(--cd2-fs-sm); color: var(--cd2-text); line-height: 1.45; }
.cd2-sub__brands b { color: var(--cd2-primary); }
.cd2-sub__brands strong { color: var(--cd2-title); }

.cd2-sub__field {
  position: relative; display: flex; align-items: center; width: 100%; margin-top: 16px;
}
.cd2-sub__field svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--cd2-text-mute); pointer-events: none; }
.cd2-sub__field input {
  width: 100%; margin: 0; padding: 12px 14px 12px 40px; font: inherit; font-size: var(--cd2-fs-md); color: var(--cd2-text);
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius-sm); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cd2-sub__field input::-moz-placeholder { color: var(--cd2-text-mute); }
.cd2-sub__field input:-ms-input-placeholder { color: var(--cd2-text-mute); }
.cd2-sub__field input::placeholder { color: var(--cd2-text-mute); }
.cd2-sub__field input:focus { border-color: var(--cd2-primary); box-shadow: 0 0 0 3px var(--cd2-primary-soft); }

.cd2-sub__msg { width: 100%; text-align: left; font-size: var(--cd2-fs-xs); min-height: 0; }
.cd2-sub__msg .mesage_error   { color: var(--cd2-error);   margin-top: 6px; }
.cd2-sub__msg .mesage_success { color: var(--cd2-success); margin-top: 6px; font-weight: 600; }

.cd2-sub__policy { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 12px; font-size: var(--cd2-fs-sm); color: var(--cd2-text); cursor: pointer; text-align: left; }
.cd2-sub__policy input { width: 17px; height: 17px; margin: 0; accent-color: var(--cd2-primary); flex: 0 0 auto; }
.cd2-sub__policy a { color: var(--cd2-g5-ink); text-decoration: none; }
.cd2-sub__policy a:hover { text-decoration: underline; }

.cd2-sub__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 13px 18px;
  background: var(--cd2-primary); color: #fff; border: 0; border-radius: var(--cd2-radius); cursor: pointer;
  font: inherit; font-size: var(--cd2-fs-lg); font-weight: 700; transition: background .15s ease, transform .1s ease;
}
.cd2-sub__btn:hover { background: var(--cd2-primary-dark); }
.cd2-sub__btn:active { transform: translateY(1px); }
.cd2-sub__btn svg { width: 16px; height: 16px; }

.cd2-sub__safe { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }
.cd2-sub__safe svg { width: 14px; height: 14px; color: var(--cd2-text-mute); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 860px) {
  .cd2-sub__dialog { grid-template-columns: 1fr; width: min(520px, 100%); }
  .cd2-sub__media { min-height: 190px; }
  .cd2-sub__pill { display: none; }
  .cd2-sub__body { padding: 22px 20px 18px; }
  .cd2-sub__title { font-size: var(--cd2-fs-xl); }
}
@media (max-width: 480px) {
  .container__modal.cd2-sub { padding: 10px; }
  .cd2-sub__media { min-height: 150px; }
  .cd2-sub__logo { width: 120px; }
}

/* ==========================================================================
   Modal de suscripción MÓVIL (components/modal/suscribe-float.blade.php).
   Solo visible a <=414px (layouts/main.scss). Tarjeta centrada, cierre naranja
   circular, email con ícono, políticas y botón "Enviar".
   ========================================================================== */
.container__modal.cd2-subf {
  background: rgba(31, 42, 68, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  font-family: var(--cd2-font-base);
}
.container__modal.cd2-subf.close_modal { display: none; }
.cd2-subf__dialog {
  position: relative; width: min(420px, 100%); padding: 26px 22px 22px;
  background: var(--cd2-surface); border-radius: 22px; box-shadow: var(--cd2-shadow-lg);
}
.cd2-subf__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cd2-primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--cd2-shadow-sm);
}
.cd2-subf__close svg { width: 16px; height: 16px; }
.cd2-subf__title { margin: 4px 60px 0 0; font-size: 30px; font-weight: 800; color: var(--cd2-title); line-height: 1.1; }
.cd2-subf__lead { margin: 6px 0 0; font-size: var(--cd2-fs-md); color: var(--cd2-text-soft); }

.cd2-subf__field { position: relative; display: flex; align-items: center; margin-top: 22px; }
.cd2-subf__field svg { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--cd2-text-soft); pointer-events: none; }
.container__modal.cd2-subf .cd2-subf__field input {
  width: 100%; height: 58px; margin: 0; padding: 0 16px 0 58px; font: inherit; font-size: var(--cd2-fs-lg); color: var(--cd2-text);
  background: var(--cd2-primary-soft); border: 2px solid var(--cd2-primary); border-radius: 14px; outline: none;
}
.container__modal.cd2-subf .cd2-subf__field input::-moz-placeholder { color: var(--cd2-text-mute); }
.container__modal.cd2-subf .cd2-subf__field input:-ms-input-placeholder { color: var(--cd2-text-mute); }
.container__modal.cd2-subf .cd2-subf__field input::placeholder { color: var(--cd2-text-mute); }
.container__modal.cd2-subf .cd2-subf__field input:focus { box-shadow: 0 0 0 3px var(--cd2-primary-border); }

.cd2-subf__msg { text-align: left; font-size: var(--cd2-fs-sm); }
.cd2-subf__msg .mesage_error   { color: var(--cd2-error);   margin-top: 8px; }
.cd2-subf__msg .mesage_success { color: var(--cd2-success); margin-top: 8px; font-weight: 600; }

.cd2-subf__policy { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; font-size: var(--cd2-fs-lg); line-height: 1.35; color: var(--cd2-text); cursor: pointer; }
.cd2-subf__policy input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--cd2-primary); flex: 0 0 auto; border-radius: 6px; }
.cd2-subf__policy a { color: var(--cd2-g5-ink); text-decoration: none; font-weight: 500; }

.container__modal.cd2-subf .cd2-subf__btn {
  display: block; width: 100%; height: 60px; margin-top: 24px; padding: 0;
  background: var(--cd2-primary); color: #fff; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 24px; font-weight: 700; box-shadow: 0 6px 16px rgba(241, 90, 36, .28);
}
.container__modal.cd2-subf .cd2-subf__btn:active { transform: translateY(1px); }

/* ==========================================================================
   cuponidad-v2 / components/segment-hero.css
   Hero de segmento. Real: components/globals/segment-hero.blade.php
   (se pinta en pages/section.blade.php, entre las migas y el slider).
   Tres zonas: texto | frase manuscrita | media (foto opcional o decorado).
   ========================================================================== */

.cd2-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) auto minmax(220px, .9fr);
  align-items: center; gap: 18px; min-height: 118px; margin: 4px 0 14px; padding: 16px 0 16px 24px;
  border-radius: var(--cd2-radius-lg); overflow: hidden; font-family: var(--cd2-font-base);
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--hero-bg) 55%, var(--hero-bg-2) 100%);
  box-shadow: var(--cd2-shadow-sm);
}
.cd2-hero--tall { min-height: 170px; }

/* Paletas por segmento */
.cd2-hero--warm { --hero-bg: #fff4ec; --hero-bg-2: #ffe7d6; }
.cd2-hero--rose { --hero-bg: #fdf1ea; --hero-bg-2: #f9e0d3; }
.cd2-hero--cool { --hero-bg: #edf3fb; --hero-bg-2: #dbe7f6; }
.cd2-hero--sky  { --hero-bg: #eaf3fb; --hero-bg-2: #d4e6f7; }

.cd2-hero__text { min-width: 0; }
.cd2-hero__title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--cd2-brand-blue); letter-spacing: -.01em; }
.cd2-hero__sub { margin: 6px 0 0; font-size: var(--cd2-fs-sm); line-height: 1.4; color: var(--cd2-title); max-width: 46ch; }
.cd2-hero__cta {
  display: inline-flex; align-items: center; margin-top: 12px; padding: 8px 18px; border-radius: var(--cd2-radius-pill);
  background: var(--cd2-primary); color: #fff; font-size: var(--cd2-fs-sm); font-weight: 700; text-decoration: none;
}
.cd2-hero__cta:hover { background: var(--cd2-primary-dark); }

/* Frase manuscrita con subrayado naranja */
.cd2-hero__claim {
  position: relative; margin: 0; padding: 0 6px; font-family: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  font-size: 30px; font-weight: 700; line-height: .95; color: var(--cd2-brand-blue); text-align: center; white-space: nowrap;
  transform: rotate(-5deg);
}
.cd2-hero__claim svg { display: block; width: 110px; height: 10px; margin: 4px auto 0; color: var(--cd2-primary); }

/* Beneficios (variante Salud) */
.cd2-hero__bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-self: center; }
.cd2-hero__bullets li { display: flex; align-items: center; gap: 8px; font-size: var(--cd2-fs-xs); color: var(--cd2-title); white-space: nowrap; }
.cd2-hero__bullets svg { width: 18px; height: 18px; color: var(--cd2-brand-blue); flex: 0 0 auto; }
.cd2-hero--tall { grid-template-columns: minmax(0, 1.2fr) auto auto minmax(160px, .7fr); }

/* Media: foto (si existe) o decorado con ícono */
.cd2-hero__media { position: relative; align-self: stretch; min-height: 100%; }
.cd2-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.cd2-hero__blob {
  position: absolute; right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.85), rgba(255,255,255,.15) 70%, transparent 72%);
}
.cd2-hero__icon {
  position: absolute; right: 42px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 92px; height: 92px; opacity: .22;
}
.cd2-hero__icon svg { width: 100%; height: 100%; }
/* Con etiqueta, el ícono decorativo se corre para no quedar debajo de ella */
.cd2-hero__media:has(.cd2-hero__badge) .cd2-hero__icon { right: 165px; }
.cd2-hero__icon svg path, .cd2-hero__icon svg rect, .cd2-hero__icon svg circle { fill: var(--cd2-brand-blue) !important; stroke: var(--cd2-brand-blue) !important; }

.cd2-hero__badge {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-6deg); max-width: 130px;
  padding: 10px 14px; border-radius: 8px 14px 8px 14px; text-align: center;
  font-size: var(--cd2-fs-xs); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: var(--cd2-shadow);
}
.cd2-hero__badge--orange { background: var(--cd2-primary); color: #fff; }
.cd2-hero__badge--blue   { background: var(--cd2-brand-blue); color: #fff; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .cd2-hero { grid-template-columns: minmax(0, 1fr) auto minmax(180px, .6fr); }
  .cd2-hero--tall { grid-template-columns: minmax(0, 1fr) auto minmax(160px, .5fr); }
  .cd2-hero--tall .cd2-hero__bullets { display: none; }
  .cd2-hero__claim { font-size: 26px; }
}
@media (max-width: 768px) {
  .cd2-hero, .cd2-hero--tall { grid-template-columns: minmax(0, 1fr) 96px; min-height: 0; gap: 8px; padding: 14px 0 14px 16px; margin: 0 0 12px; }
  .cd2-hero__title { font-size: var(--cd2-fs-xl); }
  .cd2-hero__sub { font-size: var(--cd2-fs-xs); }
  .cd2-hero__claim, .cd2-hero__badge, .cd2-hero__bullets { display: none; }
  .cd2-hero__blob { width: 150px; height: 150px; right: -50px; }
  .cd2-hero__icon { width: 56px; height: 56px; right: 18px; }
  .cd2-hero__cta { margin-top: 8px; padding: 7px 14px; font-size: var(--cd2-fs-xs); }
}

/* ==========================================================================
   cuponidad-v2 / components/sidebar.css
   Nuevo: menú lateral de segmentos/categorías (PDF "Cambios 070926").
   Real: resources/views/components/globals/sidebar.blade.php (nuevo)
         resources/js/cuponidad-v2/components/sidebar.js (nuevo, acordeón)
   Origen visual: resources/maqueta/assets/css/components/segments-menu.css
   ========================================================================== */

.cd2-sidebar {
  position: -webkit-sticky;
  position: sticky; top: calc(var(--cd2-header-h) + var(--cd2-gap));
  max-height: calc(100vh - var(--cd2-header-h) - var(--cd2-gap) * 2);
  display: flex; flex-direction: column;
  font-family: var(--cd2-font-base);
}
/* Solo la lista hace scroll (barra fina visible para que se note); la tarjeta
   "Descarga nuestra app" queda siempre a la vista al pie, aunque el submenú
   desplegado sea más alto que la pantalla. */
.cd2-sidebar__list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--cd2-border) transparent;
}
.cd2-sidebar__list::-webkit-scrollbar { width: 6px; }
.cd2-sidebar__list::-webkit-scrollbar-thumb { background: var(--cd2-border); border-radius: 3px; }
.cd2-sidebar__app { flex: 0 0 auto; }

/* El menú es la tarjeta blanca; el aside queda transparente para que la
   tarjeta "Descarga nuestra app" de abajo sea una tarjeta aparte. */
.cd2-sidebar__list {
  background: var(--cd2-surface); border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius-lg); padding: 6px;
}
.cd2-sidebar__item + .cd2-sidebar__item { border-top: 1px solid var(--cd2-border-soft); }

/* Tarjeta "Descarga nuestra app" debajo del menú */
.cd2-sidebar__app {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 12px 12px 10px;
  background: var(--cd2-surface); border: 1px solid var(--cd2-border); border-radius: var(--cd2-radius-lg);
  text-decoration: none; box-shadow: var(--cd2-shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.cd2-sidebar__app:hover { box-shadow: var(--cd2-shadow); transform: translateY(-1px); }
.cd2-sidebar__app-phone { flex: 0 0 auto; display: flex; }
.cd2-sidebar__app-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd2-sidebar__app-body strong { font-size: var(--cd2-fs-sm); font-weight: 700; color: var(--cd2-title); line-height: 1.2; }
.cd2-sidebar__app-body small { font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); }
.cd2-sidebar__app-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 5px 10px 5px 8px; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content;
  background: #000; color: #fff; border-radius: 7px;
}
.cd2-sidebar__app-badge > span { display: flex; flex-direction: column; font-size: 7px; letter-spacing: .04em; line-height: 1.2; }
.cd2-sidebar__app-badge > span b { font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.1; }

.cd2-sidebar__row { display: flex; align-items: stretch; border-radius: var(--cd2-radius-sm); }
.cd2-sidebar__row.is-active { background: var(--cd2-primary-soft); }

.cd2-sidebar__link {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: var(--cd2-fs-sm); font-weight: 500; color: var(--cd2-brand-blue); text-decoration: none;
}
.cd2-sidebar__link:hover { background: var(--cd2-surface-alt); }
.cd2-sidebar__row.is-active .cd2-sidebar__link { color: var(--cd2-primary); font-weight: 700; }
.cd2-sidebar__link svg { flex: 0 0 auto; width: 18px; height: 18px; color: inherit; }
/* Los SVG de segmento traen el naranja de marca fijo en el atributo
   (fill/stroke="#EB661C") porque se comparten con el mega-menú del header,
   el drawer mobile y category-nav. Se recolorean SOLO dentro del sidebar:
   en la cascada, la propiedad CSS fill/stroke gana sobre el atributo de
   presentación, así que el ícono pasa a seguir el color del texto (azul
   de marca inactivo / naranja el segmento abierto) sin tocar los componentes. */
.cd2-sidebar__link svg [fill]:not([fill="none"]) { fill: currentColor; }
.cd2-sidebar__link svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.cd2-sidebar__name { flex: 1 1 auto; }
.cd2-sidebar__count { font-size: var(--cd2-fs-xs); color: var(--cd2-text-mute); font-weight: 400; }
.cd2-sidebar__row.is-active .cd2-sidebar__count { color: var(--cd2-primary); }

.cd2-sidebar__caret_btn {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px;
  background: none; border: 0; color: var(--cd2-text-mute); cursor: pointer;
}
.cd2-sidebar__item.is-open .cd2-sidebar__caret { transform: rotate(180deg); }
.cd2-sidebar__caret { transition: transform .18s ease; }
.cd2-sidebar__link .cd2-sidebar__caret { margin-left: auto; }

.cd2-sidebar__submenu {
  list-style: none; margin: 0; padding: 2px 0 8px 20px; margin-left: 18px;
  border-left: 2px solid var(--cd2-primary);
}
/* Estado inicial del acordeón (antes vivía como style="display:none" inline
   en sidebar.blade.php, condicionado al mismo booleano que ya pone "is-open"
   en el item). sidebar.js sigue alternando display vía inline style en cada
   click, así que esta regla solo gobierna el primer render. */
.cd2-sidebar__item:not(.is-open) .cd2-sidebar__submenu { display: none; }
.cd2-sidebar__submenu a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--cd2-radius-sm);
  font-size: var(--cd2-fs-sm); font-weight: 500; color: var(--cd2-brand-blue); text-decoration: none;
}
.cd2-sidebar__submenu a:hover { background: var(--cd2-surface-alt); color: var(--cd2-primary); }
.cd2-sidebar__submenu a.is-active { color: var(--cd2-primary); font-weight: 700; background: var(--cd2-primary-soft); }
.cd2-sidebar__subcount { margin-left: auto; color: var(--cd2-text-mute); font-weight: 400; }
.cd2-sidebar__subcount::before { content: "("; }
.cd2-sidebar__subcount::after  { content: ")"; }
.cd2-sidebar__submenu a.is-active .cd2-sidebar__subcount { color: var(--cd2-primary); }

/* Layout: sidebar + contenido -------------------------------------------- */
.cd2-page-shell {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 16px var(--cd2-gap); max-width: 1600px; margin: 0 auto;
}
.cd2-page-shell > .content-wrapper { padding: 0; max-width: none; margin: 0; }

@media (max-width: 900px) {
  .cd2-page-shell { display: block; padding: 0; }
  .cd2-page-shell > .content-wrapper { padding: 0 12px; }
  .cd2-sidebar { display: none; }
}

/* ==========================================================================
   cuponidad-v2 / components/groupers.css
   Nuevo: fila de agrupadores del home (PDF "Cambios 070926").
   Real: resources/views/components/globals/groupers.blade.php (nuevo)
   Origen visual: resources/maqueta/assets/css/components/groupers.css
   ========================================================================== */

.cd2-groupers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }

.cd2-grouper {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--cd2-surface);
  border: 1px solid var(--cd2-border);
  border-radius: var(--cd2-radius);
  box-shadow: var(--cd2-shadow-sm);
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
  font-family: var(--cd2-font-base);
}
.cd2-grouper:hover { box-shadow: var(--cd2-shadow); transform: translateY(-1px); }

.cd2-grouper__icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: var(--cd2-text-invert);
  border-radius: var(--cd2-radius-sm);
}
.cd2-grouper__icon svg { width: 22px; height: 22px; fill: currentColor; }
.cd2-grouper__icon svg path { fill: currentColor; }
.cd2-grouper__body { flex: 1 1 auto; min-width: 0; }
.cd2-grouper__body b { display: block; font-size: var(--cd2-fs-md); color: var(--cd2-title); }
.cd2-grouper__body small { display: block; font-size: var(--cd2-fs-xs); color: var(--cd2-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cd2-grouper--1 .cd2-grouper__icon { background: var(--cd2-g1-ink); }
.cd2-grouper--2 .cd2-grouper__icon { background: var(--cd2-g2-ink); }
.cd2-grouper--3 .cd2-grouper__icon { background: var(--cd2-g3-ink); }
.cd2-grouper--4 .cd2-grouper__icon { background: var(--cd2-g4-ink); }

@media (max-width: 900px) {
  .cd2-groupers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .cd2-groupers::-webkit-scrollbar { display: none; }
  .cd2-grouper { flex: 0 0 auto; width: 160px; padding: 8px 10px; gap: 8px; }
  .cd2-grouper__icon { width: 32px; height: 32px; }
  .cd2-grouper__body b { font-size: var(--cd2-fs-xs); }
  .cd2-grouper__body small { font-size: 10px; }
}

/* ==========================================================================
   cuponidad-v2 / components/account-nav.css
   Menú de cuenta horizontal (Mi perfil / Mis cupones / Mis créditos / Mis
   referidos / Contáctanos / Cerrar sesión). Va encima del título en las
   páginas de cuenta (/user/*) y en el carrito, por eso vive en el bundle
   global (app.css) y no en pages/account.css.
   Real: resources/views/components/globals/account-nav.blade.php
   ========================================================================== */

.cd2-account-nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto;
  margin: 0 0 18px; padding: 5px; background: var(--cd2-surface-alt);
  border: 1px solid var(--cd2-border-soft); border-radius: var(--cd2-radius-pill);
  font-family: var(--cd2-font-base); -ms-overflow-style: none; scrollbar-width: none;
}
.cd2-account-nav::-webkit-scrollbar { display: none; }
.cd2-account-nav__item {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 16px;
  border-radius: var(--cd2-radius-pill); color: var(--cd2-text-soft);
  font-size: var(--cd2-fs-sm); font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.cd2-account-nav__item:hover, .cd2-account-nav__item:focus {
  background: var(--cd2-surface); color: var(--cd2-title); text-decoration: none; outline: none;
}
.cd2-account-nav__item.is-active {
  background: var(--cd2-primary-soft); color: var(--cd2-primary);
  box-shadow: inset 0 -2px 0 var(--cd2-primary);
}
.cd2-account-nav__item--end { margin-left: auto; color: var(--cd2-primary); }
.cd2-account-nav__icon {
  display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: inherit;
}
.cd2-account-nav__icon svg { width: 100%; height: auto; }
.cd2-account-nav__icon .fa { font-size: 15px; color: inherit; }
@media (max-width: 480px) {
  .cd2-account-nav__item { padding: 8px 12px; }
  .cd2-account-nav__label { font-size: var(--cd2-fs-xs); }
}

/* ==========================================================================
   cuponidad-v2 / app.css
   Punto de entrada único de la nueva capa visual (namespace cd2-*).
   Solo imports: variables globales + componentes reutilizables.
   Los estilos específicos de cada página van en pages/*.css y se
   cargan aparte (uno por vista), no se importan aquí.
   ========================================================================== */

