@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(manrope-600.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(manrope-700.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(manrope-800.woff2) format("woff2"); }

:root {
  --acc: #D91F46; --acc-on: #FFFFFF;
  --bg: #0E0E10; --tx: #F5F5F7; --tx2: #A1A1A6; --tx3: #D1D1D6; --sf: #17171A; --tile: #1F1F24; --chip: #232328; --srch: #1C1C20;
  --line: rgba(255,255,255,0.08); --brd: rgba(255,255,255,0.16); --ico: #6E6E76; --inv: #F5F5F7; --inv-tx: #0E0E10;
  --sombra: 0 30px 80px rgba(0,0,0,0.45); --link: #FF6B88; --acc-tx: #FF5A7A; --velo: rgba(0,0,0,0.6);
  --ok-tx: #4BE06A; --ok-bg: rgba(50,215,75,0.14); --pt-tx: #7FD8FF; --pt-bg: rgba(100,210,255,0.14);
  --tr-tx: #FFB340; --tr-bg: rgba(255,159,10,0.16); --im-tx: #D69BFF; --im-bg: rgba(191,90,242,0.18);
  --frio-tx: #8FDCFF; --frio-bg: rgba(100,210,255,0.14); --err: #FF6961;
  color-scheme: dark;
}
:root[data-tema="claro"] {
  --bg: #F5F5F7; --tx: #1D1D1F; --tx2: #6E6E73; --tx3: #3A3A3C; --sf: #FFFFFF; --tile: #F0F0F3; --chip: #EBEBEF; --srch: #FFFFFF;
  --line: rgba(0,0,0,0.08); --brd: rgba(0,0,0,0.14); --ico: #AEAEB2; --inv: #1D1D1F; --inv-tx: #FFFFFF;
  --sombra: 0 24px 60px rgba(0,0,0,0.08); --link: #C41A3F; --acc-tx: #C41A3F; --velo: rgba(0,0,0,0.35);
  --ok-tx: #1D7A35; --ok-bg: #E8F5EC; --pt-tx: #0058B0; --pt-bg: #EAF2FF; --tr-tx: #A04500; --tr-bg: #FFF4E5;
  --im-tx: #6B3FA0; --im-bg: #F3EEFB; --frio-tx: #0A6A94; --frio-bg: #E3F3FA; --err: #C4001A;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.4; overflow-x: clip;
}
a { color: var(--link); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.titulo { font-family: Manrope, -apple-system, sans-serif; letter-spacing: -0.035em; font-weight: 800; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.envoltura { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.cab-in { height: 76px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; }
.logo svg { width: 160px; height: auto; display: block; }
.logo .blanco { fill: var(--tx); }
.logo .equis { fill: var(--acc); }
.cab-nav { display: flex; gap: 20px; font-size: 15px; white-space: nowrap; }
.cab-nav a { color: var(--tx); }
.cab-nav a:hover { color: var(--acc-tx); }
.buscar { margin-left: auto; display: flex; align-items: center; gap: 10px; width: 250px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--srch); color: var(--tx2); border: 1px solid var(--line); }
.buscar input { flex-grow: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; color: var(--tx); }
.redondo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: 1px solid var(--brd); background: transparent; color: var(--tx); display: flex; align-items: center; justify-content: center; }
.btn-pedido { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; border-radius: 22px; border: none; background: var(--inv); color: var(--inv-tx); font-size: 15px; font-weight: 600; white-space: nowrap; }
.contador { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: var(--acc); color: var(--acc-on); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* Botones */
.btn { height: 50px; padding: 0 24px; border-radius: 25px; border: 1px solid var(--brd); background: transparent; color: var(--tx); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.btn-acc { border: none; background: var(--acc); color: var(--acc-on); font-weight: 700; }
.btn-inv { border: none; background: var(--inv); color: var(--inv-tx); }
.btn-flecha { padding-right: 6px; }
.btn-flecha .circ { width: 40px; height: 40px; border-radius: 20px; background: #0E0E10; color: #F5F5F7; display: flex; align-items: center; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: default; }
.chip { height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid var(--brd); background: transparent; color: var(--tx3); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.chip[aria-pressed="true"] { background: var(--inv); color: var(--inv-tx); border-color: var(--inv); }
.fila-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Portada */
.portada { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.portada > *, .detalle > * { min-width: 0; }
.en-vivo { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 16px; background: var(--srch); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--tx3); }
.punto-verde { width: 8px; height: 8px; border-radius: 4px; background: #32D74B; flex-shrink: 0; }
.portada h1 { margin: 22px 0 0; font-size: 80px; line-height: 0.98; }
.portada h1 span { color: var(--acc-tx); }
.portada p { margin: 24px 0 0; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--tx2); }
.portada .acciones { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.panel { background: var(--sf); border-radius: 28px; padding: 26px; box-shadow: var(--sombra); }
.panel-cab { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; gap: 12px; }
.panel-cab h2 { margin: 0; font-size: 22px; }
.vivo-fila { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; border-left: none; border-right: none; border-bottom: none; background: transparent; text-align: left; color: inherit; }
.mini { width: 48px; height: 48px; border-radius: 14px; background: var(--tile); display: flex; align-items: center; justify-content: center; color: var(--ico); overflow: hidden; flex-shrink: 0; }
.mini img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vivo-txt { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.vivo-txt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vivo-txt small { font-size: 13px; color: var(--tx2); }
.vivo-precio { font-family: Manrope, -apple-system, sans-serif; font-size: 16px; font-weight: 700; white-space: nowrap; }

.estado { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.e-nacionalizado, .e-disponible { background: var(--ok-bg); color: var(--ok-tx); }
.e-en_puerto { background: var(--pt-bg); color: var(--pt-tx); }
.e-en_transito { background: var(--tr-bg); color: var(--tr-tx); }
.e-a_importar { background: var(--im-bg); color: var(--im-tx); }
.e-frio { background: var(--frio-bg); color: var(--frio-tx); }
.t-nacionalizado { color: var(--ok-tx); } .t-en_puerto { color: var(--pt-tx); } .t-en_transito { color: var(--tr-tx); } .t-a_importar { color: var(--im-tx); }

.pagos { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pagos > span { font-size: 14px; color: var(--tx2); white-space: nowrap; }
.pago { padding: 8px 14px; border-radius: 12px; background: var(--sf); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--tx3); }

/* Secciones */
.seccion { padding-top: 88px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 28px; }
.seccion-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ceja { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-tx); }
.seccion h2.titulo { margin: 8px 0 0; font-size: 50px; line-height: 1.02; }
.seccion-cab p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.5; color: var(--tx2); }
.segm { display: flex; gap: 6px; padding: 5px; border-radius: 26px; background: var(--sf); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.segm button { height: 42px; padding: 0 18px; border: none; border-radius: 21px; background: transparent; color: var(--tx3); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.segm button[aria-pressed="true"] { background: var(--inv); color: var(--inv-tx); }

.rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tarjeta { background: var(--sf); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.foto { position: relative; aspect-ratio: 1 / 1; background: var(--tile); display: flex; align-items: center; justify-content: center; color: var(--ico); border: none; padding: 0; width: 100%; }
.foto img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.foto .estado { position: absolute; top: 14px; left: 14px; }
.foto .estado.der { left: auto; right: 14px; }
.cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.cuerpo small { font-size: 13px; color: var(--tx2); }
.cuerpo h3 { margin: 0; font-family: Manrope, -apple-system, sans-serif; font-size: 18px; line-height: 1.22; font-weight: 700; letter-spacing: -0.015em; }
.cuerpo h3 button { border: none; background: none; padding: 0; text-align: left; color: inherit; font: inherit; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquetas span { padding: 4px 9px; border-radius: 8px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--tx3); }
.precio { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.precio b { font-family: Manrope, -apple-system, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.precio span { font-size: 14px; color: var(--tx2); }
.linea { font-size: 14px; color: var(--tx3); }
.llegada { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.pie-tarjeta { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.stepper { display: flex; align-items: center; border-radius: 23px; background: var(--chip); flex-shrink: 0; }
.stepper button { width: 42px; height: 46px; border: none; background: transparent; color: var(--tx); font-size: 20px; }
.stepper span { min-width: 26px; text-align: center; font-size: 16px; font-weight: 700; }
.btn-anadir { flex-grow: 1; height: 46px; border: none; border-radius: 23px; background: var(--acc); color: var(--acc-on); font-size: 15px; font-weight: 700; }
.btn-anadir.en { background: var(--chip); color: var(--tx); }
.mas-link { align-self: center; border: none; background: none; color: var(--link); font-size: 15px; font-weight: 600; padding: 10px; }
.vacio { background: var(--sf); border-radius: 24px; padding: 48px 32px; text-align: center; color: var(--tx2); border: 1px solid var(--line); }
.vacio h3 { margin: 0 0 8px; color: var(--tx); font-size: 20px; }

.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--sf); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { margin: 0; font-size: 30px; }
.plan p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tx2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--tx3); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--acc-tx); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan.destacado { background: var(--acc); color: var(--acc-on); border-color: var(--acc); }
.plan.destacado p, .plan.destacado ul, .plan.destacado .ceja2 { color: var(--acc-on); }
.plan.destacado li::before { color: var(--acc-on); }
.plan.destacado .btn { background: #0E0E10; color: #F5F5F7; border: none; }
.ceja2 { font-size: 14px; font-weight: 700; color: var(--tx2); }
.paso { background: var(--sf); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.paso b { font-family: Manrope, -apple-system, sans-serif; font-size: 40px; font-weight: 800; color: var(--acc-tx); }
.paso h3 { margin: 0; font-size: 20px; }
.paso p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tx2); }
.banda { margin-top: 72px; background: var(--sf); border: 1px solid var(--line); border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.banda h2 { margin: 0; font-size: 44px; line-height: 1.05; max-width: 700px; }
.banda p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--tx2); max-width: 680px; }
.pie { margin-top: 80px; padding: 56px 0 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; font-size: 14px; }
.pie .col { display: flex; flex-direction: column; gap: 12px; }
.pie .col a, .pie .col span { color: var(--tx2); }
.pie b { font-size: 14px; }

/* Ventanas */
.velo { position: fixed; inset: 0; z-index: 60; background: var(--velo); display: flex; justify-content: flex-end; }
.cajon { width: min(560px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,0.3); }
.velo.centrado { justify-content: center; align-items: center; padding: 24px; }
.modal { width: min(1080px, 100%); max-height: 100%; overflow-y: auto; background: var(--bg); border-radius: 32px; border: 1px solid var(--line); }
.cajon-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cajon-cab h2 { margin: 0; font-size: 26px; }
.cajon-cuerpo { flex-grow: 1; overflow-y: auto; padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.cajon-pie { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.linea-pedido { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.linea-pedido .txt { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.linea-pedido .txt b { font-size: 16px; }
.linea-pedido .txt small { font-size: 13px; color: var(--tx2); }
.linea-pedido .importe { font-family: Manrope, -apple-system, sans-serif; font-weight: 800; font-size: 17px; min-width: 90px; text-align: right; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tx2); }
.campo input, .campo select, .campo textarea { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--brd); background: var(--sf); color: var(--tx); font-size: 16px; outline: none; }
.campo textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--acc); }
.bloque-t { font-size: 15px; font-weight: 700; margin: 6px 0 -4px; }
.totales { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--tx2); }
.totales .fila { display: flex; justify-content: space-between; }
.totales .total { color: var(--tx); font-size: 17px; font-weight: 700; align-items: baseline; }
.totales .total b { font-family: Manrope, -apple-system, sans-serif; font-size: 30px; font-weight: 800; }
.error { color: var(--err); font-size: 14px; font-weight: 600; }
.detalle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 32px; }
.detalle .foto { border-radius: 28px; overflow: hidden; }
.detalle h2 { margin: 10px 0 0; font-size: 42px; line-height: 1.04; }
.detalle .desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tx2); white-space: pre-line; }
.caja-precio { background: var(--sf); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec { background: var(--sf); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.spec small { font-size: 12px; color: var(--tx2); }
.spec b { font-size: 15px; }
.aviso { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--inv); color: var(--inv-tx); padding: 12px 20px; border-radius: 22px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: calc(100% - 32px); }
.cargando { padding: 120px 20px; text-align: center; color: var(--tx2); }
.barra-movil { display: none; }

.buscar-movil { display: none !important; }
@media (max-width: 1280px) { .cab-nav a:nth-child(4) { display: none; } }
@media (max-width: 1100px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cab-nav { display: none; }
}
@media (max-width: 820px) {
  .envoltura { padding: 0 16px; }
  .cab-in { height: 64px; gap: 10px; }
  .logo svg { width: 128px; }
  .buscar { display: none; }
  .btn-pedido .txt-pedido { display: none; }
  .btn-pedido { padding: 0 8px; }
  .portada { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 40px; gap: 28px; }
  .portada .acciones { flex-direction: column; }
  .portada .acciones .btn { width: 100%; }
  .vivo-fila .estado { display: none; }
  .vivo-precio { font-size: 14px; }
  .panel { padding: 20px; }
  .portada h1 { font-size: 44px; }
  .portada p { font-size: 16px; }
  .portada .acciones .btn { flex-grow: 1; }
  .pagos { flex-direction: column; align-items: flex-start; gap: 12px; }
  .seccion { padding-top: 56px; }
  .seccion h2.titulo { font-size: 32px; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cuerpo { padding: 12px; gap: 6px; }
  .cuerpo h3 { font-size: 15px; }
  .precio b { font-size: 20px; }
  .etiquetas { display: none; }
  .pie-tarjeta { flex-direction: column; align-items: stretch; }
  .stepper { justify-content: space-between; }
  .tres { grid-template-columns: 1fr; }
  .banda { padding: 32px 24px; }
  .banda h2 { font-size: 30px; }
  .pie { grid-template-columns: 1fr 1fr; padding-bottom: 120px; }
  .detalle { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 20px; }
  .detalle .btn { white-space: normal; text-align: center; }
  .detalle .precio b { font-size: 34px !important; }
  .detalle h2 { font-size: 30px; }
  .velo.centrado { padding: 0; }
  .modal { border-radius: 0; height: 100%; }
  .buscar-movil { display: flex !important; margin: 12px 0 0; width: 100%; }
  .barra-movil { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; height: 58px; padding: 0 8px 0 22px; border-radius: 29px; border: none; background: var(--acc); color: var(--acc-on); align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
  .barra-movil span { height: 42px; padding: 0 16px; border-radius: 21px; background: #0E0E10; color: #F5F5F7; display: flex; align-items: center; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Publicidad ---------- */
.carrusel { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.carrusel-intermedio { padding-top: 72px; }
.carrusel-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 28px; scrollbar-width: none; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.diapo { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 1; border: none; padding: 0; background: var(--tile); display: block; overflow: hidden; }
button.diapo { cursor: pointer; }
.diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carrusel-puntos { display: flex; justify-content: center; gap: 8px; }
.carrusel-puntos button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: none; background: var(--brd); transition: width 0.2s; }
.carrusel-puntos button[aria-current="true"] { width: 24px; background: var(--acc); }
.pago { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Opciones del pedido ---------- */
.opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opcion { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--brd); background: var(--sf); color: var(--tx); text-align: left; }
.opcion b { font-size: 15px; }
.opcion small { font-size: 13px; color: var(--tx2); line-height: 1.35; }
.opcion[aria-pressed="true"] { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.opcion:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 820px) {
  .diapo.con-movil { aspect-ratio: 1 / 1; }
  .carrusel-pista { border-radius: 20px; }
  .opciones { grid-template-columns: 1fr; }
}

/* ---------- Compra compartida ---------- */
.compartida { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--chip); }
.compartida.compacta { padding: 10px 12px; }
.compartida-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.compartida-cab b { font-size: 13px; }
.compartida small { font-size: 12px; color: var(--tx2); }
.e-compartida { background: var(--acc); color: var(--acc-on); }
.barra-comp { display: flex; gap: 4px; }
.barra-comp span { flex: 1; height: 8px; border-radius: 4px; background: var(--brd); }
.barra-comp span.on { background: var(--acc); }
.caja-compartida { border-color: var(--acc); }
.condiciones { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--sf); border: 1px solid var(--line); font-size: 14px; color: var(--tx2); line-height: 1.45; }
.condiciones b { color: var(--tx); }
.acepto { display: flex; gap: 10px; align-items: center; color: var(--tx); font-weight: 600; margin-top: 4px; cursor: pointer; }
.acepto input { width: 20px; height: 20px; accent-color: var(--acc); }
.campo input[type=file] { height: auto; padding: 10px; }
@media (max-width: 820px) { .compartida small { font-size: 11px; } }

/* Tarjetas: nada se sale del borde y los estados se leen sobre fotos blancas */
.tarjeta, .cuerpo { min-width: 0; }
.compartida-cab .estado { white-space: normal; max-width: 100%; line-height: 1.25; }
.foto .estado { box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.foto .e-nacionalizado, .foto .e-disponible { background: #E8F5EC; color: #1D7A35; }
.foto .e-en_puerto { background: #EAF2FF; color: #0058B0; }
.foto .e-en_transito { background: #FFF4E5; color: #A04500; }
.foto .e-a_importar { background: #F3EEFB; color: #6B3FA0; }
.foto .e-frio { background: #E3F3FA; color: #0A6A94; }
@media (max-width: 820px) {
  .compartida { padding: 10px; }
  .compartida-cab { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compartida-cab .estado { font-size: 11px; padding: 4px 8px; }
  .compartida-cab .estado span:first-child { display: none; }
}

/* ---------- Cuentas ---------- */
.btn-cuenta { position: relative; }
.btn-cuenta.con-sesion { background: var(--inv); color: var(--inv-tx); border-color: var(--inv); }
.punto-aviso { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 5px; background: var(--acc); border: 2px solid var(--bg); }
.con-ojo { position: relative; display: flex; }
.con-ojo input { flex-grow: 1; padding-right: 48px !important; width: 100%; }
.con-ojo .ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: transparent; color: var(--tx2); display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.nota-acceso { margin: 0; font-size: 14px; color: var(--tx2); line-height: 1.45; }
.cuenta-cab { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.cuenta-cab b { font-size: 20px; }
.cuenta-cab small { color: var(--tx2); }
.aviso-fila { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aviso-fila small { font-size: 13px; color: var(--tx2); }
.aviso-fila.nueva b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--acc); margin-right: 8px; vertical-align: middle; }
.campo select { height: 48px; }

/* ---------- Entrega A2: acceso centrado, planes y textos legales ---------- */
.velo.desenfoque { background: rgba(10,10,12,0.35); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
[data-tema="claro"] .velo.desenfoque { background: rgba(245,245,247,0.45); }
.acceso-tarjeta { width: min(460px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--sf); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); overflow: hidden; }
.acceso-cab { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.acceso-logo svg { height: 26px; width: auto; }
.acceso-titulo { margin: 14px 24px 4px; font-size: 30px; }
.acceso-cuerpo { padding: 12px 24px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.acceso-pie { padding: 14px 24px 22px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.acceso-segm { display: flex; width: 100%; overflow: visible; }
.acceso-segm button { flex: 1 1 0; justify-content: center; white-space: nowrap; }
.acceso-tipo { margin-top: 2px; }
.enlace { background: none; border: none; padding: 0; color: var(--acc); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acepto label { cursor: pointer; }
.wa-campo { display: flex; gap: 8px; }
.wa-campo select { width: 44%; min-width: 0; height: 48px; }
.wa-campo input { flex: 1 1 auto; min-width: 0; }
.cambiar-correo { display: flex; flex-direction: column; gap: 10px; }
.legal { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--tx2); }
.legal h3 { margin: 10px 0 0; font-size: 16px; color: var(--tx); }
.legal p { margin: 0; }
.legal ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.btn-cuenta { height: 44px; min-width: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--brd); background: transparent; color: var(--tx); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; overflow: visible; }
.btn-cuenta.con-sesion { padding: 0; width: 44px; background: var(--inv); color: var(--inv-tx); border-color: var(--inv); }
.btn-cuenta img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: #fff; }
/* Planes para proveedores, estilo tarjetas limpias */
.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pp-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 28px; background: var(--sf); border: 1px solid var(--line); }
.pp-card h3 { margin: 0; font-family: Manrope, -apple-system, sans-serif; font-size: 26px; letter-spacing: -0.02em; }
.pp-card p { margin: 0; color: var(--tx2); font-size: 15px; line-height: 1.5; min-height: 45px; }
.pp-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pp-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pp-card li svg { color: var(--acc); flex-shrink: 0; margin-top: 2px; }
.pp-card .btn { width: 100%; justify-content: center; }
.pp-etq { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 700; }
.pp-destacado { border: 2px solid var(--acc); box-shadow: 0 20px 50px rgba(231,39,80,0.15); }
.pp-destacado .pp-etq { background: var(--acc); color: var(--acc-on); }
@media (max-width: 1100px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .pp-grid { grid-template-columns: 1fr; }
  .velo.desenfoque { padding: 12px; }
  .acceso-tarjeta { max-height: calc(100vh - 24px); border-radius: 24px; }
  .btn-cuenta { padding: 0 14px; font-size: 14px; }
}
.sec-cab { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Entrega B1 ---------- */
.btn-notif { position: relative; }
.notif-num { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5243B; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tarjeta-enlace { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s; }
.tarjeta-enlace:hover { border-color: var(--acc); }
.linea-pedido .estado { flex-shrink: 0; }
.e-gris { background: var(--chip); color: var(--tx2); }
.pie-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx2); line-height: 1.5; }
/* «Acceder» nunca se encoge ni se deforma */
.btn-cuenta { flex-shrink: 0; white-space: nowrap; line-height: 1; box-sizing: border-box; }

/* ---------- Entrega B2 ---------- */
.btn-moneda { font-weight: 800; font-size: 16px; }
.sello-verif { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: rgba(48,209,88,0.14); color: #30D158; font-size: 11px; font-weight: 700; }
[data-tema="claro"] .sello-verif { color: #1D7A35; background: #E8F5EC; }

/* Logo de la ventana de acceso: mismo contraste que en la cabecera */
.acceso-logo { display: inline-flex; }
.acceso-logo svg { width: 132px; height: auto; display: block; }
.acceso-logo .blanco { fill: var(--tx); }
.acceso-logo .equis { fill: var(--acc); }

/* ---------- Entrega B3: filtros y sello X ---------- */
.btn-filtros { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.btn-filtros.activo { color: var(--acc); font-weight: 700; }
.filtro-grupo { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filtro-grupo:first-child { padding-top: 18px; }
.foto { position: relative; }
.sello-x { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 15px; background: #0E0E10; color: var(--acc); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.25); cursor: help; }
.sello-x svg { width: 16px; height: 16px; }
/* En ordenador los filtros están en la barra superior; en móvil, junto a cada sección */
.filtros-seccion { display: none; align-self: flex-start; }
@media (max-width: 820px) { .filtros-seccion { display: inline-flex; } }
.filtros-seccion.activo { border-color: var(--acc); color: var(--acc); }
/* Cabecera compacta en móvil (moneda, tema, acceso y pedido caben en una fila) */
@media (max-width: 820px) {
  .btn-pedido .txt-pedido { display: none; }
  .btn-pedido { padding: 0 10px; min-width: 44px; }
  .btn-moneda, .cab .redondo { width: 40px; height: 40px; }
  .btn-cuenta { height: 40px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 380px) { .btn-tema { display: none; } }

/* ---------- Palgao ---------- */
.cab .logo svg { height: 34px; width: auto; color: var(--tx); display: block; }
.logo-portada { display: flex; align-items: center; justify-content: center; }
.logo-portada svg { width: min(100%, 420px); height: auto; }
.logo-pie svg { height: 40px; width: auto; display: block; }
.acceso-logo svg { height: 30px; width: auto; color: var(--tx); }
/* El aviso nunca tapa la barra «Ver pedido» del móvil ni bloquea los toques */
.aviso { pointer-events: none; }
@media (max-width: 820px) { .aviso { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
