/* ---- checkout: selección de dirección (maqueta 26) ----
   classic pinta cada dirección como una tarjeta gris de 11,7rem de alto mínimo
   con el alias por título. En esta tienda 17.540 direcciones se llaman «Mi
   Dirección» y 10.414 «My address» (los valores por defecto de PrestaShop en
   cada idioma), así que un cliente con ocho veía ocho tarjetas idénticas de
   pantalla y media. Aquí manda la calle y la tarjeta es compacta. */
body#checkout section.checkout-step .dir-list { display:grid; gap:10px; }
@media (min-width:781px) { body#checkout section.checkout-step .dir-list.dos-col { grid-template-columns:1fr 1fr; } }

body#checkout section.checkout-step .address-item.dir {
  display:block; flex:none; min-height:0; margin:0; padding:0;
  border:1.5px solid var(--border); border-radius:11px; background:var(--surface);
  transition:border-color .12s ease, background .12s ease;
}
body#checkout section.checkout-step .address-item.dir:hover { border-color:var(--muted); }
body#checkout section.checkout-step .address-item.dir.selected { border:1.5px solid var(--navy); background:var(--surface-2); }
body#checkout section.checkout-step .address-item.dir > header { min-height:0; }
body#checkout section.checkout-step .address-item.dir .dir-label { display:flex; align-items:flex-start; gap:12px; padding:13px 15px; margin:0; cursor:pointer; text-align:left; }
/* el radio nativo de classic se sustituye por el punto del sistema */
body#checkout section.checkout-step .address-item.dir .custom-radio { position:absolute; opacity:0; width:0; height:0; margin:0; border:0; }
body#checkout section.checkout-step .address-item.dir .dir-radio { display:block; width:18px; height:18px; border:2px solid var(--border); border-radius:50%; background:var(--surface); flex:0 0 18px; margin-top:2px; position:relative; }
body#checkout section.checkout-step .address-item.dir.selected .dir-radio { border-color:var(--navy); }
body#checkout section.checkout-step .address-item.dir.selected .dir-radio::after { content:""; position:absolute; inset:3px; border-radius:50%; background:var(--navy); }
body#checkout section.checkout-step .dir-main { display:block; flex:1 1 auto; min-width:0; }
body#checkout section.checkout-step .dir-calle { display:block; font-weight:600; font-size:16px; line-height:1.35; color:var(--text); }
body#checkout section.checkout-step .dir-loc { display:block; font-size:16px; color:var(--muted); margin-top:2px; line-height:1.45; }
body#checkout section.checkout-step .dir-quien { display:block; font-size:16px; color:var(--muted); margin-top:3px; }
body#checkout section.checkout-step .dir-quien b { color:var(--text); font-weight:600; }
body#checkout section.checkout-step .dir-tags { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:7px; }
body#checkout section.checkout-step .dir-tag { font-family:'Rajdhani',sans-serif; font-weight:600; font-size:13px; letter-spacing:.03em; text-transform:uppercase; padding:2px 8px; border-radius:20px; background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
body#checkout section.checkout-step .address-item.dir.selected .dir-tag { background:var(--surface); }
body#checkout section.checkout-step .dir-tag.pais { color:var(--text); }
body#checkout section.checkout-step .dir-acc { display:flex; gap:12px; margin-top:8px; }
body#checkout section.checkout-step .dir-acc a,
body#checkout section.checkout-step .address-item.dir .edit-address,
body#checkout section.checkout-step .address-item.dir .delete-address { display:inline; margin:0; font-size:16px; color:var(--muted) !important; text-decoration:underline; }
body#checkout section.checkout-step .dir-acc a:hover { color:var(--text) !important; }
body#checkout section.checkout-step .dir-acc a.borrar:hover { color:var(--red) !important; }
/* plegado y buscador, solo cuando hay muchas */
body#checkout section.checkout-step .address-item.dir-oculta { display:none; }
body#checkout section.checkout-step .dir-list.abierta .address-item.dir-oculta { display:block; }
body#checkout section.checkout-step .dir-mas { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; margin-top:10px; border:1.5px dashed var(--border); border-radius:11px; padding:12px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; color:var(--red); background:none; cursor:pointer; }
body#checkout section.checkout-step .dir-mas:hover { border-color:var(--muted); }
body#checkout section.checkout-step .dir-mas .icon { width:12px; height:12px; transform:rotate(90deg); transition:transform .15s ease; }
body#checkout section.checkout-step .dir-mas[aria-expanded="true"] .icon { transform:rotate(-90deg); }
body#checkout section.checkout-step .dir-buscar { position:relative; margin-bottom:10px; }
body#checkout section.checkout-step .dir-buscar input { width:100%; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--text); font-family:inherit; font-size:16px; padding:10px 12px 10px 34px; }
body#checkout section.checkout-step .dir-buscar .icon { position:absolute; left:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted); }
body#checkout section.checkout-step .dir-sub { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; margin:0 0 12px; color:var(--text); text-transform:none; }
body#checkout section.checkout-step .add-address { margin:14px 0 0; }
body#checkout section.checkout-step .dir-nueva, body#checkout section.checkout-step .dir-factlink { display:inline-flex; align-items:center; gap:7px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; color:var(--red) !important; text-decoration:none; }
body#checkout section.checkout-step .dir-nueva .icon { width:14px; height:14px; }
body#checkout section.checkout-step .dir-vacio { font-size:16px; color:var(--muted); }

/* ---- formularios (Fase 5) ----
   _partials/form-fields.tpl lo usa toda la tienda: registro, cuenta,
   direcciones, checkout y contacto. classic lo maqueta con la retícula de
   Bootstrap (etiqueta a la izquierda, «Opcional» en una columna suelta a la
   derecha) y deja los inputs grises del tema padre. Aquí la etiqueta va encima
   y el campo usa el estilo del sistema. */
.f-group { display:block; margin:0 0 16px; max-width:520px; }
.f-label { display:block; font-size:16px; font-weight:600; color:var(--text); margin:0 0 6px; text-align:left; width:auto; padding:0; }
.f-label.required::after { content:" *"; color:var(--red); font-weight:700; }
.f-opt { font-weight:400; color:var(--muted); font-size:16px; margin-left:5px; }
.f-input { display:block; width:auto; padding:0; }
.f-control {
  width:100%; border:1px solid var(--border); border-radius:9px; background:var(--surface);
  color:var(--text); font-family:inherit; font-size:16px; padding:10px 12px; height:auto;
  box-shadow:none; -webkit-appearance:none; appearance:none;
}
.f-control:focus { outline:2px solid var(--navy); outline-offset:1px; border-color:var(--navy); }
.f-control::placeholder { color:var(--muted); }
select.f-control { background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235C6478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:16px; padding-right:32px; }
.f-help { display:block; font-size:16px; color:var(--muted); margin-top:5px; line-height:1.45; }

/* radios en línea (tratamiento: Sr. / Sra.) */
.f-radios { display:flex; gap:18px; flex-wrap:wrap; padding-top:2px; }
.f-radio { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:16px; cursor:pointer; }
.f-radio .custom-radio { position:absolute; opacity:0; width:0; height:0; margin:0; border:0; }
.f-radio-dot { width:17px; height:17px; border:2px solid var(--border); border-radius:50%; background:var(--surface); flex-shrink:0; position:relative; }
.f-radio:has(input:checked) .f-radio-dot { border-color:var(--navy); }
.f-radio:has(input:checked) .f-radio-dot::after { content:""; position:absolute; inset:3px; border-radius:50%; background:var(--navy); }

/* casillas */
.f-group-check { max-width:none; }
.f-check { display:flex; align-items:flex-start; gap:10px; margin:0; font-size:16px; cursor:pointer; font-weight:400; }
.f-check input { position:absolute; opacity:0; width:0; height:0; }
.f-box { width:17px; height:17px; border:1.5px solid var(--border); border-radius:4px; background:var(--surface); flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; }
.f-check input:checked + .f-box { background:var(--navy); border-color:var(--navy); }
.f-check input:checked + .f-box::after { content:""; width:9px; height:5px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg) translate(0,-1px); }
.f-check-txt a { color:var(--red) !important; text-decoration:underline; }
.custom-checkbox { display:block; }

/* contraseña: el botón va dentro del campo, no pegado como bloque gris */
.f-pass { position:relative; display:block; }
.f-pass .f-control { padding-right:78px; }
.f-pass .input-group-btn { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:auto; }
.f-pass-btn { border:0; background:none; box-shadow:none; padding:4px 8px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; color:var(--red); text-transform:none; cursor:pointer; }
.f-pass-btn:hover { text-decoration:underline; }

/* fecha de nacimiento: tres selectores en línea */
.f-birthday { display:flex; gap:8px; }
.f-birthday .f-control { width:auto; flex:1; min-width:0; }

/* errores */
.f-group.has-error .f-control { border-color:var(--red); }
.f-group .help-block, .f-group .alert-danger { list-style:none; margin:6px 0 0; padding:0; font-size:16px; color:var(--red); }

/* dos columnas en pantallas anchas para los formularios largos del checkout y
   la cuenta; los campos de una sola línea se emparejan */
@media (min-width:781px) {
  .f-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
  .f-grid-2 .f-group { max-width:none; }
  .f-grid-2 .f-group-check, .f-grid-2 .f-group:has(textarea), .f-grid-2 .f-group:has(.f-pass) { grid-column:1 / -1; }
}

/* nota de «crear una cuenta (opcional)» del checkout */
.form-informations { background:var(--surface-2); border-radius:10px; padding:12px 14px; margin:4px 0 14px; font-size:16px; max-width:520px; }
.form-informations-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; color:var(--text); }
.form-informations-option { color:var(--muted); font-size:16px; }
.form-informations-subtitle { display:block; color:var(--muted); font-size:16px; margin-top:2px; }

/* pestañas invitado / iniciar sesión del checkout */
body#checkout .nav-inline { display:flex; gap:0; align-items:center; margin:0 0 18px; padding:0; list-style:none; border-bottom:1px solid var(--border); }
body#checkout .nav-inline .nav-item { display:block; }
body#checkout .nav-inline .nav-separator { display:none; }
body#checkout .nav-inline .nav-link { display:block; padding:9px 16px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; color:var(--muted) !important; border-bottom:2px solid transparent; margin-bottom:-1px; text-decoration:none; }
body#checkout .nav-inline .nav-link.active { color:var(--text) !important; border-bottom-color:var(--red); }
body#checkout .nav-inline .nav-link:hover { color:var(--text) !important; }

/* classic posiciona en absoluto el <span> de sus casillas y añade sangría al
   label: con el markup del sistema eso descolocaba casillas y botón */
body#checkout .custom-checkbox { display:block; }
body#checkout .custom-checkbox span.f-box { position:static; top:auto; left:auto; flex:0 0 17px; margin-top:2px; }
body#checkout .custom-checkbox > label.f-check { padding-left:0; }
body#checkout section.checkout-step .f-group-check { margin-bottom:10px; }
/* el botón de avance no flota */
body#checkout section.checkout-step button.continue { float:none; margin-top:18px; }
/* el botón de mostrar contraseña va dentro del campo */
body#checkout .f-pass .input-group-btn, .f-pass .input-group-btn { display:block; }
.f-pass.input-group { display:block; width:auto; }
/* dentro de un .input-group, Bootstrap flota el .form-control y el contenedor
   colapsa a 0 de alto: el botón de mostrar contraseña quedaba flotando arriba */
.f-pass .f-control, body#checkout .f-pass .f-control { float:none; }
.f-pass { min-height:40px; }
/* dentro de .input-group el input lleva z-index:2 y tapaba el botón: era
   imposible pulsar «Mostrar» */
.f-pass .input-group-btn, body#checkout .f-pass .input-group-btn { z-index:3; }
.f-pass .f-control { z-index:1; }
/* el comentario del campo llega con marcado del core y parte heredaba el color
   de enlace de classic */
.f-help, .f-help * { color:var(--muted); font-size:16px; }

/* ---- dos correcciones medidas (2026-08-14, revisión del cliente) ----

   1) Importes del resumen desalineados. Las filas son flex con space-between,
      pero classic les cuelga un ::after de clearfix que actúa como tercer ítem:
      el reparto dejaba el importe en el centro en vez de pegado al borde. */
#checkout .cs-row::after, #checkout .cs-total::after, #checkout .cs-line::after,
#checkout .cs-row::before, #checkout .cs-total::before, #checkout .cs-line::before { content:none; display:none; }
/* y el importe manda hasta el borde, con su propio ancho */
#checkout .cs-row .v, #checkout .cs-total .v { float:none; margin-left:auto; text-align:right; }

/*  2) Casillas solapadas con su texto. `body#checkout .custom-checkbox span`
      pone en absoluto TODOS los span de dentro, no solo la caja: el texto se
      colocaba también en left:0, encima de ella. */
body#checkout .custom-checkbox span.f-box,
body#checkout .custom-checkbox span.f-check-txt,
body#checkout .f-check span { position:static; top:auto; left:auto; }
body#checkout .f-check span.f-box { flex:0 0 17px; margin-top:2px; }
body#checkout .f-check span.f-check-txt { flex:1 1 auto; }

/* ---- acceso a la cuenta (maqueta 27) ----
   Pantalla de paso: tarjeta estrecha centrada, botón a ancho completo y
   «crear cuenta» separado por una línea en vez de compitiendo con «entrar». */
.acc-page { display:flex; justify-content:center; padding:34px 0 46px; }
.acc-card { background:var(--surface); border-radius:14px; box-shadow:var(--shadow); padding:28px 30px 26px; width:100%; max-width:430px; }
.acc-card h1 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:26px; margin:0 0 4px; line-height:1.25; text-transform:none; color:var(--text); }
.acc-sub { font-size:16px; color:var(--muted); margin:0 0 22px; line-height:1.5; }
.acc-card .f-group { max-width:none; }
.acc-forgot { display:block; text-align:right; font-size:16px; color:var(--muted) !important; text-decoration:underline; margin:-6px 0 18px; }
.acc-forgot:hover { color:var(--text) !important; }
.acc-card .forgot-password { margin:0; }
.acc-cta { display:block; width:100%; text-align:center; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; padding:14px 20px; background:var(--red); color:#fff !important; border:0; border-radius:11px; cursor:pointer; text-transform:none; text-decoration:none; }
.acc-cta:hover { filter:brightness(1.06); color:#fff !important; }
.acc-cta-2 { display:block; width:100%; text-align:center; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; padding:12px 20px; background:var(--surface); color:var(--text) !important; border:1.5px solid var(--border); border-radius:11px; cursor:pointer; text-decoration:none !important; }
.acc-cta-2:hover { border-color:var(--navy); color:var(--text) !important; }
.acc-sep { border-top:1px solid var(--border); margin:24px 0 18px; }
.acc-alt { text-align:center; }
.acc-alt p { font-size:16px; color:var(--muted); margin:0 0 11px; }
.acc-error { display:flex; gap:9px; align-items:flex-start; background:color-mix(in srgb, var(--red) 8%, var(--surface)); border:1px solid color-mix(in srgb, var(--red) 32%, var(--border)); border-radius:10px; padding:11px 13px; font-size:16px; margin:0 0 18px; line-height:1.45; color:var(--text); }
.acc-error .icon { width:15px; height:15px; color:var(--red); flex-shrink:0; margin-top:1px; }
.acc-error b { display:block; margin-bottom:2px; }
.acc-why { display:flex; flex-direction:column; gap:9px; margin-top:18px; }
.acc-why span { display:flex; align-items:center; gap:9px; font-size:16px; color:var(--muted); }
.acc-why .icon { width:15px; height:15px; color:var(--text); flex-shrink:0; }
/* la caja blanca de page.tpl sobra: la tarjeta ya la pone esta pantalla */
#authentication #content.page-content, #password #content.page-content,
#authentication .page-content.card, #password .page-content.card { background:none; box-shadow:none; padding:0; border:0; }
#authentication .login-form, #password .forgotten-password { margin:0; }
@media (max-width:560px) { .acc-page { padding:18px 16px 30px; } .acc-card { padding:22px 20px; } }

/* ---- casilla marcada (2026-08-14) ----
   classic devuelve la caja a display:block y le fija el borde gris, así que el
   tick centrado por flex se iba a la esquina. Se posiciona el tick dentro de la
   caja para no depender del display, y se refuerza el borde. */
.f-check .f-box, body#checkout .f-check .f-box,
#authentication .f-check .f-box, .custom-checkbox .f-box {
  position:relative; display:block; width:17px; height:17px; border:1.5px solid var(--border);
  border-radius:4px; background:var(--surface); flex:0 0 17px;
}
.f-check input:checked + .f-box,
body#checkout .f-check input:checked + .f-box,
.custom-checkbox input:checked + .f-box { background:var(--navy); border-color:var(--navy); }
.f-check .f-box::after, .custom-checkbox .f-box::after {
  content:""; position:absolute; left:50%; top:47%; width:8px; height:4px;
  border-left:2px solid #fff; border-bottom:2px solid #fff;
  transform:translate(-50%,-50%) rotate(-45deg); opacity:0;
}
.f-check input:checked + .f-box::after,
.custom-checkbox input:checked + .f-box::after { opacity:1; }

/* ---- carril de las páginas de cuenta ----
   Las pantallas ya portadas anulan el .container de Bootstrap y corren sobre el
   carril del tema (1320 + 32 de aire). Login y registro se habían quedado en el
   de classic (1140), así que salían más estrechas y descentradas respecto al
   resto del sitio. */
#authentication #wrapper > .container,
#registration #wrapper > .container,
#password #wrapper > .container { max-width:none; width:auto; padding:0; margin:0; }
#authentication #wrapper, #registration #wrapper, #password #wrapper { background:var(--bg); }
#authentication .js-content-wrapper, #registration .js-content-wrapper, #password .js-content-wrapper { padding:0; }
/* misma anchura de tarjeta en toda la familia: acceso, registro y recuperación
   se ven una detrás de otra y cualquier diferencia canta */
.acc-card, .acc-card-ancha { max-width:460px; }
.acc-card .acc-sub a { color:var(--red) !important; text-decoration:underline; }
#registration .register-form > p:first-child { display:none; }

/* ---- correcciones globales del tema (2026-08-14) ----
   Van en esta hoja, y no en fase5.css, porque aquel fichero lo escriben varias
   sesiones a la vez y estos bloques se perdían. */

/* El botón primario es rojo pleno: su texto va en blanco. No lo fijaba nadie, así
   que heredaba el color del cuerpo y salía en gris oscuro sobre rojo — se veía en
   «Iniciar sesión» del panel de usuario y en «Finalizar compra» de la minicesta. */
.btn-primary, a.btn-primary, button.btn-primary { color:#fff; }
/* dentro de la cabecera manda `#header a{color:#232323}` de classic, que lleva
   un id y gana a cualquier selector de clase: hay que igualar el id */
#header a.btn-primary, #header .btn-primary,
#header .user-panel a.btn-primary, #header .cart-panel a.btn-primary,
#header a.btn-primary:hover, #header .btn-primary:hover { color:#fff; }

/* Los enlaces dentro del texto libre del catálogo (descripción de la ficha,
   páginas CMS) salían con el cian de classic (#24b9d7). El enlace del sistema
   es rojo y subrayado. */
.p3-prose a, .product-description a, .product-information a,
.rte a, .page-content.page-cms a {
  color:var(--red); text-decoration:underline; text-underline-offset:2px;
}
.p3-prose a:hover, .product-description a:hover, .product-information a:hover,
.rte a:hover, .page-content.page-cms a:hover { text-decoration:none; }
/* salvo los que ya son botones o pastillas del sistema */
.p3-prose a.btn, .product-description a.btn, .rte a.btn { text-decoration:none; }
/* atributos de la línea en el panel de la minicesta */
.cart-panel .cp-attr { display:block; font-size:16px; color:var(--muted); margin-top:1px; }

/* ---- páginas legales / CMS (maqueta 24) ----
   El contenido lo escribe el cliente desde el back office, así que el estilo se
   aplica por tipo de elemento dentro de .legal-doc, no por clases que el editor
   no va a poner. El nivel de encabezado varía por página (4 usan <h3> y una
   <h2>), de ahí que h2, h3 y h4 se traten como sección, subsección y detalle. */
.legal-layout { display:grid; grid-template-columns:242px 1fr; gap:40px; align-items:start; padding-bottom:36px; }
.legal-layout > * { min-width:0; }

.toc { position:sticky; top:96px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 6px 14px 16px; }
.toc-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 10px; }
.toc-list { list-style:none; margin:0; padding:0; max-height:min(62vh,520px); overflow-y:auto; padding-right:10px; }
.toc-list li { margin:0; }
.toc-list a { display:block; font-size:16px; line-height:1.4; padding:6px 10px 6px 12px; border-left:2px solid transparent; color:var(--muted); cursor:pointer; }
.toc-list a:hover { color:var(--text); }
.toc-list a.on { color:var(--text); border-left-color:var(--red); font-weight:600; background:var(--surface-2); border-radius:0 5px 5px 0; }
.toc-list .sub a { padding-left:24px; font-size:16px; }

.toc-mobile { display:none; margin-bottom:18px; }
.toc-mobile summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:12px 15px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; }
.toc-mobile summary::-webkit-details-marker { display:none; }
.toc-mobile summary .icon { width:16px; height:16px; transition:transform .18s ease; }
.toc-mobile[open] summary .icon { transform:rotate(90deg); }
.toc-mobile .toc-list { margin-top:8px; max-height:none; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px; }

.legal-doc { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:34px 40px 38px; }
.legal-doc h2 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:21px; margin:34px 0 10px; scroll-margin-top:100px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.legal-doc h2:first-of-type { margin-top:4px; }
.legal-doc h3 { font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; margin:22px 0 7px; scroll-margin-top:100px; }
.legal-doc p, .legal-doc li { font-size:16px; line-height:1.68; color:var(--text); }
.legal-doc p { margin:0 0 12px; max-width:74ch; }
.legal-doc ul, .legal-doc ol { margin:0 0 14px; padding-left:22px; max-width:74ch; }
.legal-doc li { margin-bottom:6px; }
.legal-doc a { color:var(--red); text-decoration:underline; text-underline-offset:2px; }
.legal-doc strong { font-weight:700; }

.legal-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:0 0 18px; font-size:16px; color:var(--muted); }
.legal-meta .lm-sep { width:1px; height:14px; background:var(--border); }
.legal-print { display:inline-flex; align-items:center; gap:7px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:7px 13px; cursor:pointer; }
.legal-print:hover { border-color:var(--navy); }
.legal-print .icon { width:15px; height:15px; }

/* aviso destacado dentro del texto legal */
.legal-callout { border:1px solid var(--border); border-left:3px solid var(--navy); background:var(--bg); border-radius:0 8px 8px 0; padding:14px 18px; margin:16px 0 20px; max-width:74ch; }
.legal-callout p:last-child { margin-bottom:0; }
.legal-callout b { font-family:'Rajdhani',sans-serif; font-weight:700; }

/* tabla de zonas de envío dentro del legal */
.legal-table { width:100%; border-collapse:collapse; margin:6px 0 18px; font-size:16px; }
.legal-table th, .legal-table td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
.legal-table th { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:13px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); background:var(--bg); }
.legal-table td b { font-family:'Rajdhani',sans-serif; font-weight:600; }
.legal-table-wrap { overflow-x:auto; max-width:100%; }

/* otras páginas legales */
.legal-others { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; margin-top:26px; }
.legal-other { display:block; border:1px solid var(--border); border-radius:8px; background:var(--surface); padding:14px 16px; cursor:pointer; }
.legal-other:hover { border-color:var(--navy); }
.legal-other b { display:block; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; margin-bottom:3px; }
.legal-other span { font-size:16px; color:var(--muted); line-height:1.45; }

/* ============================= RESPONSIVE ============================= */
@media (max-width:980px) {
  .legal-layout { grid-template-columns:1fr; gap:0; }
  .toc { display:none; }
  .toc-mobile { display:block; }
  .legal-doc { padding:24px 20px 28px; border-radius:10px; }
  .brand-head { grid-template-columns:88px 1fr; gap:18px; padding:18px; }
  .brand-logo { width:88px; height:88px; }
  .brand-head h1 { font-size:25px; }
  .srch-tips { grid-template-columns:1fr; }
  .page-head h1 { font-size:25px; }
  .srch-query b { font-size:21px; }
}
@media (max-width:560px) {
  .legal-doc { padding:20px 16px 24px; }
  .legal-doc h2 { font-size:18.5px; }
  .legal-doc p, .legal-doc li { font-size:16px; }
  .brands-strip { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
}

/* impresión: el documento legal debe salir limpio */
@media print {
  .b-topbar, .b-header, .menu-panel, .b-footer, .toc, .toc-mobile, .legal-meta .legal-print, .legal-others { display:none !important; }
  .legal-layout { grid-template-columns:1fr; }
  .legal-doc { border:none; padding:0; }
}


/* Los encabezados reales del catálogo: 4 de las 5 páginas usan <h3> como
   sección, así que h3 recibe el mismo peso visual que h2 cuando no hay h2. */
.legal-doc h3 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:21px; margin:34px 0 10px; scroll-margin-top:100px; padding-bottom:8px; border-bottom:1px solid var(--border); color:var(--text); }
.legal-doc h2 ~ h3, .legal-doc:has(h2) h3 { font-weight:600; font-size:16px; margin:22px 0 7px; padding-bottom:0; border-bottom:0; }
.legal-doc h4 { font-family:'Rajdhani',sans-serif; font-weight:600; font-size:16px; margin:18px 0 6px; scroll-margin-top:100px; color:var(--text); }
.legal-doc h3:first-child, .legal-doc h2:first-child { margin-top:4px; }
.legal-doc table { width:100%; border-collapse:collapse; margin:6px 0 18px; font-size:16px; display:block; overflow-x:auto; }
.legal-doc th, .legal-doc td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
.legal-doc th { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:13px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); background:var(--bg); }
.legal-doc img { max-width:100%; height:auto; }
.legal-doc hr { border:0; border-top:1px solid var(--border); margin:22px 0; }

/* título y carril de la página */
.legal-wrap { padding-top:22px; }
.legal-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:30px; margin:0 0 12px; text-transform:none; color:var(--text); line-height:1.25; }
#cms #wrapper > .container { max-width:none; width:auto; padding:0; margin:0; }
#cms #wrapper { background:var(--bg); }
#cms .js-content-wrapper { padding:0; }
/* sin índice, el documento ocupa el ancho completo */
.legal-layout:not(.con-toc) { grid-template-columns:1fr; }
@media (max-width:900px) { .toc { display:none; } .toc-mobile { display:block; } }
@media (min-width:901px) { .toc-mobile { display:none; } }

/* ---- higiene del contenido escrito en el back office ----
   El editor de PS deja tres cosas que rompen el documento: encabezados
   subrayados con <span style>, listas escritas como <li><p> (el párrafo cae
   debajo de la viñeta) y párrafos vacíos como separadores. */
.legal-doc h1, .legal-doc h2, .legal-doc h3, .legal-doc h4,
.legal-doc h1 span[style], .legal-doc h2 span[style],
.legal-doc h3 span[style], .legal-doc h4 span[style] { text-decoration:none !important; }
.legal-doc li > p { display:inline; margin:0; }
.legal-doc li > p ~ p { display:block; margin-top:6px; }
.legal-doc p:empty { display:none; }
.legal-doc li { margin-bottom:6px; }
/* el texto justificado abre calles entre palabras y cansa en documentos largos:
   el sistema alinea a la izquierda */
.legal-doc, .legal-doc p, .legal-doc li, .legal-doc td { text-align:left; }
/* Bootstrap compensa el padding de la columna con `margin:0 -15px` en el .row.
   Al quitar el padding para usar el carril del tema, ese margen negativo se
   quedaba vivo y sacaba el contenido 15px por cada lado (visible en móvil, donde
   el aire lateral es justo el que se perdía). */
#cms #wrapper > .container > .row,
#authentication #wrapper > .container > .row,
#registration #wrapper > .container > .row,
#password #wrapper > .container > .row { margin-left:0; margin-right:0; }

/* ---- checkout: campos en dos columnas (2026-10-18) ----
   Con el tope de 520px de .f-group, en escritorio los datos personales y la
   dirección ocupaban un tercio de la columna y dejaban el resto en blanco.
   Aquí la columna se reparte en dos sin tocar el markup: los campos de una
   línea se emparejan y todo lo demás (tratamiento, casillas, contraseña, la
   nota de crear cuenta, lo que metan los módulos) ocupa la fila entera. */
@media (min-width:1100px) {
  body#checkout #customer-form > div,
  body#checkout .js-address-form .form-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
  body#checkout #customer-form > div > *,
  body#checkout .js-address-form .form-fields > * { grid-column:1 / -1; }
  body#checkout #customer-form > div > .f-group:not(.f-group-check):not(:has(.f-radios, .f-pass, textarea)),
  body#checkout .js-address-form .form-fields > .f-group:not(.f-group-check):not(:has(.f-radios, .f-pass, textarea)) { grid-column:auto; max-width:none; }
  body#checkout #customer-form > div > .form-informations { max-width:none; }
}
