:root{
  --sport:'Russo One',sans-serif;
  --ui:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans";
  --bg:#fff;
  --ink:#111315;
  --muted:#676b73;
  --line:#E6E9EF;
  --primary:#b91e1e;
  --primary-soft:rgba(185,30,30,.08);

  --header-h:88px;
  --sat:env(safe-area-inset-top,0px);
  --radius:14px;
}

@media (max-width:768px){
  :root{ --header-h:72px; }
}

*{ box-sizing:border-box; margin:0; padding:0; }

html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  font-family:var(--ui);
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
  overflow-x:hidden;
  padding-top:calc(var(--header-h) + var(--sat));
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(1100px,100%);
  padding-inline:clamp(16px,4vw,28px);
  margin-inline:auto;
}

/* Header con el mismo ancho del index */
header .container{ width:min(1200px,100%); }

.skip-link{
  position:absolute;
  left:16px;
  top:-40px;
  padding:8px 12px;
  border-radius:8px;
  background:#111;
  color:#fff;
  z-index:200;
  transition:top .2s;
}
.skip-link:focus{ top:8px; }

/* ===================== HEADER + MENÚ ===================== */
header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:80;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,.05);
  padding-top: var(--sat);
}

.nav{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  height:var(--header-h);
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brand a{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.brand a img{ flex:0 0 auto; }
.brand a span{
  display:inline-block;
  line-height:1;
  white-space:nowrap;
}

.brand img{
  height:52px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 4px 10px rgba(15,23,42,.15));
}
.brand span{
  font-family:'Tangerine',cursive;
  font-size:1.7rem;
  color:var(--primary);
  white-space:nowrap;
}

nav.menu{
  justify-self:end;
  display:flex;
  gap:10px;
  font-weight:800;
  text-transform:uppercase;
  font-size:.86rem;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
}

nav.menu a{
  padding:7px 11px;
  border-radius:999px;
  background:transparent;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:background .15s ease, color .15s ease, transform .12s ease;
  white-space:nowrap;
}

nav.menu a .nav-icon{ font-size:.95em; }

nav.menu a:hover{
  background:var(--primary-soft);
  transform:translateY(-1px);
}

/* Burger */
.burger{
  display:none;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:20px;
  color:#111;
  justify-self:end;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  transition:transform .12s ease, box-shadow .16s ease, background .15s ease;
}
.burger:hover{
  background:#f9fafb;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(15,23,42,.10);
}
.burger:active{
  transform:translateY(0);
  box-shadow:0 8px 16px rgba(15,23,42,.06);
}

/* Responsive: ocultar menú escritorio y mostrar burger */
@media (max-width:768px){
  nav.menu{ display:none; }
  .burger{ display:grid; }
}

/* =================== CONTENIDO PRINCIPAL =================== */
main{ padding-block:22px 32px; }

.breadcrumb{
  font-size:.8rem;
  color:var(--muted);
  display:flex;
  gap:4px;
  align-items:center;
  margin-bottom:8px;
}
.breadcrumb a{
  text-decoration:underline;
  text-underline-offset:2px;
}

.page-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.title-left h1{
  font-family:var(--sport);
  font-size:1.6rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.title-left span{
  font-size:.85rem;
  color:var(--muted);
}

.badge-min{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:.75rem;
  text-transform:uppercase;
  font-weight:800;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:22px;
  align-items:flex-start;
}

/* GALERÍA */
.gallery{
  border-radius:var(--radius);
  border:1px solid var(--line);
  padding:10px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.gallery-main{
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:4/3;
  overflow:hidden;
}
.gallery-main img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.thumbs{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
}

.thumb{
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  padding:2px;
  cursor:pointer;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:60px;
  object-fit:cover;
}
.thumb.active{
  border-color:#111;
  box-shadow:0 0 0 1px #111;
}

/* FICHA TÉCNICA */
.panel{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.price-row{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.price-now{
  font-size:1.5rem;
  font-weight:900;
}
.price-was{
  color:#9aa0a6;
  text-decoration:line-through;
  font-weight:700;
  font-size:.95rem;
}

.quick-specs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  font-size:.85rem;
}

.pill{
  border-radius:10px;
  border:1px solid var(--line);
  padding:6px 8px;
  display:flex;
  flex-direction:column;
}
.pill-label{
  text-transform:uppercase;
  font-size:.7rem;
  color:var(--muted);
  font-weight:800;
}
.pill-value{
  font-weight:800;
  font-size:.9rem;
}

.cta-col{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.btn-main{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  border:1px solid #ffffff;
  background:#ffc730;
  color:#000000;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn-main i{ display:none; }
.btn-main::before{
  content:"";
  width:14px;
  height:14px;
  display:inline-block;
  background-color:currentColor;
  -webkit-mask:url("/img/shop-bag-svgrepo-com.svg") center / contain no-repeat;
  mask:url("/img/shop-bag-svgrepo-com.svg") center / contain no-repeat;
}
.btn-reserve{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  border:1px solid #000000;
  background:#ffffff;
  color:#030202;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn-reserve:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(14, 14, 14, 0.25);
}
.btn-reserve:active{ transform:translateY(0); }

.btn-main:hover{
  transform:translateY(-1px);
  background:#d3a42f;
  border-color:#ffffff;
  box-shadow:none;
}
.btn-main:active{ transform:translateY(0); }

.spec-table{
  border-radius:10px;
  border:1px solid var(--line);
  padding:10px 12px;
  font-size:.85rem;
}

.spec-row{
  display:grid;
  grid-template-columns:1.1fr 2fr;
  padding:4px 0;
  border-bottom:1px dashed #e5e7eb;
}
.spec-row:last-child{ border-bottom:0; }

.spec-label{
  font-weight:800;
  color:#4b5563;
}
.spec-value{
  color:#111827;
}

.mini-note{
  font-size:.78rem;
  color:var(--muted);
}

/* FOOTER */
footer{
  text-align:center;
  padding:16px 0 4px;
  color:var(--muted);
  font-size:.8rem;
}

@media (max-width:900px){
  .layout{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  .thumbs{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width:640px){
  .gallery-main{ aspect-ratio:3/4; }
  .thumb img{ height:54px; }
  .quick-specs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* =========================================================
   PRODUCT PAGES (tarjetas.css) — UI común para fichas
   Incluye: layout, galería, panel, accordion + fix recorte PC
   ========================================================= */

/* Burger disabled (mientras carga el menú) */
.burger[disabled]{ opacity:.55; cursor:not-allowed; }

/* Variables + base (solo afecta a páginas que cargan tarjetas.css) */
:root{
  --ui:'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --sport:'Russo One', system-ui, sans-serif;

  --ink:#0b0b0d;
  --muted:#5b5f6a;
  --line:rgba(0,0,0,.10);
  --card:#ffffff;
  --bg:#fafafa;

  --accent:#d11c1c;
  --soft:rgba(209,28,28,.10);
  --shadow:0 16px 34px rgba(0,0,0,.10);
}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--ui);
}

.page-wrap{ padding-top: 8px; }

/* Breadcrumb */
.breadcrumb{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  font-weight:800; color:var(--muted);
  margin:18px 0 10px;
}
.breadcrumb a{ color:var(--muted); text-decoration:none; }
.breadcrumb a:hover{ color:var(--ink); }

/* Título */
.page-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:10px 0 18px;
}
.page-title h1{
  font-family:var(--sport);
  letter-spacing:.6px;
  margin:0;
  font-size:34px;
  line-height:1.05;
}
.page-title .subtitle{
  margin-top:6px;
  color:var(--muted);
  font-weight:700;
}
.badge-min{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:var(--soft);
  color:var(--accent);
  font-weight:900;
  white-space:nowrap;
}

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap:18px;
  align-items:start;
}

.panel, .gallery{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:5px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* =========================
   GALERÍA
   ========================= */
.gallery-main{
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  border-bottom:1px solid var(--line);
}
@media (min-width: 769px){
  .gallery-main img{ max-width:80%; }
}
@media (max-width:768px){
  .gallery-main img{ max-width:170%; }
}
/* Base: imagen principal sin rarezas */
.gallery-main img{
  
  height:auto;
  display:block;
  border-radius:5px;
}

/* ✅ FIX PC: evita recorte arriba (si otro CSS mete height/cover) */
@media (min-width: 981px){
  .gallery-main{
    height:auto !important;
    min-height:420px;
  }
  .gallery-main img{
    width:100%;
    height:auto !important;
    max-height:520px;
    object-fit:contain !important;     /* clave: no recorta */
    object-position:center center;
  }
}

.thumbs{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:10px;
  padding:14px;
  background:linear-gradient(180deg, #fff, #fbfbfb);
}
.thumb{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:6px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.thumb img{
  width:100%;
  height:52px;
  object-fit:cover;
  border-radius:5px;
  display:block;
}
.thumb:hover{ transform:translateY(-1px); box-shadow:0 10px 18px rgba(0,0,0,.08); }
.thumb.active{ border-color: rgba(209,28,28,.45); box-shadow:0 0 0 3px rgba(209,28,28,.12); }

/* =========================
   PANEL
   ========================= */
.panel-inner{ padding:16px; }

.price-row{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, #fff, #fbfbfb);
}
.price-now{ font-size:30px; font-weight:900; color:var(--ink); }
.price-was{ font-size:16px; font-weight:900; color:var(--muted); text-decoration:line-through; opacity:.75; }

.desc{
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.55;
  font-weight:700;
}

.quick-specs{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
.pill{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 10px;
  background:#fff;
}
.pill-label{ display:block; font-weight:900; font-size:12px; color:var(--muted); }
.pill-value{ display:block; font-weight:900; font-size:14px; margin-top:4px; color:var(--ink); }

.cta-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.btn-main, .btn-reserve{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:1000;
  letter-spacing:.3px;
  border:1px solid var(--line);
  transition:transform .15s ease, box-shadow .15s ease;
  user-select:none;
  white-space:nowrap;
}
.btn-main{
  background:#ffc526;
  color:#111;
  border-color:#ffffff;
  box-shadow:none;
}
.btn-reserve{
  background:#fff;
  color:#111;
}
.btn-main:hover{
  transform:translateY(-1px);
  background:#c8981f;
  border-color:#ffffff;
  box-shadow:none;
}
.btn-reserve:hover{ transform:translateY(-1px); box-shadow:0 14px 26px rgba(0,0,0,.12); }
.btn-main i{ display:none; }
.btn-main::before{
  content:"";
  width:14px;
  height:14px;
  display:inline-block;
  background-color:currentColor;
  -webkit-mask:url("/img/shop-bag-svgrepo-com.svg") center / contain no-repeat;
  mask:url("/img/shop-bag-svgrepo-com.svg") center / contain no-repeat;
}
.btn-reserve i{ color:#16a34a; }

/* Envío */
.shipping-box{
  margin-top:14px;
  border:1px dashed rgba(209,28,28,.35);
  background: rgba(209,28,28,.06);
  border-radius:16px;
  padding:12px 14px;
  color:var(--ink);
}
.shipping-box strong{ color:var(--accent); }

.mini-note{
  margin:12px 0 0;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  line-height:1.45;
}

/* Accordion ficha técnica */
.spec-acc{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.spec-acc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  background:linear-gradient(180deg, #fff, #fbfbfb);
  border:0;
  cursor:pointer;
  font-family:var(--ui);
  font-weight:1000;
  letter-spacing:.2px;
  color:var(--ink);
}
.spec-acc-btn i{ transition:transform .18s ease; opacity:.9; }
.spec-acc-btn[aria-expanded="true"] i{ transform:rotate(180deg); }

.spec-acc-panel{
  border-top:1px solid var(--line);
  padding:12px 14px 14px;
  animation:specIn .18s ease both;
}
@keyframes specIn{
  from{ opacity:0; transform:translateY(-2px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Tabla specs */
.spec-table{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  margin-top:10px;
  background:#fff;
}
.spec-row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid var(--line);
}
.spec-row:first-child{ border-top:0; }
.spec-label{ font-weight:1000; color:var(--muted); }
.spec-value{ font-weight:800; color:var(--ink); }

/* Evita doble borde dentro del accordion */
.spec-acc-panel .spec-table{
  margin-top:0;
  border:0;
  border-radius:0;
}

/* Footer */
footer{
  max-width:1200px;
  margin:26px auto 30px;
  padding:0 18px;
  color:var(--muted);
  font-weight:800;
}
footer a{ color:var(--muted); text-decoration:none; }
footer a:hover{ color:var(--ink); }

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .thumbs{ grid-template-columns: repeat(3, 1fr); }
  .cta-col{ grid-template-columns:1fr; }
  .spec-row{ grid-template-columns: 1fr; }
}