/* =============================================================
   PO27 · Plantilla 2027 · Unique Platform
   Neutro por defecto, marca solo en lo accionable.
   Tema en [data-theme]: “auto” lo fija por hora local (claro 07–19 h, oscuro de noche) o el visitante lo elige; prefers-color-scheme solo queda de respaldo sin JS.
   Sin Bootstrap: incluye una capa mínima de compatibilidad para el HTML
   que inyectan b/modulos/cms/modulos/photos (script.js, shopping-cart, detalle-fotos).
   ============================================================= */

/* ─────────────────────────────────────────────
   1. TOKENS
   ───────────────────────────────────────────── */
:root {
  /* Marca (sobrescrito por po27_brand_css) */
  --brand: #e8342a;
  --brand-btn: #cc2c23;
  --on-brand: #ffffff;
  --brand-text: #c52a21;
  --brand-text-dark: #ff8a80;

  /* Neutros — claro */
  --ink: #0c0c10;
  --ink-2: #3a3a44;
  --muted: #6b6b76;
  --paper: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --surface-3: #e9e7e1;
  --line: #e7e5e0;
  --line-strong: #d6d3cb;
  --scrim: rgba(12, 12, 16, .48);
  --glass: rgba(250, 250, 247, .78);

  --success: #0f9f6e;
  --success-soft: #e3f6ee;
  --warning: #c2740a;
  --warning-soft: #fcf0dc;
  --info: #2563eb;
  --danger: #d92d20;
  --danger-soft: #fdecea;

  --brand-ink: var(--brand-text);
  --brand-soft: color-mix(in oklab, var(--brand) 11%, var(--surface));
  --brand-hover: color-mix(in oklab, var(--brand-btn) 88%, #000);
  --brand-ring: color-mix(in oklab, var(--brand) 35%, transparent);

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Instrument Serif", ui-serif, Georgia, serif;

  /* Forma y espacio (escala de 4 px) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --gutter: 16px;
  --header-h: 60px;
  --tap: 44px;
  --maxw: 1240px;

  /* Elevación: un único nivel para flotantes */
  --shadow: 0 1px 2px rgba(12, 12, 16, .04), 0 12px 32px -8px rgba(12, 12, 16, .16);
  --shadow-lift: 0 2px 4px rgba(12, 12, 16, .05), 0 24px 56px -12px rgba(12, 12, 16, .24);

  /* Movimiento */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .15s;
  --t: .28s;
  --t-slow: .6s;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: light;
}

/* Oscuro — automático salvo que el usuario haya elegido claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f4f1;
    --ink-2: #cfcfcb;
    --muted: #9d9da8;
    --paper: #0b0b0e;
    --surface: #141418;
    --surface-2: #1c1c21;
    --surface-3: #26262d;
    --line: #26262c;
    --line-strong: #34343c;
    --scrim: rgba(0, 0, 0, .62);
    --glass: rgba(11, 11, 14, .72);
    --success-soft: rgba(15, 159, 110, .16);
    --warning-soft: rgba(194, 116, 10, .18);
    --danger-soft: rgba(217, 45, 32, .18);
    --brand-ink: var(--brand-text-dark);
    --brand-soft: color-mix(in oklab, var(--brand) 18%, var(--surface));
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -8px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 64px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f4f4f1;
  --ink-2: #cfcfcb;
  --muted: #9d9da8;
  --paper: #0b0b0e;
  --surface: #141418;
  --surface-2: #1c1c21;
  --surface-3: #26262d;
  --line: #26262c;
  --line-strong: #34343c;
  --scrim: rgba(0, 0, 0, .62);
  --glass: rgba(11, 11, 14, .72);
  --success-soft: rgba(15, 159, 110, .16);
  --warning-soft: rgba(194, 116, 10, .18);
  --danger-soft: rgba(217, 45, 32, .18);
  --brand-ink: var(--brand-text-dark);
  --brand-soft: color-mix(in oklab, var(--brand) 18%, var(--surface));
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -8px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 64px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 68px; }
}

/* ─────────────────────────────────────────────
   2. BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--brand-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.i { flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.po27-skip {
  position: fixed; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; transition: top var(--t) var(--ease);
}
.po27-skip:focus { top: calc(12px + var(--safe-t)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Tipografía utilitaria */
.po27-display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; font-variation-settings: "opsz" 96; }
.po27-accent { font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.po27-eyebrow { font: 700 12px/16px var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.po27-muted { color: var(--muted); }
.po27-small { font-size: 14px; line-height: 20px; }
.po27-tiny { font-size: 12px; line-height: 16px; }

.po27-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ─────────────────────────────────────────────
   3. BOTONES · CHIPS · CONTROLES
   ───────────────────────────────────────────── */
.po27-btn {
  --_bg: var(--surface-2); --_fg: var(--ink); --_bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--_bd); border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg);
  font: 650 16px/1 var(--f-text); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t-fast);
}
.po27-btn:hover { --_bg: var(--surface-3); }
.po27-btn:active { transform: scale(.975); }
.po27-btn[disabled], .po27-btn.disabled { opacity: .45; pointer-events: none; }
.po27-btn--primary {
  --_bg: var(--brand-btn); --_fg: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px -10px color-mix(in oklab, var(--brand) 70%, transparent);
}
.po27-btn--primary:hover { --_bg: var(--brand-hover); }
.po27-btn--dark { --_bg: var(--ink); --_fg: var(--paper); }
.po27-btn--dark:hover { --_bg: color-mix(in oklab, var(--ink) 86%, var(--paper)); }
.po27-btn--ghost { --_bg: transparent; --_bd: var(--line-strong); }
.po27-btn--ghost:hover { --_bg: var(--surface-2); }
.po27-btn--success { --_bg: var(--success); --_fg: #fff; }
.po27-btn--warning { --_bg: var(--warning-soft); --_fg: var(--warning); }
.po27-btn--glass { --_bg: rgba(255, 255, 255, .16); --_fg: #fff; --_bd: rgba(255, 255, 255, .28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.po27-btn--glass:hover { --_bg: rgba(255, 255, 255, .26); }
.po27-btn--sm { min-height: var(--tap); padding: 0 16px; font-size: 14px; gap: 8px; }
.po27-btn--lg { min-height: 60px; padding: 0 28px; font-size: 17px; }
.po27-btn--block { display: flex; width: 100%; }
.po27-btn .po27-btn__arrow { transition: transform var(--t) var(--ease); }
.po27-btn:hover .po27-btn__arrow { transform: translateX(3px); }
.po27-btn.is-loading { color: transparent !important; pointer-events: none; }
.po27-btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--_fg); border-right-color: transparent; animation: po27-spin .7s linear infinite;
}

.po27-icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 0; border-radius: var(--r-pill); background: transparent; color: inherit;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.po27-icon-btn:hover { background: color-mix(in oklab, currentColor 9%, transparent); }
.po27-icon-btn:active { transform: scale(.94); }

.po27-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font: 600 14px/1 var(--f-text); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.po27-pill:hover { background: var(--surface-2); }
.po27-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  font: 700 11px/1 var(--f-text); font-variant-numeric: tabular-nums;
}
.po27-count.is-active { background: var(--brand-btn); color: var(--on-brand); }
.po27-count.bump { animation: po27-bump .45s var(--ease-out); }

/* Chips (fecha, filtros) */
.po27-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.po27-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink);
  font: 600 15px/1 var(--f-text); cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.po27-chip:hover { background: var(--surface-3); }
.po27-chip:active { transform: scale(.97); }
.po27-chip[aria-pressed="true"], .po27-chip.is-on { background: var(--ink); color: var(--paper); }
.po27-chip input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
/* Calendario de escritorio (dateDropper) con los colores de la marca y la tipografía de po27 */
.po27-chip .po27-dd-trigger { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
html:root {
  --dd-primary: var(--brand-btn); --dd-gradient: var(--brand-btn); --dd-background: var(--surface); --dd-text1: var(--ink); --dd-text2: var(--on-brand);
  --dd-radius: var(--r-md); --dd-shadow: var(--shadow-lift); --dd-range: var(--surface-2); --dd-outline: 2px solid var(--brand);
}
html .dd__dropdown, html .dd__dropdown * { font-family: var(--f-text) !important; }
html .dd__dropdown { z-index: 1600 !important; }
.po27-chip--swatch { padding: 0; width: var(--tap); justify-content: center; }
.po27-chip--swatch span { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* Control segmentado (búsqueda escritorio) */
.po27-seg {
  display: flex; width: 100%; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.po27-seg::-webkit-scrollbar { display: none; }
.po27-seg button {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2);
  font: 600 14px/1 var(--f-text); white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t), box-shadow var(--t);
}
.po27-seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }

/* Campos */
.po27-field { display: grid; gap: 8px; min-width: 0; }
.po27-label { font: 700 12px/16px var(--f-text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.po27-label small { font-weight: 600; text-transform: none; letter-spacing: 0; }
.po27-input, .po27-select,
.po27 .form-control {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: 500 16px/1.2 var(--f-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none; -webkit-appearance: none;
}
.po27 textarea.form-control, textarea.po27-input { min-height: 112px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.po27-input::placeholder, .po27 .form-control::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.po27-input:hover, .po27-select:hover, .po27 .form-control:hover { border-color: color-mix(in oklab, var(--ink) 30%, var(--line-strong)); }
.po27-input:focus, .po27-select:focus, .po27 .form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.po27-select, .po27 select.form-control {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.po27-input--code { font: 700 22px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-align: center; min-height: 60px; }
.po27-input--code::placeholder { letter-spacing: .12em; }
.po27 .form-control.bg-danger, .po27-input.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-soft) !important; background: var(--surface) !important; }

/* Las etiquetas que genera core_crea_formulario */
.po27-form label:not(.po27-chip) { display: block; margin-bottom: 8px; font: 700 12px/16px var(--f-text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ─────────────────────────────────────────────
   4. HEADER
   ───────────────────────────────────────────── */
.po27-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: calc(var(--header-h) + var(--safe-t)); padding-top: var(--safe-t);
  display: flex; align-items: center;
  transition: background var(--t) var(--ease), border-color var(--t), color var(--t), box-shadow var(--t);
  border-bottom: 1px solid transparent;
}
.po27-header__in { display: flex; align-items: center; gap: 12px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: calc(var(--gutter) - 4px); }
.po27-header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; margin-right: auto; }
.po27-header__logo {
  display: grid; place-items: center; height: 40px; min-width: 40px; padding: 4px 8px;
  border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.po27-header__logo img { height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.po27-header__name { font: 700 15px/1.15 var(--f-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.po27-header__name small { display: block; font: 500 12px/1.3 var(--f-text); letter-spacing: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.po27-header__actions { display: flex; align-items: center; gap: 4px; }
.po27-header__link { display: none; }
@media (min-width: 768px) {
  .po27-header__link { display: inline-flex; }
  .po27-header__name { max-width: 28vw; }
}
.po27-header.is-solid, .po27-page:not(.po27-page--index) .po27-header {
  background: var(--glass); border-bottom-color: var(--line);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
}
/* Sobre la foto del hero móvil, el header es claro sobre imagen */
@media (max-width: 767.98px) {
  .po27-page--index .po27-header:not(.is-solid) { color: #fff; }
  .po27-page--index .po27-header:not(.is-solid) .po27-pill { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .po27-page--index .po27-header:not(.is-solid) .po27-header__name { display: none; }
  .po27-page--index .po27-header:not(.is-solid) .po27-count { background: #fff; color: var(--ink); }
}

/* ─────────────────────────────────────────────
   5. SHEETS / DIALOGS
   <dialog class="po27-sheet"> — hoja inferior en móvil, panel centrado en escritorio
   ───────────────────────────────────────────── */
.po27-sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; width: 100%; max-width: 100%;
  max-height: min(92svh, 900px); border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift);
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .42s var(--ease-out), overlay .42s allow-discrete, display .42s allow-discrete;
}
.po27-sheet:not([open]) { display: none; }
.po27-sheet[open] { transform: translateY(0); }
@starting-style { .po27-sheet[open] { transform: translateY(100%); } }
.po27-sheet::backdrop { background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 1; transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
@starting-style { .po27-sheet[open]::backdrop { opacity: 0; } }
.po27-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 2px; flex: none; }
.po27-sheet__head { display: flex; align-items: center; gap: 12px; padding: 12px 20px 8px; flex: none; }
.po27-sheet__head h2 { font-size: 22px; flex: 1; }
.po27-sheet__body { padding: 8px 20px calc(24px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.po27-sheet__foot { padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); flex: none; }
@media (min-width: 768px) {
  .po27-sheet {
    inset: 0; margin: auto; width: min(560px, calc(100vw - 48px)); height: fit-content; max-height: min(86vh, 860px);
    border-radius: var(--r-lg); transform: translateY(16px) scale(.98); opacity: 0;
    transition: transform .32s var(--ease-out), opacity .24s, overlay .32s allow-discrete, display .32s allow-discrete;
  }
  .po27-sheet[open] { transform: none; opacity: 1; }
  @starting-style { .po27-sheet[open] { transform: translateY(16px) scale(.98); opacity: 0; } }
  .po27-sheet__grab { display: none; }
  .po27-sheet__head { padding: 24px 28px 8px; }
  .po27-sheet__body { padding: 8px 28px 28px; }
  .po27-sheet__foot { padding: 16px 28px; }
  .po27-sheet--wide { width: min(760px, calc(100vw - 48px)); }
  /* Drawer lateral (carrito) */
  .po27-sheet--side { inset: 0 0 0 auto; width: 420px; height: 100%; max-height: 100%; border-radius: 0; transform: translateX(100%); opacity: 1; }
  .po27-sheet--side[open] { transform: none; }
  @starting-style { .po27-sheet--side[open] { transform: translateX(100%); opacity: 1; } }
}
body.po27-locked { overflow: hidden; }

/* Ajustes (idioma + apariencia) */
.po27-optlist { display: grid; gap: 6px; }
.po27-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-weight: 600;
}
.po27-opt:hover { background: var(--surface-2); }
.po27-opt[aria-current="true"], .po27-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.po27-opt .i-check { opacity: 0; }
.po27-opt[aria-current="true"] .i-check, .po27-opt[aria-pressed="true"] .i-check { opacity: 1; }
.po27-optgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.po27-optgrid .po27-opt { justify-content: center; flex-direction: column; gap: 6px; min-height: 76px; font-size: 14px; }
.po27-optgrid .po27-opt .i-check { display: none; }

/* ─────────────────────────────────────────────
   6. HOME (pagina-index)
   ───────────────────────────────────────────── */
.po27-home { position: relative; }

/* 6a · Móvil: foto de marca arriba, acción completa en la primera pantalla */
.po27-hero-m { display: block; position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.po27-hero-m__media {
  position: relative; height: 54svh; min-height: 300px; overflow: hidden; flex: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.po27-hero-m__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--brand-filter, none); animation: po27-kenburns 22s var(--ease) infinite alternate; }
.po27-hero-m__media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 130px; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent); }
.po27-hero-m__body { position: relative; margin-top: -88px; padding: 0 var(--gutter) calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 20px; flex: 1; }
.po27-live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 10px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); font: 600 13px/1 var(--f-text); }
.po27-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 60%, transparent); animation: po27-pulse 2.2s infinite; }
.po27-hero-m h1 { font-size: clamp(38px, 11vw, 52px); }
.po27-hero-m h1 .po27-accent { display: block; font-size: 1.08em; line-height: .95; color: var(--brand-ink); }
.po27-hero-m__meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.po27-hero-m__cta { display: grid; gap: 10px; margin-top: auto; }
.po27-hero-m__alts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po27-hero-m__alts .po27-btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.po27-trust { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 18px; text-align: center; }
.po27-trust .i { color: var(--success); }

/* 6b · Escritorio: búsqueda a la izquierda, mosaico de marca a la derecha */
.po27-hero-d { display: none; }
@media (min-width: 768px) {
  .po27-hero-m { display: none; }
  .po27-hero-d {
    display: grid; grid-template-columns: minmax(440px, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px);
    align-items: center; max-width: var(--maxw); margin: 0 auto; min-height: 100svh;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  }
  .po27-hero-d__copy { display: flex; flex-direction: column; gap: 28px; padding-block: 24px; }
  .po27-hero-d h1 { font-size: clamp(44px, 5.4vw, 76px); }
  .po27-hero-d h1 .po27-accent { color: var(--brand-ink); font-size: 1.06em; }
  .po27-hero-d__sub { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 44ch; }
  .po27-perks { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
  .po27-perks li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
  .po27-perks .i { color: var(--success); }
}
@media (max-width: 1279.98px) { .po27-seg button .i { display: none; } }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .po27-hero-d { grid-template-columns: 1fr; min-height: auto; max-width: 640px; }
  .po27-mosaic { display: none !important; }
}

/* Mosaico de fotos del tenant */
.po27-mosaic { position: relative; height: min(78svh, 720px); display: grid; gap: 12px; }
.po27-mosaic[data-n="1"] { grid-template-columns: 1fr; }
.po27-mosaic[data-n="2"] { grid-template-columns: 1.4fr 1fr; }
.po27-mosaic[data-n="3"] { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.po27-mosaic[data-n="3"] .po27-tile:first-child { grid-row: span 2; }
.po27-mosaic[data-n="4"], .po27-mosaic[data-n="5"] { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(6, 1fr); }
.po27-mosaic[data-n="4"] .po27-tile:nth-child(1) { grid-row: span 4; }
.po27-mosaic[data-n="4"] .po27-tile:nth-child(2) { grid-row: span 3; }
.po27-mosaic[data-n="4"] .po27-tile:nth-child(3) { grid-row: span 2; }
.po27-mosaic[data-n="4"] .po27-tile:nth-child(4) { grid-row: span 3; }
.po27-mosaic[data-n="5"] .po27-tile:nth-child(1) { grid-row: span 4; }
.po27-mosaic[data-n="5"] .po27-tile:nth-child(2) { grid-row: span 2; }
.po27-mosaic[data-n="5"] .po27-tile:nth-child(3) { grid-row: span 2; }
.po27-mosaic[data-n="5"] .po27-tile:nth-child(4) { grid-row: span 2; }
.po27-mosaic[data-n="5"] .po27-tile:nth-child(5) { grid-row: span 2; }
.po27-tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); isolation: isolate; }
.po27-tile img { width: 100%; height: 100%; object-fit: cover; filter: var(--brand-filter, none); transition: transform 1.6s var(--ease-out); }
.po27-tile:hover img { transform: scale(1.04); }
.po27-mosaic[data-n="1"] .po27-tile img { animation: po27-kenburns 26s var(--ease) infinite alternate; }
.po27-mosaic__badge {
  position: absolute; z-index: 2; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--glass); color: var(--ink);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow);
  animation: po27-rise .9s .3s var(--ease-out) both;
}
.po27-mosaic__badge b { display: block; font: 700 15px/1.2 var(--f-display); }
.po27-mosaic__badge span { font-size: 13px; color: var(--muted); }
.po27-mosaic__badge .po27-badge-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--success); color: #fff; }

/* Panel de búsqueda (vive en el hero de escritorio o dentro de la hoja en móvil) */
.po27-search { display: grid; gap: 20px; }
.po27-hero-d .po27-search { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.po27-search__pane { display: grid; gap: 20px; animation: po27-fade .35s var(--ease-out); }
.po27-search__pane[hidden] { display: none; }
.po27-search__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.po27-search__row > :only-child { grid-column: 1 / -1; }
.po27-search__help { font-size: 14px; color: var(--muted); }
.po27-search__photo { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); background: var(--paper); }
.po27-search__photo p { color: var(--muted); font-size: 15px; }
.po27-search__photo .po27-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.po27-search .po27-form-msg:empty { display: none; }
@media (max-width: 420px) { .po27-search__row { grid-template-columns: 1fr; } }

/* Mensajes que agrega script.js dentro de #linkdescarga / #linkcompra */
.po27 .alert, .po27-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 12px 0 0 !important; border-radius: var(--r-sm);
  font-size: 15px; line-height: 1.45; background: var(--surface-2); color: var(--ink); border: 0; width: 100%; max-width: none; flex: none;
}
.po27 .alert-danger, .po27-alert--danger { background: var(--danger-soft); color: color-mix(in oklab, var(--danger) 80%, var(--ink)); }
.po27 .alert-success, .po27-alert--success { background: var(--success-soft); color: color-mix(in oklab, var(--success) 70%, var(--ink)); }
.po27 .alert-info, .po27 .alert-warning { background: var(--warning-soft); color: color-mix(in oklab, var(--warning) 75%, var(--ink)); }

/* ─────────────────────────────────────────────
   7. FLUJO SELFIE (consentimiento → cámara → búsqueda → resultado)
   ───────────────────────────────────────────── */
.po27-consent { display: grid; gap: 20px; }
.po27-consent__art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand-ink); }
.po27-consent ul { display: grid; gap: 12px; list-style: none; }
.po27-consent li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.po27-consent li .i { color: var(--success); margin-top: 1px; }

.po27-cam {
  position: fixed; inset: 0; z-index: 1500; background: #000; color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.po27-cam[hidden] { display: none; }
.po27-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.po27-cam__mask {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 25% at 50% 44%, transparent 98%, rgba(0, 0, 0, .62) 100%);
}
@media (min-width: 768px) { .po27-cam__mask { background: radial-gradient(ellipse 15% 28% at 50% 44%, transparent 98%, rgba(0, 0, 0, .62) 100%); } }
.po27-cam__oval {
  position: absolute; left: 50%; top: 44%; width: 68vw; height: 50svh; max-width: 340px; max-height: 460px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
  transition: border-color var(--t), transform var(--t);
}
@media (min-width: 768px) { .po27-cam__oval { width: 30vw; height: 56svh; } }
.po27-cam.is-steady .po27-cam__oval { border-color: var(--success); animation: po27-breathe 1.2s var(--ease) infinite; }
.po27-cam__top { position: relative; z-index: 2; padding: calc(18px + var(--safe-t)) 20px 0; text-align: center; font: 600 17px/1.3 var(--f-display); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.po27-cam__tips { position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; margin-top: auto; padding: 0 20px 18px; }
.po27-cam__tips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; }
.po27-cam__bar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 24px calc(28px + var(--safe-b)); }
.po27-cam__bar button:not(.po27-shutter) { justify-self: center; background: none; border: 0; color: #fff; font: 600 15px/1 var(--f-text); min-height: var(--tap); padding: 0 8px; }
.po27-shutter {
  width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px;
  transition: transform var(--t-fast) var(--ease);
}
.po27-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform var(--t-fast), background var(--t); }
.po27-shutter:active span { transform: scale(.88); }
.po27-cam.is-steady .po27-shutter span { background: var(--success); }
.po27-cam__flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.po27-cam__flash.go { animation: po27-flash .5s var(--ease-out); }

/* Pantalla de búsqueda / resultado del rostro */
.po27-finder {
  position: fixed; inset: 0; z-index: 1400; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: calc(var(--header-h) + 16px) 24px calc(32px + var(--safe-b)); text-align: center; overflow-y: auto;
}
.po27-finder[hidden] { display: none; }
.po27-finder__face { position: relative; width: 168px; height: 168px; border-radius: 50%; padding: 8px; }
.po27-finder__face::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), color-mix(in oklab, var(--brand) 20%, transparent) 70%, var(--brand));
  animation: po27-spin 1.6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.po27-finder.is-done .po27-finder__face::before { animation: none; background: var(--success); }
.po27-finder__face img, .po27-finder__face .po27-finder__ph { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.po27-finder__face img { transform: scaleX(-1); }
.po27-finder h2 { font-size: 30px; }
.po27-finder__sub { color: var(--muted); margin-top: 6px; }
.po27-steps { display: grid; gap: 14px; width: min(340px, 100%); text-align: left; list-style: none; }
.po27-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); transition: color var(--t); }
.po27-steps li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--surface); transition: all var(--t) var(--ease);
}
.po27-steps li.is-active { color: var(--ink); }
.po27-steps li.is-active::before { border-color: var(--brand); border-right-color: transparent; animation: po27-spin .8s linear infinite; }
.po27-steps li.is-done { color: var(--ink); font-weight: 600; }
.po27-steps li.is-done::before {
  border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.po27-progress { width: min(340px, 100%); height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.po27-progress span { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--brand); transition: width .8s var(--ease-out); }
.po27-finder__note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.po27-finder__actions { display: grid; gap: 10px; width: min(360px, 100%); }
.po27-finder__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(340px, 100%); }
.po27-finder__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; animation: po27-pop .5s var(--ease-out) both; }
.po27-finder__thumbs img:nth-child(2) { animation-delay: .08s; }
.po27-finder__thumbs img:nth-child(3) { animation-delay: .16s; }

/* Estados vacíos / límite: siempre un siguiente paso */
.po27-state { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 360px; margin-inline: auto; }
.po27-state__ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--surface-2); color: var(--ink-2); margin-bottom: 4px; }
.po27-state__ico.is-warn { background: var(--warning-soft); color: var(--warning); }
.po27-state__ico.is-ok { background: var(--success-soft); color: var(--success); }
.po27-state h2 { font-size: 24px; }
.po27-state p { color: var(--muted); }
.po27-state .po27-finder__actions { margin-top: 8px; }
.po27-state--wide { max-width: 440px; }

/* Selfie en la nube: consentimiento expreso + compras / álbumes encontrados (docs/selfie-nube/PLAN.md) */
.po27-consent__check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.po27-consent__check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brand-btn); cursor: pointer; }
.po27-consent__check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.po27-consent__check:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-ring); }
.po27-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.po27-multi { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-md); background: var(--warning-soft); color: var(--ink-2) !important; font-size: 13px; }
.po27-multi[hidden] { display: none; }
.po27-multi .i { color: var(--warning); }
.po27-matches { display: grid; gap: 12px; width: 100%; text-align: left; }
.po27-match { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 1px 2px rgba(12, 12, 16, .04); animation: po27-rise .4s var(--ease-out) both; }
.po27-match__top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.po27-match__top img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.po27-match__info { display: grid; gap: 2px; min-width: 0; font-size: 14px; color: var(--muted); }
.po27-match__info b { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.po27-match__mail { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.po27-match__tag { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 700; }
.po27-match__actions { display: grid; gap: 10px; }
.po27-match__form { display: grid; gap: 8px; }
.po27-match__msg { margin: 0; font-size: 13px; color: var(--muted) !important; }
.po27-match__form .po27-match__msg { color: var(--danger) !important; }
.po27-match__form .po27-match__msg:empty { display: none; }
.po27-match__q { margin: 0; font-weight: 700; color: var(--ink) !important; }
.po27-match__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po27 #detail .product.is-you { box-shadow: 0 0 0 3px var(--brand); }
.po27-you { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand-btn); color: var(--on-brand); font-size: 12px; font-weight: 700; pointer-events: none; }

/* ─────────────────────────────────────────────
   8. RESULTADOS (HTML legacy inyectado en #portfolio / #detail / #shopping-cart)
   ───────────────────────────────────────────── */
.po27-results { padding: calc(var(--header-h) + 12px) 0 calc(120px + var(--safe-b)); }
.po27-results[hidden] { display: none; }
.po27-results__bar { display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter) 4px; max-width: var(--maxw); margin: 0 auto; }
.po27-results__bar h2 { font-size: clamp(26px, 4vw, 36px); flex: 1; }
.po27-results__bar .po27-muted { font-size: 14px; }

.po27 #portfolio, .po27 #detail, .po27 #shopping-cart { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) 24px; background: transparent !important; color: var(--ink) !important; }
.po27 .features-list.hidden, .po27 .hidden { display: none !important; }
.po27 #portfolio .container, .po27 #detail .container, .po27 #shopping-cart .container { max-width: none; padding: 0; }
.po27 .section-header { margin-bottom: 16px; }
.po27 #portfolio .section-header { display: none; } /* “Albums / Click to Select” → lo dice la barra de resultados */
.po27 .product-promo { position: absolute; top: 16px; right: 16px; z-index: 1; padding: 4px 10px; border-radius: var(--r-pill); background: var(--success); color: #fff; font: 700 12px/1.3 var(--f-text); }
.po27 .btn-lupa, .po27 .hover.btn-izq, .po27 .hover.btn-der { display: none; }
.po27 .sheet-empty-hide { display: none; }
#cart:has(.detalle-carrito.is-empty) .btn-checkout, #cart:has(.detalle-carrito.is-empty) .po27-cart__trust { display: none !important; }
@media (min-width: 1100px) {
  body.po27-has-results .po27-footer { padding-right: 360px; }
  body.po27-has-results .po27-header__in { max-width: none; padding-inline: 28px; }
}
.po27 #detail .row.gutter-1.mb-2 > h2 { display: none; } /* “Album Preview / Vista Previa” → la barra muestra “16 fotos” */

/* Álbumes (elige tu grupo) */
.po27 #appshots { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 !important; width: 100%; max-width: none; }
@media (min-width: 640px) { .po27 #appshots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .po27 #appshots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.po27 #appshots > .row, .po27 #appshots > div:not(.shot) { display: contents !important; }
.po27 #appshots .shot { position: relative; width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: none !important; visibility: visible !important; animation: po27-rise .5s var(--ease-out) both; }
.po27 #appshots img.img-thumbnail {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; padding: 0; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t), outline-color var(--t);
  outline: 3px solid transparent; outline-offset: 3px;
}
.po27 #appshots img.img-thumbnail:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.po27 #appshots img.img-thumbnail.activo { outline-color: var(--brand); }
.po27 #appshots .center { position: absolute; right: 8px; bottom: 8px; left: auto; top: auto; width: auto !important; margin: 0 !important; transform: none; opacity: 1; }
.po27 #appshots .center p { margin: 0; }
.po27 #appshots .center a {
  display: grid !important; place-items: center; width: 36px; height: 36px; padding: 0 !important;
  border-radius: 50% !important; background: rgba(12, 12, 16, .55) !important; box-shadow: none !important; opacity: 1 !important;
  color: #fff !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.po27 #appshots .center a .fa { font-size: 14px !important; }
.po27 .buscando2:not(.hidden) .well { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface-2) !important; color: var(--ink) !important; border: 0 !important; box-shadow: none !important; padding: 16px !important; border-radius: var(--r-md) !important; margin: 16px 0 0 !important; width: 100%; max-width: none; flex: none; font-size: 15px; }
.po27 .buscando2 img { display: none; }
.po27 .buscando2 .well::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand); border-right-color: transparent; animation: po27-spin .7s linear infinite; }

/* Paquetes (detalle-fotos → .custom-choice) */
.po27 #detail .container-new > .row.gutter-1:first-child, .po27 #detail .combos { display: grid !important; grid-template-columns: 1fr; gap: 12px; margin: 0 0 24px; }
@media (min-width: 720px) { .po27 #detail .container-new > .row.gutter-1:first-child { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.po27 #detail .container-new > .row.gutter-1:first-child > [class*="col"] { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: none !important; }
.po27 .custom-choice {
  position: relative; display: block; height: 100%; padding: 20px 20px 20px 60px !important; cursor: pointer;
  border: 1.5px solid var(--line) !important; border-radius: var(--r-md) !important; background: var(--surface) !important; box-shadow: none !important;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
}
.po27 .custom-choice:hover { border-color: var(--line-strong) !important; }
.po27 .custom-choice:active { transform: scale(.99); }
.po27 .custom-choice.selected { border-color: var(--brand) !important; background: var(--brand-soft) !important; }
.po27 .custom-choice .custom-control-input { position: absolute !important; opacity: 0 !important; pointer-events: none; }
.po27 .custom-choice .choice-indicator {
  position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--surface); transition: all var(--t-fast) var(--ease);
}
.po27 .custom-choice.selected .choice-indicator, .po27 .custom-choice .custom-control-input:checked ~ .choice-indicator {
  border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.po27 .custom-choice label { display: block; margin: 0; cursor: pointer; color: var(--ink) !important; text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; }
.po27 .custom-choice .d-flex { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
.po27 .custom-choice .eyebrow { font: 700 18px/1.2 var(--f-display) !important; color: var(--ink) !important; letter-spacing: -.01em; text-transform: none; }
.po27 .custom-choice .eyebrow span { display: block; margin-top: 4px; font: 700 20px/1.2 var(--f-display) !important; color: var(--brand-ink) !important; }
.po27 .custom-choice .text-muted, .po27 .custom-choice small { color: var(--muted) !important; font-size: 14px; }
.po27 .custom-choice ul.plan-features { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; font-size: 14px; color: var(--ink-2); }
.po27 .custom-choice ul.plan-features li { display: flex; gap: 8px; align-items: baseline; }
.po27 .custom-choice ul.plan-features li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* Vista previa del álbum: selección directa sobre la miniatura */
.po27 #detail h2 { font-size: 22px !important; margin: 8px 0 12px; color: var(--ink) !important; }
.po27 #detail .row.gutter-1.mb-2 { display: block; }
.po27 #detail .det_album { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 !important; }
@media (min-width: 640px) { .po27 #detail .det_album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .po27 #detail .det_album { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.po27 #detail .det_album > div { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: none !important; }
.po27 #detail .product { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); border: 0; height: auto; animation: po27-rise .45s var(--ease-out) both; }
.po27 #detail .product-image { margin: 0; }
.po27 #detail .product-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease-out), filter var(--t); }
.po27 #detail .product:hover .product-image img { transform: scale(1.03); }
.po27 #detail .product-meta { position: absolute; inset: 8px 8px auto auto; padding: 0; background: none; display: block; width: auto; }
.po27 #detail .product-action a {
  display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; margin: -6px -6px 0 0;
  border-radius: 50%; font-size: 0 !important; color: transparent !important; background: transparent; text-decoration: none;
}
.po27 #detail .product-action a::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(12, 12, 16, .28); box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: all var(--t-fast) var(--ease);
}
.po27 #detail .product-action a:hover::before { background: rgba(12, 12, 16, .45); transform: scale(1.06); }
.po27 #detail .product-action a[disabled], .po27 #detail .product-action a.text-danger, .po27 #detail .product.is-picked .product-action a { pointer-events: none; }
.po27 #detail .product-action a[disabled]::before, .po27 #detail .product-action a.text-danger::before, .po27 #detail .product.is-picked .product-action a::before {
  border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
  animation: po27-pop .35s var(--ease-out);
}
.po27 #detail .product.is-picked { box-shadow: 0 0 0 3px var(--brand); }
.po27 #detail .product.is-picked .product-image img { filter: brightness(.92); }
.po27 #detail .product .checkFotos.d-none, .po27 .d-none { display: none !important; }
.po27 .mas_fotos_front, .po27 .btn-back-albums, .po27 .btn-back-home {
  display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; min-height: 48px; margin: 20px auto 0 !important;
  border-radius: var(--r-pill) !important; border: 1px solid var(--line-strong) !important; background: var(--surface) !important; color: var(--ink) !important;
  font: 600 15px/1 var(--f-text) !important; text-decoration: none; cursor: pointer;
}
.po27 #detail > .text-center.my-4 { display: none; } /* reemplazado por la barra “Volver” de po27 */

/* Carrito inline / formulario de compra (#shopping-cart) */
.po27 #shopping-cart:not(.hidden) { border-radius: var(--r-lg); background: var(--surface) !important; border: 1px solid var(--line); margin: 16px auto; padding: 24px !important; max-width: 760px; }
.po27 #shopping-cart p { color: var(--muted); }

/* ─────────────────────────────────────────────
   9. BARRA DE SELECCIÓN (móvil) Y CARRITO
   ───────────────────────────────────────────── */
.po27-selbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 950;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lift);
  transform: translateY(calc(100% + 40px)); transition: transform .45s var(--ease-out);
}
.po27-selbar.is-on { transform: none; }
.po27-selbar__txt { flex: 1; min-width: 0; line-height: 1.2; }
.po27-selbar__txt b { display: block; font: 700 16px/1.2 var(--f-display); }
.po27-selbar__txt span { font-size: 13px; opacity: .7; }
.po27-selbar .po27-btn { min-height: 48px; }
@media (min-width: 1100px) { body.po27-has-results .po27-selbar { display: none; } }

/* Cuerpo del carrito (HTML de shopping-cart.php) */
.po27 .detalle-carrito { color: var(--ink); font-size: 15px; display: grid; gap: 12px; }
.po27 .detalle-carrito > .row, .po27 .detalle-carrito .gutter-3 { display: contents; }
.po27 .detalle-carrito [class*="col-"] { width: auto; max-width: none; padding: 0; flex: none; }
.po27 .detalle-carrito .cart-item {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-items: center;
  padding: 10px 44px 10px 10px; border-radius: var(--r-md); background: var(--surface-2); border: 0; margin: 0; animation: po27-rise .3s var(--ease-out);
}
.po27 .detalle-carrito .cart-item > * { margin: 0 !important; }
.po27 .detalle-carrito .cart-item img { grid-row: span 3; width: 64px; height: 64px; max-height: none; object-fit: cover; border-radius: 12px; background: var(--surface-3); }
.po27 .detalle-carrito .cart-item b, .po27 .detalle-carrito .cart-item strong { font-weight: 700; font-size: 15px; display: block; }
.po27 .detalle-carrito .cart-item .cart-close, .po27 .detalle-carrito .cart-item .elimina_foto, .po27 .detalle-carrito .cart-item .cart-item-close, .po27 .detalle-carrito .cart-item .del_shopping {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--muted) !important; background: transparent; text-decoration: none; font-size: 0;
}
.po27 .detalle-carrito .cart-item .cart-close::before, .po27 .detalle-carrito .cart-item .elimina_foto::before, .po27 .detalle-carrito .cart-item .cart-item-close::before, .po27 .detalle-carrito .cart-item .del_shopping::before {
  content: ""; width: 18px; height: 18px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.po27 .detalle-carrito .cart-item .cart-close:hover, .po27 .detalle-carrito .cart-item .del_shopping:hover, .po27 .detalle-carrito .cart-item .cart-item-close:hover { background: var(--surface-3); color: var(--danger) !important; }
.po27 .detalle-carrito .icon-x { display: none; }
.po27 .detalle-carrito h3, .po27 .detalle-carrito h4, .po27 .detalle-carrito h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) !important; margin: 12px 0 0; border: 0; padding: 0; font-family: var(--f-text); font-weight: 700; }
.po27 .detalle-carrito .text-right { text-align: right; }
.po27 .detalle-carrito .text-right b, .po27 .detalle-carrito .text-right strong { font: 800 26px/1.1 var(--f-display); letter-spacing: -.02em; }
.po27 .detalle-carrito hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.po27 .detalle-carrito form, .po27 .detalle-carrito .form-group { display: grid; gap: 8px; margin: 0; }
.po27 .detalle-carrito input[type="text"], .po27 .detalle-carrito input[type="email"], .po27 .detalle-carrito input[type="tel"], .po27 .detalle-carrito select, .po27 .detalle-carrito textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 16px/1.2 var(--f-text);
}
.po27 .detalle-carrito input:focus, .po27 .detalle-carrito select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.po27 .detalle-carrito input[type="radio"], .po27 .detalle-carrito input[type="checkbox"] { accent-color: var(--brand); width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; }
.po27 .detalle-carrito label { font-size: 14px; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 500; }
/* Stripe con campos separados (script.js → po27Stripe) */
.po27 .po27-card { display: grid; gap: 12px; margin: 4px 0 8px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); animation: po27-fade .3s var(--ease-out); }
.po27 .po27-card[hidden] { display: none; }
.po27 .po27-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.po27 .po27-card__row { display: grid; gap: 6px; min-width: 0; }
.po27 .detalle-carrito .po27-card__label, .po27 .po27-card__label { margin: 0; font: 700 12px/16px var(--f-text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.po27 .po27-card__field {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); cursor: text;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.po27 .po27-card__field > * { width: 100%; }
.po27 .po27-card__field.is-focus, .po27 .po27-card__field.StripeElement--focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.po27 .po27-card__field.StripeElement--invalid { border-color: var(--danger); }
.po27 .po27-card__error:empty { display: none; }
.po27 #card-errors.po27-card__error:not(:empty) { margin: 0 !important; }
.po27 .btn-checkout.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.po27 .btn-checkout.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--on-brand); border-right-color: transparent; animation: po27-spin .7s linear infinite; }
/* Formulario del carrito (shopping-cart.php): campos a lo ancho y separados.
   Cada campo llega dentro de .row > .col-md-12; con columnas width:auto en fila flex se encogían al ancho natural. */
.po27 .detalle-carrito .ajaxformSH { display: grid; gap: 16px; }
.po27 .detalle-carrito .ajaxformSH .row { display: grid; gap: 8px; margin: 0; }
.po27 .detalle-carrito .ajaxformSH [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
.po27 .detalle-carrito .ajaxformSH [class*="col-"]:not(:has(*)) { display: none; } /* espaciadores “&nbsp;” del módulo */
.po27 .detalle-carrito .ajaxformSH label:not(.c-radio):not(.c-checkbox):not(:has(input)) { display: block; margin: 0 0 8px; font: 700 12px/16px var(--f-text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.po27 .detalle-carrito .ajaxformSH input[type="text"], .po27 .detalle-carrito .ajaxformSH input[type="email"],
.po27 .detalle-carrito .ajaxformSH input[type="tel"], .po27 .detalle-carrito .ajaxformSH select, .po27 .detalle-carrito .ajaxformSH textarea { display: block; width: 100%; max-width: 100%; }
.po27 .detalle-carrito .ajaxformSH textarea { min-height: 88px; padding: 14px 16px; line-height: 1.5; resize: vertical; }

/* Forma de pago: opciones a lo ancho tipo tarjeta, con radio propio y estado elegido visible */
.po27 .detalle-carrito label.c-radio {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 10px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font: 600 15px/1.3 var(--f-text); color: var(--ink); text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.po27 .detalle-carrito label.c-radio:hover { border-color: color-mix(in oklab, var(--ink) 35%, var(--line-strong)); }
.po27 .detalle-carrito label.c-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.po27 .detalle-carrito label.c-radio input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer;
}
.po27 .detalle-carrito label.c-radio input[type="radio"]:checked { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); background: var(--brand); }
.po27 .detalle-carrito label.c-radio .fa, .po27 .detalle-carrito label.c-radio .fab, .po27 .detalle-carrito label.c-radio [class*="fa-"] { width: 20px; text-align: center; color: var(--muted); }
/* Términos: casilla + texto alineados, área táctil cómoda */
.po27 .detalle-carrito label.c-checkbox, .po27 .detalle-carrito .ajaxformSH label:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font: 500 15px/1.35 var(--f-text); color: var(--ink-2); text-transform: none; letter-spacing: 0; cursor: pointer; }
.po27 .detalle-carrito label.c-checkbox input[type="checkbox"] { flex: none; margin: 0; width: 22px; height: 22px; }

.po27 #card-element { padding: 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); }
/* #pagar (“Continue”/“Pay” del formulario del módulo) NO va aquí: llega con d-none y “Next” (.btn-checkout) es el único botón */
.po27 .ajaxformSH #pagar.d-none, .po27 .ajaxformSH input[type="submit"].d-none { display: none !important; }
.po27 .invalid-feedback { display: none; } /* Bootstrap lo oculta por defecto; el aviso real es #aceptHelp */
.po27 #ppp_pagar, .po27 .btn-cobrast, .po27 .btn-checkout {
  display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 8px 0 !important; padding: 0 24px !important;
  border: 0 !important; border-radius: var(--r-pill) !important; background: var(--brand-btn) !important; color: var(--on-brand) !important;
  font: 700 17px/1 var(--f-text) !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important; cursor: pointer;
}
.po27 #ppp_pagar:hover, .po27 .btn-cobrast:hover, .po27 .btn-checkout:hover { background: var(--brand-hover) !important; }
.po27 #card-errors:not(:empty), .po27 #payment-result:not(:empty) { padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger) !important; font-weight: 600; font-size: 14px; margin: 8px 0 !important; }
.po27 #aceptHelp { display: block; margin-bottom: 8px; color: var(--danger) !important; font-size: 13px; }
.po27 #aceptHelp.d-none { display: none !important; }
.po27-cart__empty { display: grid; justify-items: center; gap: 10px; padding: 40px 12px; text-align: center; color: var(--muted); }
.po27-cart__empty .po27-state__ico { width: 64px; height: 64px; }
.po27-cart__empty b { color: var(--ink); font: 700 18px/1.2 var(--f-display); }
.po27-cart__trust { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* Carrito fijo a la derecha en escritorio ancho mientras hay resultados */
@media (min-width: 1100px) {
  body.po27-has-results .po27-results { padding-right: 380px; }
  body.po27-has-results #cart.po27-sheet {
    display: flex; position: fixed; inset: var(--header-h) 0 0 auto; width: 360px; height: auto; max-height: none; margin: 0;
    transform: none; opacity: 1; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); z-index: 800;
  }
  body.po27-has-results #cart.po27-sheet .po27-sheet__close { display: none; }
}

/* ─────────────────────────────────────────────
   10. CUENTA (pagina-account) — galería postventa
   ───────────────────────────────────────────── */
.po27-acc { padding-bottom: calc(110px + var(--safe-b)); }
.po27-acc-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.po27-acc-hero__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3) brightness(.7); transform: scale(1.1); }
.po27-acc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)); }
.po27-acc-hero__in { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: grid; gap: 24px; align-items: center; }
.po27-acc-hero__cover { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.po27-acc-hero__cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-slow); }
.po27-acc-hero__cover .po27-unique { position: absolute; right: 12px; bottom: 12px; height: 20px; opacity: .8; }
.po27-acc-hero__copy { display: grid; gap: 16px; }
.po27-acc-hero .po27-eyebrow { color: rgba(255, 255, 255, .75); display: inline-flex; align-items: center; gap: 8px; }
.po27-acc-hero h1 { font-size: clamp(34px, 7vw, 60px); color: #fff; overflow-wrap: anywhere; }
.po27-acc-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.po27-acc-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); font: 600 14px/1 var(--f-text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.po27-acc-actions { display: grid; gap: 10px; }
.po27-acc-actions .po27-btn { min-height: 54px; }
.po27-acc-actions .po27-btn--ghost { --_bd: rgba(255, 255, 255, .35); --_fg: #fff; }
.po27-acc-actions .po27-btn--ghost:hover { --_bg: rgba(255, 255, 255, .12); }
.po27-acc-actions__row { display: flex; gap: 8px; flex-wrap: wrap; }
.po27-acc-actions__row > * { flex: 1 1 auto; }
.po27-acc-actions a, .po27-acc-actions button { text-decoration: none; }
/* Botones legacy que llegan en $Content["btn-*"] */
.po27-acc-actions .app-ios, .po27-acc-actions .app-android, .po27-acc-actions .btn-app { display: inline-flex; }
.po27-acc-actions .btn-app img { height: 44px; width: auto; }
.po27-acc-actions span, .po27-acc-actions small { font-size: 12px; opacity: .8; }
.po27-acc-actions br { display: none; }
/* App Greenpix: tarjeta con insignias de tienda */
.po27-app {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; margin-top: 6px;
  padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.po27-app__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #0c0c10; }
.po27-app__txt { min-width: 0; line-height: 1.3; }
.po27-app__txt b { display: block; font: 700 15px/1.25 var(--f-display); color: #fff; }
.po27-acc-actions .po27-app__txt span { font-size: 13px; color: rgba(255, 255, 255, .78); opacity: 1; }
.po27-app__stores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.po27-store {
  flex: 1 1 150px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  border-radius: 12px; background: #0c0c10; color: #fff !important; border: 1px solid rgba(255, 255, 255, .28);
  text-decoration: none; transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.po27-store:hover { background: #000; transform: translateY(-1px); }
.po27-store i { font-size: 22px; width: 22px; text-align: center; }
.po27-acc-actions .po27-store span { display: grid; text-align: left; font: 700 16px/1.05 var(--f-text); letter-spacing: -.01em; opacity: 1; }
.po27-store small { font: 500 10px/1.2 var(--f-text) !important; opacity: .85 !important; letter-spacing: .02em; }
.po27-acc-actions .po27-btn-note { margin: -2px 0 0; text-align: center; opacity: .75; }
.po27-acc-hero .po27-eyebrow .i { color: #fff; }
.po27-acc-hero .po27-btn--primary { --_bg: #fff; --_fg: #0c0c10; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.po27-acc-hero .po27-btn--primary:hover { --_bg: #f2f1ec; }
.po27-acc-hero .po27-btn--ghost.disabled { opacity: .7; }
.po27-acc-hero .po27-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) {
  .po27-acc-hero__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; padding-bottom: 56px; }
  .po27-acc-actions { max-width: 440px; }
}

.po27-acc-body { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 0; }
.po27-acc-body__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.po27-acc-body__head h2 { font-size: clamp(26px, 4vw, 36px); margin-right: auto; }
.po27-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; grid-auto-flow: dense; }
@media (min-width: 640px) { .po27-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1024px) { .po27-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1400px) { .po27-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.po27-cell { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); aspect-ratio: 4 / 5; animation: po27-rise .5s var(--ease-out) both; }
@media (min-width: 640px) { .po27-cell { border-radius: var(--r-md); } }
.po27-cell.is-wide { grid-column: span 2; aspect-ratio: 8 / 5; }
/* El enlace de descarga (.po27-cell__dl) también es hijo directo: se excluye para que no cubra la foto */
.po27-cell > a:not(.po27-cell__dl), .po27-cell > img, .po27-cell video { display: block; width: 100%; height: 100%; }
.po27-cell img, .po27-cell video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), opacity var(--t); }
.po27-cell:hover img { transform: scale(1.035); }
.po27-cell img[data-loading] { opacity: 0; }
/* Sin menú de pulsación larga en la miniatura (con marca de agua): el visor ofrece el original */
.po27-cell img, .po27-cell a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* Visor de fotos (original en alta calidad) */
.po27-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; display: flex; flex-direction: column; overflow: hidden;
}
.po27-viewer:not([open]) { display: none; }
.po27-viewer::backdrop { background: #000; }
.po27-viewer__top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + var(--safe-t)) 12px 8px 20px; flex: none; }
.po27-viewer__count { font: 600 15px/1 var(--f-text); font-variant-numeric: tabular-nums; opacity: .85; }
.po27-viewer__top .po27-icon-btn { color: #fff; }
.po27-viewer__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; touch-action: pan-y pinch-zoom; }
/* La imagen del visor SÍ permite “Guardar en Fotos” (es el original) */
.po27-viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; -webkit-touch-callout: default; user-select: auto; transition: filter .35s var(--ease), opacity .35s; }
.po27-viewer__stage img.is-preview { filter: blur(2px) saturate(.9); opacity: .85; }
.po27-viewer__status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); font: 600 12px/1 var(--f-text); white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.po27-viewer__status.is-loading::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: po27-spin .8s linear infinite; }
.po27-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.po27-viewer__nav:hover { background: rgba(255, 255, 255, .26); }
.po27-viewer__nav--prev { left: 16px; } .po27-viewer__nav--next { right: 16px; }
@media (hover: none) { .po27-viewer__nav { display: none; } }
.po27-viewer__bar { flex: none; display: grid; justify-items: center; gap: 10px; padding: 12px 20px calc(16px + var(--safe-b)); }
.po27-viewer__save { --_bg: #fff; --_fg: #0c0c10; width: min(420px, 100%); }
.po27-viewer__save:hover { --_bg: #f2f1ec; }
.po27-viewer__save.is-loading { opacity: .6; pointer-events: none; }
.po27-viewer__hint { font-size: 12px; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, .6); max-width: 420px; }
.po27-cell__dl.is-loading { pointer-events: none; }
.po27-cell__dl.is-loading svg { opacity: 0; }
.po27-cell__dl.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #0c0c10; border-right-color: transparent; animation: po27-spin .7s linear infinite; }

.po27-cell__dl {
  position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0c0c10; box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t) var(--ease);
}
.po27-cell:hover .po27-cell__dl, .po27-cell:focus-within .po27-cell__dl, .po27-cell.touched .po27-cell__dl { opacity: 1; transform: none; }
@media (hover: none) { .po27-cell__dl { opacity: 1; transform: none; width: 38px; height: 38px; } }
.po27-cell__badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(12, 12, 16, .6); color: #fff; font: 700 11px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.po27-cell__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0c0c10; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); pointer-events: none; transition: transform var(--t) var(--ease); }
.po27-cell.is-video { cursor: pointer; background: radial-gradient(120% 90% at 30% 20%, color-mix(in oklab, var(--brand) 35%, #1c1c21), #0b0b0e); }
.po27-cell.is-video:hover .po27-cell__play { transform: scale(1.08); }
/* Vista previa en bucle: el play se aparta para que se vea el clip */
.po27-cell.is-video .po27-cell__play { transition: transform var(--t) var(--ease-out), opacity var(--t), width var(--t), height var(--t); }
.po27-cell.is-video.is-previewing .po27-cell__play { width: 48px; height: 48px; opacity: .78; background: rgba(255, 255, 255, .85); }
.po27-cell.is-video.is-previewing:hover .po27-cell__play { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .po27-cell.is-video video { animation: none; } }
.po27-cell__pending { position: absolute; inset: auto 8px 8px 8px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(12, 12, 16, .62); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.po27-cell__pending::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: po27-spin .8s linear infinite; }
.po27-cell.skeleton { animation: none; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0/300% 100%; animation: po27-shimmer 1.4s linear infinite; }
.po27-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.po27-more .po27-btn.disabled { opacity: .6; }

/* Reseña / post-compra */
.po27-review { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 32px 0 0; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.po27-review__stars { display: flex; gap: 2px; color: #f59e0b; }
.po27-review__txt { flex: 1; min-width: 160px; }
.po27-review__txt b { display: block; font: 700 17px/1.2 var(--f-display); }
.po27-review__txt span { font-size: 14px; color: var(--muted); }
/* Reseña flotante en el pie (escritorio / tablet; la activa po27-account.js) */
.po27-review.is-floating {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); z-index: 880; margin: 0;
  width: min(820px, calc(100% - 48px)); padding: 12px 52px 12px 20px;
  background: var(--glass); border-color: var(--line); box-shadow: var(--shadow-lift);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .45s var(--ease-out);
}
.po27-review.is-floating.is-on { transform: translate(-50%, 0); }
.po27-review.is-floating .po27-review__txt b { font-size: 15px; }
.po27-review__close {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.po27-review__close:hover { background: var(--surface-2); color: var(--ink); }
.po27-review:not(.is-floating) .po27-review__close { display: none; }
body.po27-has-floatbar .po27-footer { padding-bottom: 96px; }
.po27-social { display: flex; gap: 6px; }
.po27-social a { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 18px; }
.po27-social a:hover { background: var(--surface-3); }
.po27-social i { font-size: 18px; }

/* Barra inferior móvil (cuenta) */
.po27-dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 900;
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease-out);
}
.po27-dock.is-on { transform: none; }
.po27-dock__main { flex: 1; min-width: 0; }
.po27-dock__main > * { width: 100%; }
.po27-dock .po27-btn { min-height: 48px; }
.po27-dock .po27-icon-btn { background: var(--surface-2); width: 48px; height: 48px; }
@media (min-width: 900px) { .po27-dock { display: none; } }

/* Reproductor de video */
.po27-player { width: min(960px, calc(100vw - 24px)); }
.po27-player video { width: 100%; max-height: 70vh; border-radius: var(--r-md); background: #000; }
.po27-player .po27-sheet__body { display: grid; gap: 16px; }

/* ─────────────────────────────────────────────
   11. PÁGINAS SIMPLES (interna / sim)
   ───────────────────────────────────────────── */
.po27-simple { max-width: 720px; margin: 0 auto; padding: calc(var(--header-h) + 32px) var(--gutter) 64px; min-height: 80svh; }
.po27-success { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 32px 24px; margin-bottom: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.po27-success__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); animation: po27-pop .6s var(--ease-out) both; }
.po27-success h1 { font-size: clamp(32px, 7vw, 48px); }
.po27-success p { color: var(--muted); }
.po27-simple__content { color: var(--ink); }
.po27-simple__content .row { display: flex; flex-wrap: wrap; gap: 12px; }
.po27-simple__content .btn, .po27-simple__content .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; border: 0; }
.po27-simple__content .btn-primary, .po27-simple__content .btn-success, .po27-simple__content .btn-theme { background: var(--brand-btn); color: var(--on-brand); }

/* ─────────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────────── */
.po27-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.po27-footer__in { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) calc(28px + var(--safe-b)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.po27-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-right: auto; }
.po27-footer a, .po27-footer button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 8px 0; font: inherit; }
.po27-footer a:hover, .po27-footer button:hover { color: var(--ink); text-decoration: underline; }
.po27-footer .po27-made { display: inline-flex; align-items: center; gap: 6px; }
.po27-footer .po27-made .i { color: var(--danger); }
.po27-page--index .po27-home + .po27-footer, .po27-page--index .po27-footer { margin-top: 0; }

/* Texto legal (terminos.php / aviso.php) */
.po27-legal { color: var(--ink-2); font-size: 15px; line-height: 1.65; display: grid; gap: 12px; }
.po27-legal h3 { font-size: 17px; color: var(--ink); margin-top: 8px; }
.po27-legal ul { padding-left: 20px; display: grid; gap: 4px; }
.po27-legal a { color: var(--brand-ink); }
.po27-legal .po27-tiny { color: var(--muted); }

/* Ayuda: lista de opciones a lo ancho (un correo largo ya no se encima) */
.po27-help-quick { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
.po27-help-quick .po27-opt { justify-content: flex-start; gap: 12px; min-width: 0; min-height: 56px; padding: 10px 16px; text-align: left; }
.po27-help-quick .po27-opt .i { flex: none; color: var(--brand-ink); }
.po27-opt__txt { display: grid; min-width: 0; line-height: 1.25; font-weight: 600; }
.po27-opt__txt small { font-size: 13px; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.po27-contact { display: grid; gap: 14px; }
.po27-contact form { display: grid; gap: 18px; }                 /* separación entre campos */
.po27-contact form label { margin-bottom: 0 !important; }
.po27-contact .po27-field { gap: 8px; }
.po27-contact #enviar-contact-btn { margin-top: 4px; }
.po27-contact .po27-recaptcha { margin-top: -6px; line-height: 1.45; }
.po27-contact .form-group, .po27-contact .row, .po27-contact [class*="col-"] { display: block; width: auto; max-width: none; padding: 0; margin: 0; flex: none; }
.po27-contact .row:empty, .po27-contact .row > .col-md-12:empty { display: none; }
.po27-recaptcha { font-size: 12px; color: var(--muted); }
.po27-recaptcha a { color: inherit; }
.grecaptcha-badge { visibility: hidden !important; }

/* ─────────────────────────────────────────────
   13. TOAST · OFFLINE · LOADER
   ───────────────────────────────────────────── */
.po27-toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 2100; transform: translate(-50%, 20px);
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  font: 600 14px/1.3 var(--f-text); box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t) var(--ease-out);
}
.po27-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.po27-toast .i { color: var(--success); }
.po27-offline {
  position: fixed; top: calc(var(--header-h) + var(--safe-t) + 8px); left: 50%; z-index: 1600; transform: translate(-50%, -16px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--warning-soft); color: var(--warning); font: 600 13px/1.2 var(--f-text); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all var(--t) var(--ease-out);
}
body.is-offline .po27-offline { opacity: 1; transform: translate(-50%, 0); }

.po27-searching { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px 16px; color: var(--muted); font-weight: 600; }
.po27-searching::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand); border-right-color: transparent; animation: po27-spin .7s linear infinite; }
.po27 .buscando { display: none !important; } /* sustituido por .po27-searching dentro de los resultados */

.po27-demo-badge {
  position: fixed; left: 50%; top: calc(var(--header-h) + var(--safe-t) + 8px); transform: translateX(-50%); z-index: 1450;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill);
  background: #7c3aed; color: #fff; font: 700 12px/1.2 var(--f-text); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow);
}
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2200; }

/* ─────────────────────────────────────────────
   14. COMPATIBILIDAD LEGACY (subset de Bootstrap que usa el HTML inyectado)
   ───────────────────────────────────────────── */
.po27 .row { display: flex; flex-wrap: wrap; margin: 0; }
.po27 [class*="col-"] { position: relative; width: 100%; padding: 0; }
@media (min-width: 768px) {
  .po27 .col-md-3 { flex: 0 0 25%; max-width: 25%; } .po27 .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .po27 .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; } .po27 .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .po27 .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; } .po27 .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .po27 .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; } .po27 .col-md-12, .po27 .col-12 { flex: 0 0 100%; max-width: 100%; }
}
.po27 .text-center { text-align: center; } .po27 .text-right { text-align: right; } .po27 .text-left { text-align: left; }
.po27 .text-danger { color: var(--danger) !important; } .po27 .text-success { color: var(--success) !important; } .po27 .text-muted { color: var(--muted) !important; }
.po27 .text-white, .po27 .blanco { color: inherit !important; }
.po27 .mt-2 { margin-top: 8px; } .po27 .mt-3 { margin-top: 12px; } .po27 .mb-2 { margin-bottom: 8px; } .po27 .mb-5 { margin-bottom: 24px; } .po27 .my-4 { margin: 16px 0; }
.po27 .w-100 { width: 100%; }
.po27 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--f-text); text-decoration: none; cursor: pointer; }
.po27 .btn-block { display: flex; width: 100%; }
.po27 .btn-theme, .po27 .btn-primary, .po27 .btn-warning, .po27 .btn-success { background: var(--brand-btn); border-color: var(--brand-btn); color: var(--on-brand); }
.po27 .btn-lg, .po27 .btn-xl { min-height: 52px; font-size: 16px; }
.po27 .well { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; border: 0; box-shadow: none; }
.po27 .img-thumbnail { border-radius: var(--r-sm); }
.po27 #portfolio .fa-stack { display: none; } /* ícono decorativo de “no encontramos fotos” (no ocultar fa-stack global: lo usan las caritas SIM) */
.po27 .hide { display: none !important; }
.po27 .text-warning { color: #f59e0b !important; } .po27 .text-info { color: #0ea5e9 !important; }
.po27 .col-3 { flex: 0 0 25%; max-width: 25%; } .po27 .col-4 { flex: 0 0 33.333%; max-width: 33.333%; } .po27 .col-6 { flex: 0 0 50%; max-width: 50%; } .po27 .col-12 { flex: 0 0 100%; max-width: 100%; }

/* SIM — encuesta de satisfacción (SweetAlert con 4 caritas que arma b/modulos/sim/ajax.php) */
.po27 .sim_caritas { display: flex !important; flex-wrap: nowrap; justify-content: center; gap: 10px; margin: 20px 0 8px !important; }
.po27 .sim_caritas hr { display: none; }
.po27 .sim_caritas .sim_califica_online, .po27 .sim_caritas .sim_califica_offline {
  flex: 0 0 auto; max-width: none; width: 64px; height: 64px; padding: 0; margin: 0;
  display: grid; place-items: center; line-height: 1; font-size: 42px; vertical-align: middle;
  border-radius: 50%; background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.po27 .sim_caritas .sim_califica_online:hover, .po27 .sim_caritas .sim_califica_offline:hover { transform: scale(1.12); background: var(--surface-3); }
.po27 .sim_caritas .sim_califica_online:active { transform: scale(.94); }
.po27 .sim_caritas h2 { font-size: 22px; margin: 8px 0; }
.po27 .sim_oculto { margin-top: 12px; text-align: left; }
.po27 .sim_oculto label { display: block; margin-bottom: 6px; font: 700 12px/16px var(--f-text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 380px) { .po27 .sim_caritas .sim_califica_online, .po27 .sim_caritas .sim_califica_offline { width: 56px; height: 56px; font-size: 36px; } }
.po27 .wow { visibility: visible !important; animation-name: none !important; }
.po27 .modal:not(.po27-sheet) { display: none; }
.po27 .modal.show:not(.po27-sheet) { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1700; background: var(--scrim); padding: 16px; }
.po27 .modal.show:not(.po27-sheet) .modal-content { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; width: min(100%, 1100px); max-height: 92vh; overflow-y: auto; }
.po27 .modal-header { display: flex; align-items: center; justify-content: flex-end; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.po27 .modal-header .close { width: var(--tap); height: var(--tap); border: 0; background: none; font-size: 28px; color: var(--muted); }

/* SweetAlert2 */
body .swal2-popup { background: var(--surface) !important; color: var(--ink) !important; border-radius: var(--r-lg) !important; font-family: var(--f-text) !important; padding: 28px 24px !important; }
body .swal2-title { color: var(--ink) !important; font-family: var(--f-display) !important; letter-spacing: -.02em; }
body .swal2-html-container { color: var(--ink-2) !important; }
body .swal2-actions { gap: 8px; }
body .swal2-styled.swal2-confirm { background: var(--brand-btn) !important; color: var(--on-brand) !important; border-radius: var(--r-pill) !important; min-height: 48px; padding: 0 24px !important; font-weight: 700 !important; box-shadow: none !important; }
body .swal2-styled.swal2-cancel, body .swal2-styled.swal2-deny { background: var(--surface-2) !important; color: var(--ink) !important; border-radius: var(--r-pill) !important; min-height: 48px; padding: 0 24px !important; font-weight: 600 !important; }
body .swal2-input, body .swal2-textarea { border-radius: var(--r-sm) !important; border-color: var(--line-strong) !important; background: var(--surface) !important; color: var(--ink) !important; }

/* baguetteBox: barra superior más limpia */
#baguetteBox-overlay { background: rgba(8, 8, 10, .96) !important; }
#baguetteBox-overlay .full-image img { border-radius: 12px; box-shadow: none; }
#baguetteBox-overlay .full-image figcaption { background: transparent; font-family: var(--f-text); }

/* ─────────────────────────────────────────────
   15. ANIMACIONES
   ───────────────────────────────────────────── */
@keyframes po27-spin { to { transform: rotate(360deg); } }
@keyframes po27-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes po27-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes po27-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes po27-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }
@keyframes po27-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes po27-kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes po27-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.015); } }
@keyframes po27-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes po27-shimmer { to { background-position: -300% 0; } }

/* Transiciones de vista (navegador compatible) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
