/* ===== MigasDeli — Flat UI (base depurado) ===== */

/* Importa módulos auxiliares (formularios, modal, tablas) */
@import url("mystyle_flat_nav.css");
@import url("mystyle_flat_carrusel.css");
@import url("mystyle_flat_form.css");
@import url("mystyle_flat_modal.css");
@import url("mystyle_flat_tables.css");

/* ====== Tokens ====== */
:root{
  --md-red:#c40021; --md-red-700:#8e0016; --md-red-600:#a3001c; --md-red-200:#ffd5dd;

  --md-black:#0f0f11; --md-bg:#ffffff; --md-ink:#121212; --md-ink-2:#3c3c3f;

  --md-gray-25:#fbfbfc; --md-gray-50:#f4f5f6; --md-gray-100:#ececef;
  --md-gray-150:#e4e4e8; --md-gray-200:#dbdbe0; --md-gray-300:#c8c8cf;

  --md-shadow:0 10px 28px rgba(0,0,0,.10);
  --radius:14px; --radius-sm:10px; --radius-xs:8px;
  --focus:#1a5cff;

  /* THEME RED-ALL (tokens) */
  --allred-H:350; --allred-S:66%; --allred-L:40%;
  --allred-bg:hsl(var(--allred-H) var(--allred-S) var(--allred-L));
  --allred-bg-2:hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) + 4%));
  --allred-bg-3:hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) + 7%));
  --allred-stroke:hsla(0,0%,100%,.28);
  --allred-stroke-strong:hsla(0,0%,100%,.42);
  --allred-ink:#fff; --allred-ink-2:rgba(255,255,255,.82); --allred-ink-3:rgba(255,255,255,.64);
  --allred-focus:rgba(255,255,255,.28);
  --allred-redsoft:hsl(350,80%,75%);
}

/* ====== Reset suave ====== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans";
  color:var(--md-ink);
  background:var(--md-gray-50);
}

/* ====== Tema: boost de contraste ====== */
body.theme-boost{
  background:linear-gradient(180deg,var(--md-gray-50),var(--md-gray-25));
}
body.theme-boost .card{
  border-color:var(--md-gray-200);
  box-shadow:var(--md-shadow);
}
body.theme-boost .card__header{
  background:linear-gradient(180deg,#fff,#f8f8f9);
}



/* ====== Container / grid ====== */
.container{ padding:20px 16px; max-width:1200px; margin:0 auto; }
/* Quita el padding vertical del container solo dentro del topbar */
.md-topbar > .container,
.md-topbar .md-topbar__inner{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* mantén el gutter lateral */
  padding-left: 16px;
  padding-right: 16px;
  min-height: var(--topbar-h, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.grid{ display:grid; gap:16px; grid-template-columns:repeat(12,1fr); }

/* NOTE: Estilos de .card/.card__header/.card__body/.card__title
   fueron movidos a mystyle_flat_tables.css (no duplicar aquí). */

/* ====== Badges ====== */
.badge{ display:inline-block; background:var(--md-red-200); color:var(--md-red-700); padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.2px; }
.badge-neutral{ background:var(--md-gray-200); color:#2b2b2d; }

/* ====== Buttons ====== */
.btn{
  --bg:var(--md-gray-100); --fg:#111; --bd:var(--md-gray-200);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 15px; border-radius:12px;
  border:1px solid var(--bd); background:var(--bg); color:var(--fg);
  font-weight:700; letter-spacing:.2px;
  cursor:pointer; transition:transform .04s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.btn:hover{ background:var(--md-gray-150); }
.btn-primary{ --bg:var(--md-red); --fg:#fff; --bd:var(--md-red); }
.btn-primary:hover{ background:var(--md-red-600); border-color:var(--md-red-600); }
.btn-secondary{ --bg:var(--md-black); --fg:#fff; --bd:var(--md-black); }
.btn-secondary:hover{ background:#0a0a0c; border-color:#0a0a0c; }
.btn-ghost{ --bg:transparent; --fg:#1a1a1c; --bd:var(--md-gray-200); }
.btn-ghost:hover{ background:var(--md-gray-100); }
.btn-danger{ --bg:#d92d20; --fg:#fff; --bd:#d92d20; }
.btn-danger:hover{ background:#b42318; border-color:#b42318; }

.icon-btn{
  display:inline-grid; place-items:center; width:36px; height:36px;
  border-radius:10px; border:1px solid var(--md-gray-200); background:#fff; color:#111;
  cursor:pointer; font-size:22px; line-height:1;
}
.icon-btn:hover{ background:var(--md-gray-100); }
.icon-btn:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }

/* Botón de cerrar integrado con headers rojos (modal/topbar) */
.icon-btn--header{ border:0; background:transparent; color:#fff; }
.icon-btn--header:hover{ background:rgba(255,255,255,.12); }
.icon-btn--header:focus-visible{ outline:3px solid #fff; outline-offset:2px; }

/* ====== Stats (se quedan aquí) ====== */
.stat{ border:2px solid var(--md-gray-200); border-radius:12px; padding:14px; background:#fff; }
.stat__label{ color:#4b4b4f; display:block; font-weight:600; }
.stat__value{ font-size:28px; font-weight:900; }

/* ====== Helpers de layout ====== */
.buttons{ display:flex; flex-wrap:wrap; gap:10px; }
.alerts{ display:grid; gap:10px; } /* contenedor; estilos .alert viven en tables.css */
.spacer{ height:10px; }

/* ====== Accesibilidad baseline ====== */
a, button, input, select, textarea{ -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}



/* ===== THEME RED-ALL (solo overrides base; los de forms/modals/tables están en sus módulos) ===== */
.theme-red-all{
  --allred-L:38%;
  background:var(--allred-bg);
  color:var(--allred-ink);
  color-scheme:dark;
}

/* Texto legible en contenedores base */
.theme-red-all .container,
.theme-red-all .card,
.theme-red-all .card__body,
.theme-red-all .modal__content{ color:var(--allred-ink); }


.theme-red-all .md-logo{ background:rgba(255,255,255,.18); }

/* Badges */
.theme-red-all .badge{ background:rgba(255,255,255,.16); color:#fff; }

/* Botones base */
.theme-red-all .btn{
  --bg:rgba(255,255,255,.08);
  --fg:#fff; --bd:var(--allred-stroke);
  background:var(--bg); color:var(--fg); border:1px solid var(--bd);
}
.theme-red-all .btn:hover{ background:rgba(255,255,255,.14); }
.theme-red-all .btn:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.theme-red-all .btn-primary{ --bg:#fff; --fg:var(--allred-bg); --bd:#fff; }
.theme-red-all .btn-primary:hover{ background:#f3f3f3; }
.theme-red-all .btn-secondary{ --bg:rgba(0,0,0,.28); --fg:#fff; --bd:transparent; }


/* Focus global accesible */
.theme-red-all :is(a,button,input,select,textarea,.icon-btn,.btn):focus-visible{
  outline:3px solid #fff; outline-offset:2px;
}

/* Presets opcionales de intensidad */
.theme-red-all.intenso{ --allred-L:43%; }
.theme-red-all.muy-suave{ --allred-L:46%; }
.theme-red-all.profundito{ --allred-L:36%; }

/* ===== FIX: Topbar fija (segura) ===== */
:root{
  /* ajusta si tu topbar es más alta/baja */
  --topbar-h: 56px;
}


/* Empuja el contenido para que no quede bajo la barra */
body{
  padding-top: var(--topbar-h);
}



/* 4) Si hay acciones con .icon-btn al lado del menú, achícalas en móvil */


/* ===== MENÚ CENTRADO BAJO EL BOTÓN (móvil) ===== */



/* ===== Page Banner (full-bleed, sutil) ===== */
.page-banner{
  position: relative; z-index: 1;
  /* full-bleed aunque esté dentro de .container */

  background: linear-gradient(180deg, #ffffff, #f7f7f9);
  border-bottom: 1px solid var(--md-gray-200);
  color: var(--md-ink);
}
.page-banner__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.page-banner__title{
  margin: 0;
  font-weight: 900;
  font-size: 22px;
}
.page-banner__meta{ color: var(--md-ink-2); }
.page-banner__user{ display: inline-flex; align-items: center; gap: 8px; }
.page-banner .ico{ width: 18px; height: 18px; }

/* Responsive: stack en móvil */
@media (max-width: 520px){
  .page-banner__inner{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-banner__title{ font-size: 20px; }
}

/* Tema rojo (theme-red-all) */
.theme-red-all .page-banner{
  background: var(--allred-bg-3);
  border-bottom: 1px solid var(--allred-stroke);
  color: #fff;
}
.theme-red-all .page-banner__meta{ color: var(--allred-ink-2); }

/* Separación bajo el banner de página */
.page-banner{
  margin-bottom: 12px;   /* respiro bajo el banner */
}
@media (min-width: 880px){
  .page-banner{ margin-bottom: 16px; }
}

/* ===== Page Footer (one-liner desktop / multiline mobile) ===== */
.page-footer{
  background: linear-gradient(180deg, #ffffff, #f8f8f9);
  border-top: 1px solid var(--md-gray-200);
  color: var(--md-ink-2);
  font-size: 13px;
  margin-top: 16px;                 /* separación con la sección anterior */
}
@media (min-width: 880px){
  .page-footer{ margin-top: 24px; }
}
@media (max-width:576px){ .page-footer{ padding-bottom:72px; } }


.page-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  white-space: nowrap;              /* desktop: 1 línea */
  overflow: auto;                   /* desktop: scroll si no cabe */
  -webkit-overflow-scrolling: touch;
}
.page-footer__inner::-webkit-scrollbar{ display: none; }

.page-footer a{ color: inherit; text-decoration: none; }
.page-footer a:hover{ text-decoration: underline; }
.page-footer .sep{ margin: 0 8px; }

/* Tema rojo */
.theme-red-all .page-footer{
  background: var(--allred-bg-3);
  border-top: 1px solid var(--allred-stroke);
  color: #fff;
}
.theme-red-all .page-footer a{ color:#fff; }

/* ===== Mobile: sin scroll, centrado y multiline ===== */
@media (max-width: 520px){
  .page-footer{
    /* full-width normal (sin trucos de 100vw) */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .page-footer__inner{
    display: flex;
    align-items: center;
    justify-content: center;        /* centra contenido */
    gap: 8px;
    font-size: 12px;
    padding: 8px 12px;
    white-space: normal;            /* permite saltos */
    overflow: visible;              /* sin scroll en móvil */
    text-align: center;
  }
  .page-footer .sep{ margin: 0 6px; }
  .page-footer__inner .build{ display: none; } /* opcional: oculta versión en móvil */
}

/* ===== Footer normalizado (grid propio) ===== */
.page-footer__inner{ max-width: 1200px; margin: 0 auto; padding: 16px; box-sizing: border-box; }
.page-footer__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;           /* espacio entre columnas en móvil */
  align-items: start;
}
.page-footer__col{ min-width: 0; } /* evita overflow en textos largos */
.page-footer__title{ margin: 0 0 8px; font-weight: 700; }
.page-footer__list{ list-style: none; padding: 0; margin: 0; }
.page-footer__list li{ margin-bottom: 6px; }
.page-footer__social{ margin-top: 10px; display: flex; gap: 12px; }
.social-link{
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}

/* Copyright centrado y separado */
.page-footer__copyright{
  text-align: center;
  margin-top: 12px;
}

/* Layout en escritorio */
@media (min-width: 768px){
  .page-footer__grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Si botones flotantes tapan el footer en móvil, deja aire: */
@media (max-width: 576px){
  .page-footer{ padding-bottom: 72px; }
}

/* === Footer: apilar y centrar === */
.page-footer__inner{
  display: flex !important;      /* anula cualquier display previo */
  flex-direction: column !important;
  gap: 12px;
}

.page-footer__grid{ width: 100%; }

/* Asegura que el bloque de derechos vaya ABAJO y a todo el ancho */
.page-footer__copyright{
  order: 2;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  clear: both;                    /* por si hay floats en algún hijo */
  display: block;
}

/* Si en alguna vista aún usan la versión con .row/.col de Bootstrap: */
.page-footer .row + .row .col,
.page-footer .row + .row .col-12{
  flex: 0 0 100%;
  max-width: 100%;
}



/* ===== Contenedor tipo fila ===== */
.row {
  display: flex;
  flex-wrap: wrap;

  justify-content: flex-start;
  margin-block: 24px;   /* agrega margen arriba y abajo */
}

/* Si hay solo una card y quieres centrarla */
.row.is-center{ justify-content: center; }

/* ===== Utilitarios de ancho ===== */
.w-1-1{ flex: 0 1 98%; }         /* full */
.w-2-3{ flex: 0 1 65%; }      /* dos tercios */
.w-1-2{ flex: 0 1 48%; }          /* mitad */
.w-1-3{ flex: 0 1 32%; }      /* un tercio */
.w-1-4 { flex: 0 1 24%; }
.w-1-5 { flex: 0 1 19%; }

@media (max-width: 768px){
  .w-2-3, .w-1-2, .w-1-3, .w-1-4, .w-1-5{ flex-basis: 100%; }
}

.ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
}
.group-item .ico {
  width: 16px;
  height: 16px;
  margin-right: 6px; /* para separarlo del texto */
}

.product-img{ width:220px; height:190px; object-fit:cover; }
@media (min-width:992px){ .product-img{ width:240px; height:190px; } }












/* Social links (footer) */
.theme-red-all .social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  border: 1px solid var(--allred-stroke);
  background: rgba(255,255,255,.10);
}
.theme-red-all .social-link:hover {
  background: rgba(255,255,255,.14);
}





/* ===== HEADER/FOOTER “FLUSH” ===== */
/* Si quieres el footer pegado al borde inferior */
.theme-red-all .page-footer{ margin-top:0 !important; }



/* ===== ICONOS planos en topbar ===== */
.theme-red-all .icon-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
}
.theme-red-all .icon-link:hover,
.theme-red-all .icon-link:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
}



/* ===== Footer flush y mismo color que nav ===== */
.theme-red-all .page-footer{
  background: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%)) !important;
  color: #fff;
  border-top: none;     /* sin línea de separación */
  margin-top: 0;        /* pegado al borde inferior */
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Títulos y links en footer */
.theme-red-all .page-footer h5,
.theme-red-all .page-footer .fw-bold{
  color:#fff;
}

.theme-red-all .page-footer a{
  color:#fff;
  text-decoration:none;
}
.theme-red-all .page-footer a:hover,
.theme-red-all .page-footer a:focus{
  text-decoration:underline;
}

/* Iconos de redes */
.theme-red-all .page-footer .social-link{
  color:#fff;
  border:1px solid var(--allred-stroke);
  background: rgba(255,255,255,.10);
}
.theme-red-all .page-footer .social-link:hover{
  background: rgba(255,255,255,.14);
}

/* ===== Fix tipografía footer (evita solapamiento de líneas) ===== */
.theme-red-all .page-footer,
.theme-red-all .page-footer *{
  line-height: 1.45;              /* base segura */
  letter-spacing: 0;               /* sin tracking extra */
}

.theme-red-all .page-footer h5{
  line-height: 1.2;
  margin: 0 0 .75rem 0;
}

.theme-red-all .page-footer p,
.theme-red-all .page-footer li,
.theme-red-all .page-footer a,
.theme-red-all .page-footer small{
  line-height: 1.6;                /* más aire para texto corrido */
  margin: 0 0 .35rem 0;            /* separa líneas */
  text-decoration: none;
}

.theme-red-all .page-footer ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-red-all .page-footer .row{
  align-items: flex-start;         /* evita estirar vertical raro */
  gap: 0;
}

/* Por si alguna regla global aplicó display extraño */
.theme-red-all .page-footer p,
.theme-red-all .page-footer li,
.theme-red-all .page-footer a{
  display: block;                  /* asegura flujo normal */
}

/* Mantén contraste */
.theme-red-all .page-footer a:hover,
.theme-red-all .page-footer a:focus{ text-decoration: underline; }

/* Footer: permitir saltos de línea y flujo normal (evita traslapes) */
.theme-red-all .page-footer__inner{
  white-space: normal !important;
  overflow: visible !important;
}

/* Asegura bloque normal en el contenido del footer */
.theme-red-all .page-footer p,
.theme-red-all .page-footer li,
.theme-red-all .page-footer a{
  display: block;       /* flujo vertical normal */
  white-space: normal;  /* por si heredan nowrap de otro lado */
}
/* ===== Footer: alinear iconos con texto ===== */
.theme-red-all .page-footer .list-unstyled li{
  display: flex;                 /* ícono + texto en una misma fila */
  align-items: flex-start;       /* que el ícono se alinee al inicio del texto (sirve si hay 2 líneas) */
  gap: 8px;
  line-height: 1.5;              /* respiración estable */
  margin: 0 0 .35rem 0;
}

/* Normaliza el bloque del ícono */
.theme-red-all .page-footer .list-unstyled li i{
  flex: 0 0 1.25em;              /* ancho fijo para alinear verticalmente todas las filas */
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;               /* microajuste para centrar ópticamente con el texto */
}

/* El texto (link o span) debe comportarse como texto normal, no bloque separado */
.theme-red-all .page-footer .list-unstyled li a,
.theme-red-all .page-footer .list-unstyled li span{
  display: inline;               /* anula cualquier display:block previo */
  white-space: normal;
}







/* === Floating actions — theme-red-all (limpio y unificado) === */
.theme-red-all .whatsapp-btn-institucional,
.theme-red-all .cliente-dashboard-btn-vertical{
  position: fixed;
  z-index: 1190;                        /* debajo de modales */
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  border: 1px solid var(--allred-stroke);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%));   /* rojo institucional */
  background: hsl(var(--allred-H) var(--allred-S) 96%);                      /* rojo muy claro = default */
}

/* WhatsApp — botón circular */
.theme-red-all .whatsapp-btn-institucional{
  inset: auto max(1.2rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) auto;
  width: 52px; height: 52px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
}
.theme-red-all .whatsapp-btn-institucional i{ font-size: 1.35rem; line-height: 1; }

/* “Mi cuenta” — tarjeta vertical */
.theme-red-all .cliente-dashboard-btn-vertical{
  right: max(1.2rem, env(safe-area-inset-right));
  bottom: calc(52px + 1.2rem + 12px);   /* separada del WhatsApp */
  width: 96px;
  padding: 10px 12px;
  border-radius: 14px;
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
}
.theme-red-all .cliente-dashboard-btn-vertical i{ font-size: 1.35rem; line-height: 1; }
.theme-red-all .cliente-dashboard-btn-vertical span{
  font-size:.85rem; line-height:1.25;
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%));
}

/* Hover / Focus (ambos) */
.theme-red-all .whatsapp-btn-institucional:hover,
.theme-red-all .whatsapp-btn-institucional:focus,
.theme-red-all .cliente-dashboard-btn-vertical:hover,
.theme-red-all .cliente-dashboard-btn-vertical:focus{
  background: hsl(var(--allred-H) var(--allred-S) 92%);  /* un toque más marcado */
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 10%));
  outline: 3px solid rgba(255,0,0,.2);
  outline-offset: 2px;
}

/* Variante sólida (opcional) → agrega .is-solid para fondo rojo sólido + texto/ícono blanco */
.theme-red-all .whatsapp-btn-institucional.is-solid,
.theme-red-all .cliente-dashboard-btn-vertical.is-solid{
  background: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%));
  color:#fff;
  border-color: var(--allred-stroke);
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
}
.theme-red-all .whatsapp-btn-institucional.is-solid:hover,
.theme-red-all .whatsapp-btn-institucional.is-solid:focus,
.theme-red-all .cliente-dashboard-btn-vertical.is-solid:hover,
.theme-red-all .cliente-dashboard-btn-vertical.is-solid:focus{
  background: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 10%));
  outline: 3px solid rgba(255,255,255,.25);
}

/* Responsivo */
@media (max-width: 420px){
  .theme-red-all .whatsapp-btn-institucional{ width:46px; height:46px; }
  .theme-red-all .cliente-dashboard-btn-vertical{
    width:88px; padding:8px 10px;
    bottom: calc(46px + 1rem + 10px);
  }
  .theme-red-all .cliente-dashboard-btn-vertical span{ font-size:.8rem; }
}

/* Evitar solapar el borde inferior del viewport cuando hay poco contenido */
@supports (height: 100svh){
  .theme-red-all .page-footer{ padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
/* Ajuste visual floating buttons */
.theme-red-all .whatsapp-btn-institucional,
.theme-red-all .cliente-dashboard-btn-vertical{
  background: hsl(var(--allred-H) var(--allred-S) 94%); /* rojo atenuado más perceptible */
  box-shadow: 0 6px 18px rgba(0,0,0,.20); /* sombra más notoria */
}

.theme-red-all .cliente-dashboard-btn-vertical{
  border-radius: 18px; /* borde más suave */
}
/* WhatsApp flotante — icono rojo institucional */
.theme-red-all .whatsapp-btn-institucional{
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%)); /* rojo nav/footer */
}

.theme-red-all .whatsapp-btn-institucional:hover,
.theme-red-all .whatsapp-btn-institucional:focus{
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 10%)); /* rojo más oscuro al hover */
}
/* WhatsApp pastel: fuerza icono rojo (aunque otras reglas lo pisen) */
.theme-red-all .whatsapp-btn-institucional:not(.is-solid),
.theme-red-all .whatsapp-btn-institucional:not(.is-solid) i,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid) svg{
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%)) !important;
  fill:  hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%)) !important; /* por si es SVG */
}

/* Hover más oscuro */
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):hover,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):focus,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):hover i,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):focus i,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):hover svg,
.theme-red-all .whatsapp-btn-institucional:not(.is-solid):focus svg{
  color: hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 10%)) !important;
  fill:  hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 10%)) !important;
}



/* ===== Barra Usuario (base neutral, refinada) ===== */
.barra-usuario{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;

  background:#fff;
  color:var(--md-ink);
  font-size:.875rem;
  font-weight:600;
  padding:6px 12px;
  margin-top:12px;                    /* respiro bajo el nav */
  border:1px solid var(--md-gray-200);
  border-radius: var(--radius, 14px); /* esquinas suaves */
}

/* Responsive */
@media (max-width:768px){
  .barra-usuario{
    flex-direction:column;
    text-align:center;
  }
}

/* ===== Skin tema rojo ===== */
.theme-red-all .barra-usuario{
  background:hsl(var(--allred-H) var(--allred-S) calc(var(--allred-L) - 6%));
  color:#fff;
  border:1px solid var(--allred-stroke);
}

/* ===== Ajuste de texto atenuado en tema rojo ===== */
.theme-red-all .text-muted {
  color: var(--allred-ink-2, rgba(255,255,255,.82)) !important;
}

.theme-red-all a {
  color: var(--allred-ink) !important;
  text-decoration: none;
}
.theme-red-all a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===== Marco con fusión (vignette interno) ===== */
:root{
  --blend-width: 10px;   /* grosor del halo (ajusta a 6–12px) */
  --blend-soft: 28px;    /* blur del halo (ajusta a 20–40px) */
}

/* Wrapper exterior: respeta tema rojo y da estructura */
.theme-red-all .blend-frame{
  position: relative;
  background: var(--allred-bg-2);
  border: 1px solid var(--allred-stroke);
  border-radius: 16px;
  padding: 8px;                  /* separación del contenedor rojo */
}

/* Contenedor interior blanco (imagen/mapa) */
.theme-red-all .blend-inner{
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;              /* recorta el halo dentro */
}

/* Vignette real: dos sombras internas (grosor + blur) en color del tema */
.theme-red-all .blend-inner::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  /* 1) aro fino (grosor controlado), 2) desvanecido más suave */
  box-shadow:
    inset 0 0 0 var(--blend-width) hsl(var(--allred-H) var(--allred-S) var(--allred-L) / .25),
    inset 0 0 var(--blend-soft) calc(var(--blend-width) * 1.2) hsl(var(--allred-H) var(--allred-S) var(--allred-L) / .35);
}

/* Asegura que el contenido llene y herede el recorte */
.theme-red-all .blend-inner > img,
.theme-red-all .blend-inner > iframe{
  display:block; width:100%; height:100%;
  border:0;
  border-radius: 12px; /* coincide con el contenedor */
}


/* Bloque precio + acción */
.product-actions{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.product-actions .price{ margin:0; font-size:1.125rem; } /* ≈ fs-5 */
.product-actions .btn i{ margin-right:6px; }

/* En alert, que el link herede color y no desarme el skin */
.alert.warning a{ color:inherit; text-decoration: underline; }


/* Bloque “precio bloqueado” (flat + theme-red-all) */
.theme-red-all .price-locked{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px 10px; border-radius:12px;
  background: var(--allred-bg-2);
  border:1.5px solid var(--allred-stroke);
  color:#fff;
}
.theme-red-all .price-locked .hint{ margin:0; color:#fff; }
.theme-red-all .price-locked i{ opacity:.9; }

/* Tamaño compacto del botón */
.btn--sm{ height:34px; padding:0 12px; font-size:.92rem; line-height:1; }

/* === Flechas del slider principal (consistentes con NAV) === */
.theme-red-all{
  /* fallbacks si el topbar no expone variables propias */
  --nav-surface: var(--topbar-bg, var(--allred-bg-3));
  --nav-surface-hover: var(--topbar-bg-2, var(--allred-bg-2));
  --nav-ink: var(--topbar-ink, #fff);
  --nav-stroke: var(--topbar-stroke, var(--allred-stroke));
  --focus-ring: var(--allred-focus, rgba(255,255,255,.28));
}

