/* =========================================================
   Sanandresito · Tienda
   Paleta del logo: verde petróleo (#17423f / #0f3533) + verde menta (#2ee08a) + amarillo cálido de acento.
   Estructura de la maqueta original (home y ficha); estilo más limpio y profesional.
   ========================================================= */
:root {
  /* Marca */
  --teal-900: #0f3533;
  --teal: #17423f;
  --teal-700: #1f5a56;
  --mint: #22c77a;
  --mint-bright: #2ee08a;
  --mint-soft: #e8f8f0;
  /* Acción (verde con contraste AA sobre blanco) */
  --green: #0b8a52;
  --green-dark: #076b3f;
  --green-soft: #e8f8f0;
  /* Acento */
  --yellow: #ffc93c;
  --yellow-dark: #f2b100;
  --yellow-soft: #fff6d9;
  /* Compatibilidad: los antiguos "azul" pasan a la familia petróleo */
  --blue: var(--teal-700);
  --blue-dark: var(--teal-900);
  /* Neutros */
  --ink: #15211f;
  --muted: #64716d;
  --line: #e3e9e7;
  --soft: #f4f7f6;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 53, 51, .06), 0 1px 3px rgba(15, 53, 51, .05);
  --shadow: 0 10px 30px -12px rgba(15, 53, 51, .25);
  --font: "Plus Jakarta Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--green);
  --bs-link-color-rgb: 11, 138, 82;
  --bs-link-hover-color: var(--green-dark);
  --bs-link-hover-color-rgb: 7, 107, 63;
}
body { color: var(--ink); background: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .h4 { letter-spacing: -.015em; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.bg-light { background: var(--soft) !important; }

/* ---------- Textos y botones ---------- */
.text-green { color: var(--green) !important; }
.text-blue { color: var(--teal-700) !important; }
.btn { font-weight: 700; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; letter-spacing: -.005em; }
.btn-green {
  --bs-btn-color: #fff; --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark);
  --bs-btn-focus-shadow-rgb: 11, 138, 82;
  --bs-btn-disabled-bg: #9aa7a3; --bs-btn-disabled-border-color: #9aa7a3;
  box-shadow: 0 6px 16px -8px rgba(11, 138, 82, .7);
}
.btn-blue, .btn-teal {
  --bs-btn-color: #fff; --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal);
  --bs-btn-hover-color: var(--yellow); --bs-btn-hover-bg: var(--teal-900); --bs-btn-hover-border-color: var(--teal-900);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--teal-900);
}
.btn-yellow {
  --bs-btn-color: var(--teal-900); --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow);
  --bs-btn-hover-color: var(--teal-900); --bs-btn-hover-bg: var(--yellow-dark); --bs-btn-hover-border-color: var(--yellow-dark);
  --bs-btn-active-color: var(--teal-900); --bs-btn-active-bg: var(--yellow-dark);
  box-shadow: 0 8px 20px -10px rgba(242, 177, 0, .9);
}
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 1.4rem; color: var(--teal); border: 0; background: transparent; box-shadow: none; }
.btn-icon:hover, .btn-icon:focus-visible { background: var(--mint-soft); color: var(--teal-900); }

/* Títulos de sección: centrados, petróleo, con raya menta + amarillo */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-title { text-align: center; color: var(--teal-900); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); margin-bottom: 1.75rem; position: relative; padding-bottom: .85rem; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) 0 60%, var(--yellow) 60% 100%); }
.section-head .section-title { margin-bottom: .6rem; }
.section-sub { color: var(--muted); margin: 0; }
.lead-sm { font-size: 1.05rem; color: #3f4c49; line-height: 1.65; }

/* ---------- Marquesina ---------- */
.marquee { display: block; background: var(--mq-bg, #0f3533); color: var(--mq-fg, #fff); overflow: hidden; white-space: nowrap; font-size: .82rem; font-weight: 600; text-decoration: none; position: relative; z-index: 1031; letter-spacing: .01em; }
a.marquee:hover { color: var(--mq-fg, #fff); }
.marquee-track { display: inline-flex; animation: marquee var(--mq-duration, 30s) linear infinite; will-change: transform; }
.marquee-group { display: inline-flex; align-items: center; gap: 2.75rem; list-style: none; margin: 0; padding: .5rem 2.75rem .5rem 0; }
.marquee-group li { display: inline-flex; align-items: center; gap: .45rem; }
.marquee-group i { font-size: 1rem; color: var(--yellow); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; text-align: center; }
  .marquee-track { animation: none; display: block; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; padding: .5rem 1rem; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .6rem 0; border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px -14px rgba(15, 53, 51, .35) !important; }
.header-row { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; }
.brand { margin: 0; padding: 0; display: flex; align-items: center; }
.brand-logo { height: 50px; width: auto; }
.brand-text { font-weight: 800; color: var(--teal); font-size: 1.3rem; }
.nav-desktop { list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; gap: .15rem; }
.nav-desktop .nav-link { color: var(--teal-900); font-weight: 600; font-size: .96rem; padding: .55rem .95rem; border-radius: 999px; background: none; border: 0; transition: background .15s, color .15s; }
.nav-desktop .nav-link:hover, .nav-desktop .nav-link.active, .nav-desktop .nav-link.show { color: var(--teal-900); background: var(--mint-soft); }
.nav-desktop .dropdown-toggle::after { vertical-align: .15em; margin-left: .4em; }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-desktop + .header-actions { margin-left: .5rem; }
.btn-wa { padding: .55rem 1.1rem; border-radius: 999px; }
/* «Contáctanos» del encabezado: blanco con borde verde (el verde lleno queda para comprar) */
.btn-contact { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn-contact:hover, .btn-contact:focus-visible { background: var(--mint-soft); color: var(--green-dark); border-color: var(--green-dark); }
.btn-contact i { color: #25d366; }
/* Categoría como etiqueta sobre la foto principal (celular; en PC están las migas) */
/* Etiquetas sobre la foto principal: categoría (solo celular) y, a su derecha, el % de descuento; si no caben, el % baja */
.gallery-tags { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; pointer-events: none; }
.gallery-tags > * { pointer-events: auto; }
.gallery-off { flex: none; background: var(--yellow); color: var(--teal-900); font-weight: 800; font-size: .78rem; line-height: 1.2; padding: .4rem .65rem; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(15,53,51,.3); }
.cat-tag { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; background: rgba(255,255,255,.94); color: var(--teal-900); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .35rem .7rem; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 12px -4px rgba(15,53,51,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tag i { color: var(--green); font-size: .9rem; flex: none; }
.cat-tag:hover { background: #fff; color: var(--green); }
@media (max-width: 991.98px) {
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .brand-logo { height: 40px; }
  .header-row { position: relative; min-height: 46px; }
}

/* Mega menú: panel ancho centrado bajo el encabezado (no bajo el botón) → sin desborde ni scroll horizontal */
@media (min-width: 992px) {
  .site-header .navbar > .container { position: static; }
  .mega-dropdown { position: static; }
  .mega-menu, .mega-menu[data-bs-popper] {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); right: auto;
    width: min(1140px, calc(100vw - 2rem)); margin-top: 0 !important;
    padding: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 24px 40px -20px rgba(15, 53, 51, .35);
  }
  .mega-menu.show { display: block; }
}
.mega-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1.25rem 1.5rem; padding: 1.5rem 1.75rem 1.25rem; }
.mega-col { min-width: 0; }
.mega-parent { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--teal-900); text-decoration: none; margin-bottom: .5rem; }
.mega-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-size: 1.25rem; transition: background .15s, color .15s; }
.mega-parent:hover { color: var(--green); }
.mega-parent:hover .mega-ico { background: var(--green); color: #fff; }
.mega-child { display: block; color: #4d5a57; text-decoration: none; padding: .25rem 0 .25rem 3rem; font-size: .92rem; border-radius: 8px; }
.mega-child:hover { color: var(--green); }
.mega-more { display: inline-flex; align-items: center; gap: .25rem; margin: .3rem 0 0 3rem; font-size: .85rem; font-weight: 700; color: var(--green); text-decoration: none; }
.mega-more:hover { color: var(--green-dark); text-decoration: underline; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.75rem; background: var(--soft); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); font-size: .88rem; color: var(--muted); }
.mega-foot i.ph-fill { color: var(--yellow-dark); }
.mega-foot a { font-weight: 700; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.mega-foot a:hover { color: var(--green-dark); }

.search-bar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px -16px rgba(15, 53, 51, .4); }
.search-bar .form-control { border-radius: 999px 0 0 999px; padding-left: 1.1rem; border-color: var(--line); }
.search-bar .form-control:focus { border-color: var(--mint); box-shadow: 0 0 0 .2rem rgba(34, 199, 122, .2); }
.search-bar .btn { border-radius: 0 999px 999px 0; box-shadow: none; }

/* ---------- Menú móvil (offcanvas) ---------- */
.mobile-menu { --bs-offcanvas-width: min(86vw, 360px); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
.mobile-menu .offcanvas-body { padding: 1rem; }
.mm-search { display: flex; align-items: center; gap: .5rem; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; }
.mm-search i { color: var(--muted); font-size: 1.15rem; }
.mm-search input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 1rem; }
.mm-search:focus-within { border-color: var(--mint); background: #fff; }
.mm-link { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .75rem .75rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; background: none; border: 0; text-align: left; }
.mm-link > i:first-child { font-size: 1.25rem; color: var(--green); width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--mint-soft); display: grid; place-items: center; flex: none; }
.mm-link:hover, .mm-link.active { background: var(--soft); color: var(--teal-900); }
.mm-caret { margin-left: auto; font-size: 1rem !important; color: var(--muted) !important; transition: transform .2s; }
.mm-link[aria-expanded="true"] .mm-caret { transform: rotate(180deg); }
.mm-sub a { display: block; padding: .55rem .75rem .55rem 3.65rem; color: #4d5a57; text-decoration: none; border-radius: 10px; }
.mm-sub a:first-child { font-weight: 700; color: var(--green); }
.mm-sub a:hover { background: var(--soft); }
.mm-label { margin: 1.1rem .75rem .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mm-trust { list-style: none; padding: 1rem .75rem 0; margin: 1rem 0 0; border-top: 1px solid var(--line); color: #4d5a57; font-size: .92rem; }
.mm-trust li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; }
.mm-trust i { color: var(--yellow-dark); font-size: 1.2rem; }
.mm-footer { padding: 1rem; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero .carousel-item img { object-fit: cover; max-height: 700px; }
@media (max-width: 767.98px) { .hero .carousel-item img { max-height: 420px; } }
.hero-media { position: relative; }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(15, 53, 51, .7), rgba(15, 53, 51, 0) 65%); color: #fff; }
.hero-text { position: relative; overflow: hidden; color: #fff; padding: clamp(2.5rem, 6vw, 5.5rem) 0; min-height: clamp(260px, 32vw, 440px); display: flex; align-items: center; }
.hero-text::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero-verde { background: radial-gradient(700px 380px at 85% 30%, rgba(46, 224, 138, .35), transparent 60%), linear-gradient(120deg, var(--teal-900), var(--teal-700)); }
.hero-azul { background: radial-gradient(700px 380px at 85% 30%, rgba(255, 201, 60, .35), transparent 60%), linear-gradient(120deg, var(--green-dark), var(--mint)); }
.hero-oscuro { background: radial-gradient(700px 380px at 85% 30%, rgba(255, 201, 60, .22), transparent 60%), linear-gradient(120deg, #0b2422, var(--teal-900)); }
.hero-title { font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem); font-weight: 800; line-height: 1.08; margin: 0 0 .85rem; max-width: 640px; letter-spacing: -.025em; }
.hero-sub { font-size: clamp(1rem, .95rem + .4vw, 1.22rem); max-width: 560px; opacity: .92; margin-bottom: 1.6rem; line-height: 1.55; }
.hero-btn { --bs-btn-color: var(--teal-900); --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow); --bs-btn-hover-color: var(--teal-900); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; border-radius: 999px; padding-inline: 1.5rem; }
.hero-azul .hero-btn { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--yellow); --bs-btn-hover-border-color: var(--yellow); }
.hero-deco { position: absolute; right: 6%; bottom: -1.5rem; font-size: clamp(8rem, 20vw, 16rem); color: var(--mint-bright); opacity: .18; pointer-events: none; }
.hero-azul .hero-deco { color: #fff; }
.hero .carousel-indicators { margin-bottom: 1.1rem; }
.hero .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 999px; border: 0; transition: width .25s, background-color .25s; }
.hero .carousel-indicators .active { width: 26px; background-color: var(--yellow); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; } /* angostas: no tapan el texto */
@media (max-width: 767.98px) { .hero .carousel-control-prev, .hero .carousel-control-next { display: none; } }

/* ---------- Categorías del inicio ---------- */
.home-cats { background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.25rem .75rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(34, 199, 122, .55); box-shadow: var(--shadow); color: var(--ink); }
.cat-media { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--mint-soft), #d6f3e5); color: var(--green); font-size: 2.1rem; margin-bottom: .45rem; transition: background .2s, color .2s; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:nth-child(3n+2) .cat-media { background: linear-gradient(140deg, var(--yellow-soft), #ffecb0); color: #b07d00; }
.cat-card:nth-child(3n+3) .cat-media { background: linear-gradient(140deg, #e6efee, #d3e3e1); color: var(--teal-700); }
.cat-card:hover .cat-media { background: var(--teal); color: var(--mint-bright); }
.cat-name { font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--teal-900); }
.cat-count { font-size: .8rem; color: var(--muted); }
@media (max-width: 575.98px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .cat-card { padding: .9rem .4rem .8rem; border-radius: 14px; }
  .cat-media { width: 56px; height: 56px; font-size: 1.6rem; margin-bottom: .25rem; }
  .cat-name { font-size: .82rem; }
  .cat-count { font-size: .72rem; }
}

/* ---------- Bloque imagen + texto ---------- */
.home-block { background: #fff; }
.home-block img { box-shadow: var(--shadow); }
.block-title { color: var(--teal-900); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.12; margin-bottom: 1rem; }

/* ---------- Tarjeta de producto ---------- */
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(34, 199, 122, .5); color: var(--ink); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-badge { position: absolute; top: .65rem; left: .65rem; z-index: 2; background: var(--yellow); color: var(--teal-900); font-weight: 800; font-size: .78rem; padding: .22rem .6rem; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.25); }
.pc-badge-out { left: auto; right: .65rem; background: var(--teal-900); color: #fff; }
.product-card .card-body { text-align: center; display: flex; flex-direction: column; align-items: stretch; padding: .9rem .9rem 1rem; }
.pc-title { font-size: .95rem; font-weight: 600; line-height: 1.32; margin: 0 0 .45rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em; }
.pc-price { margin: 0 0 .8rem; display: flex; gap: .45rem; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.pc-price del { color: var(--muted); font-size: .84rem; }
.price { font-weight: 800; color: var(--teal-900); font-size: 1.15rem; letter-spacing: -.01em; }
.pc-btn { margin-top: auto; border-radius: 999px; box-shadow: none; --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); }
.product-card:hover .pc-btn { background: var(--green); border-color: var(--green); color: #fff; }
.pc-note { display: block; color: var(--muted); margin-top: .35rem; font-size: .78rem; }
@media (max-width: 575.98px) {
  .product-card .card-body { padding: .75rem .6rem .85rem; }
  .pc-title { font-size: .88rem; }
  .price { font-size: 1.05rem; }
  .pc-btn { font-size: .8rem; padding: .4rem .6rem; }
}

/* ---------- Carruseles ---------- */
.carousel-wrap { position: relative; }
.product-swiper { padding: .5rem .25rem 1.5rem; }
.product-swiper .swiper-slide, .review-swiper .swiper-slide { height: auto; }
.sw-nav { position: absolute; top: 40%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal); box-shadow: 0 8px 20px -8px rgba(15, 53, 51, .35); display: none; align-items: center; justify-content: center; font-size: 1.25rem; transition: background .15s, color .15s; }
.sw-prev { left: -16px; } .sw-next { right: -16px; }
.sw-nav:hover { background: var(--teal); color: var(--yellow); border-color: var(--teal); }
.sw-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
.sw-nav.swiper-button-lock { display: none !important; }
@media (min-width: 992px) { .sw-nav { display: flex; } }

/* ---------- Confianza ---------- */
.trust-section { background: linear-gradient(180deg, #fff, var(--soft)); }
.feature-box { padding: 1.75rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon { font-size: 30px; line-height: 1; width: 64px; height: 64px; border-radius: 18px; display: inline-grid !important; place-items: center; background: var(--mint-soft); color: var(--green) !important; }
.feature-icon.text-blue { background: var(--yellow-soft); color: #b07d00 !important; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin: 1.1rem 0 .5rem; color: var(--teal-900); }

/* ---------- Migas ---------- */
.crumbs .breadcrumb { font-size: .84rem; --bs-breadcrumb-divider-color: #a9b5b1; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs .active { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ficha de producto ---------- */
.product-page { background: var(--soft); }
@media (min-width: 768px) { .sticky-gallery { position: sticky; top: 100px; } }
.gallery { display: grid; gap: .75rem; }
.gallery-main { position: relative; background: #fff; border-radius: var(--radius); padding: 10px; border: 1px solid var(--line); }
.main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumb { flex: 0 0 72px; aspect-ratio: 1 / 1; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: scale(1.04); }
.thumb.active, .thumb:hover { border-color: var(--mint); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 80px 1fr; }
  .gallery-main { order: 2; }
  .gallery-thumbs { order: 1; flex-direction: column; overflow: visible; }
  .thumb { flex: 0 0 auto; width: 80px; }
  .gallery:not(:has(.gallery-thumbs)) { grid-template-columns: 1fr; } /* una sola foto o ninguna */
}
.product-brand { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; text-decoration: none; margin-bottom: .6rem; }
.product-brand:hover { border-color: var(--mint); color: var(--green); }
.product-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); font-weight: 800; line-height: 1.14; margin-bottom: .55rem; color: var(--teal-900); letter-spacing: -.02em; }
.rating-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: .75rem; }
.rating-link:hover { color: var(--teal); }
.stars { color: var(--yellow-dark); display: inline-flex; gap: 1px; }
.product-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.product-price .price { font-size: 2rem; }
.product-price del { color: var(--muted); font-size: 1.1rem; }
.save-tag { background: var(--yellow); color: var(--teal-900); font-weight: 800; font-size: .78rem; border-radius: 999px; padding: .22rem .65rem; }
.product-lead { color: #3f4c49; font-size: 1.02rem; line-height: 1.6; }
.packs { margin: 1.25rem 0; }
.packs-title { font-weight: 800; margin-bottom: .7rem; color: var(--teal-900); font-size: .95rem; }
.price-box { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .85rem 1rem; margin-bottom: .7rem; font-size: 1.02rem; }
.price-box.is-featured { border-color: var(--mint); background: linear-gradient(90deg, #f1fbf6, #fff); box-shadow: 0 8px 20px -14px rgba(11, 138, 82, .6); }
.pb-tag { position: absolute; top: -.72rem; right: .9rem; background: var(--yellow); color: var(--teal-900); font-size: .68rem; font-weight: 800; padding: .16rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pb-save { background: var(--mint-soft); color: var(--green-dark); font-weight: 800; font-size: .72rem; border-radius: 999px; padding: .1rem .45rem; margin-left: .3rem; }
.pb-price { text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.pb-price del { color: var(--muted); font-size: .84rem; }
.pb-price strong { color: var(--teal-900); font-size: 1.15rem; font-weight: 800; }
.btn-buy { font-size: 1.18rem; padding: 1rem 1rem; border-radius: 14px; font-weight: 800; background-image: linear-gradient(100deg, var(--green), #10a862); border: 0; }
.btn-buy:hover { background-image: linear-gradient(100deg, var(--green-dark), var(--green)); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: rgba(255,255,255,.35); transform: skewX(-25deg); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 120%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .btn-shine::before { animation: none; display: none; } }
.small-note { font-size: 13px; color: var(--muted); text-align: center; margin: .55rem 0 1rem; }
.mini-trust { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mini-trust li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .4rem; text-align: center; font-size: .76rem; font-weight: 700; color: var(--teal-900); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.mini-trust i { color: var(--green); font-size: 1.45rem; }
.mini-trust li:nth-child(2) i { color: var(--yellow-dark); }
.desc-section { background: #fff; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius); margin-top: 2rem; border: 1px solid var(--line); }
.rich-text { line-height: 1.7; }
.rich-text img { display: block; margin: 0 auto; border-radius: 10px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3 { color: var(--teal-900); }
.rich-text h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.2rem; }
.info-accordion .accordion-item { border-radius: 14px !important; overflow: hidden; margin-bottom: .55rem; border: 1px solid var(--line); }
.info-accordion .accordion-button { font-weight: 700; color: var(--teal-900); }
.info-accordion .accordion-button:not(.collapsed) { background: var(--mint-soft); color: var(--teal-900); box-shadow: none; }
.info-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(34, 199, 122, .25); }
.info-accordion .accordion-body h3 { font-size: 1rem; }

/* Reseñas: resumen arriba + una sola fila deslizable */
.reviews .h4 { color: var(--teal-900); }
.rv-score strong { display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--teal-900); }
@media (min-width: 768px) { .rv-score { border-right: 1px solid var(--line); } }
.rv-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.rv-bar small:first-child { width: 2.4rem; white-space: nowrap; color: var(--muted); }
.rv-bar small:first-child i { color: var(--yellow-dark); }
.rv-bar .progress { flex: 1; height: 8px; background: #edf1ef; }
.rv-bar .progress-bar { background: var(--yellow); }
.rv-bar small:last-child { width: 1.5rem; text-align: right; }
.review-swiper { padding: .25rem .1rem 1rem; }
.rv-item { height: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.15rem; background: #fff; box-shadow: var(--shadow-sm); }
.rv-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .6rem; flex-wrap: wrap; }
.rv-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--teal), var(--teal-700)); color: var(--mint-bright); font-weight: 800; display: grid; place-items: center; flex: none; }
.rv-verified { width: 100%; font-size: .74rem; color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.rv-title { font-weight: 700; margin-bottom: .25rem; color: var(--teal-900); }
.rv-item p { font-size: .94rem; color: #3f4c49; }
.rv-photo { margin-top: .75rem; border-radius: 10px; width: 96px; height: 96px; object-fit: cover; }
.reviews .sw-nav { top: auto; bottom: 45%; }

/* Barra de compra fija en móvil */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -12px rgba(15, 53, 51, .3); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); animation: bbUp .25s ease; }
.buy-bar[hidden] { display: none !important; }
@keyframes bbUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .buy-bar { animation: none; } }
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bb-info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.bb-info .min-w-0 { min-width: 0; }
.bb-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.bb-name { font-weight: 700; color: var(--teal-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; line-height: 1.25; }
.bb-label { display: block; color: #6b7a77; font-size: .75rem; line-height: 1; }
.buy-bar .price { font-size: 1.2rem; }
.bb-old { color: #8a9693; font-size: .9rem; margin-left: .35rem; }
.bb-cta { display: flex; flex-direction: column; align-items: center; gap: .2rem; flex: 1; max-width: 240px; }
.bb-cta .btn { width: 100%; padding: .78rem; }
.bb-note { font-size: .72rem; color: var(--green-dark); font-weight: 600; white-space: nowrap; }
.bb-note i { color: var(--yellow-dark); }
@media (min-width: 768px) {
  .buy-bar { padding-top: .75rem; padding-bottom: .75rem; }
  .bb-name + .bb-label { display: inline; margin-right: .35rem; }
  .buy-bar .price { font-size: 1.35rem; }
  .bb-cta { flex-direction: row-reverse; gap: 1rem; max-width: none; flex: none; }
  .bb-cta .btn { width: auto; min-width: 230px; padding: .8rem 1.6rem; font-size: 1.05rem; }
  .bb-note { font-size: .9rem; }
}

/* ---------- Listados ---------- */
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.listing-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; color: var(--teal-900); margin-bottom: .25rem; letter-spacing: -.02em; }
.listing-sort { display: flex; align-items: center; gap: .5rem; }
.listing-sort .form-select { min-width: 170px; border-radius: 999px; border-color: var(--line); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--teal-900); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .15s; }
.chip i { color: var(--green); }
.chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip:hover i { color: var(--mint-bright); }
.search-inline { max-width: 640px; margin-bottom: 1.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; max-width: 520px; margin: 0 auto; }
.empty-state > i { font-size: 3.5rem; color: var(--green); }
.pagination { --bs-pagination-active-bg: var(--teal); --bs-pagination-active-border-color: var(--teal); --bs-pagination-color: var(--teal); --bs-pagination-hover-color: var(--green); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(34, 199, 122, .25); }

/* ---------- Footer ---------- */
.footer-green { background: var(--teal-900); position: relative; }
.footer-green::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--mint) 0 70%, var(--yellow) 70% 100%); }
.footer-brand { font-weight: 800; font-size: 1.3rem; margin-bottom: .5rem; }
.footer-text { color: rgba(255,255,255,.75); font-size: .93rem; max-width: 360px; line-height: 1.6; }
.footer-title { font-weight: 800; text-transform: uppercase; font-size: .76rem; letter-spacing: .1em; color: var(--mint-bright); margin-bottom: .85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .footer-links span { color: rgba(255,255,255,.88); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; font-size: .93rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 1.25rem; text-decoration: none; }
.footer-social a:hover { background: var(--yellow); color: var(--teal-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .84rem; color: rgba(255,255,255,.6); text-align: center; }
body:has(.buy-bar:not([hidden])) .footer-bottom { padding-bottom: 5.5rem; }

/* =========================================================
   Checkout contraentrega (referencia Releasit)
   ========================================================= */
a.price-box { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s, transform .15s; }
a.price-box:hover { border-color: var(--mint); transform: translateY(-1px); }
.co-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
@media (max-width: 575.98px) { .co-modal .modal-content { border-radius: 0; } }
.co-modal .modal-body { padding: 1rem 1rem 0; background: #fff; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; background: #fff; border-bottom: 1px solid var(--line); padding: .9rem 1rem; }
.co-title { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--teal-900); }
.co-sub { margin: .1rem 0 0; font-size: .85rem; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.co-form { --co-radius: 14px; }
.co-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-sec { margin-bottom: 1.1rem; }
.co-h { font-size: .95rem; font-weight: 800; margin: 0 0 .6rem; color: var(--teal-900); }

/* Tarjetas de oferta */
.co-offers { display: grid; gap: .7rem; }
.co-offer { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .7rem; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: var(--co-radius); cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.co-offer.is-featured { margin-top: .55rem; }
.co-offer input, .co-ship input, .co-upsell input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b6c3bf; display: inline-block; position: relative; flex: none; }
.co-offer:has(input:checked), .co-ship:has(input:checked) { border-color: var(--green); background: #f1fbf6; box-shadow: 0 0 0 3px rgba(34, 199, 122, .15); }
.co-offer:has(input:checked) .co-radio, .co-ship:has(input:checked) .co-radio { border-color: var(--green); }
.co-offer:has(input:checked) .co-radio::after, .co-ship:has(input:checked) .co-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.co-offer:has(input:focus-visible), .co-ship:has(input:focus-visible), .co-upsell:has(input:focus-visible) { outline: 2px solid var(--teal-700); outline-offset: 2px; }
.co-offer-img { position: relative; }
.co-offer-img img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; background: var(--soft); }
.co-offer-img em { position: absolute; right: -6px; bottom: -6px; background: var(--teal-900); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .05rem .4rem; }
.co-offer-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.co-offer-main strong { font-size: 1rem; }
.co-offer-main small { color: var(--muted); font-size: .8rem; }
.co-save { align-self: flex-start; margin-top: .25rem; background: var(--mint-soft); color: var(--green-dark); font-weight: 800; font-size: .72rem; border-radius: 999px; padding: .1rem .5rem; }
.co-offer-price { text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.co-offer-price strong { font-size: 1.08rem; color: var(--teal-900); font-weight: 800; }
.co-offer-price del { color: var(--muted); font-size: .8rem; }
.co-badge { position: absolute; top: -.72rem; right: .8rem; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px; }
.co-offer.is-featured .co-badge { background: var(--yellow); color: var(--teal-900); box-shadow: 0 4px 10px -4px rgba(242, 177, 0, .8); }

/* Upsells */
.co-upsell { position: relative; display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 2px dashed #f2c84b; background: var(--yellow-soft); border-radius: var(--co-radius); cursor: pointer; margin-bottom: .55rem; transition: all .15s; }
.co-upsell img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.co-upsell-main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.co-upsell-main small { color: #8a6100; font-weight: 800; font-size: .76rem; }
.co-upsell-main strong { font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-upsell-price b { color: var(--teal-900); }
.co-upsell-price del { color: var(--muted); font-size: .8rem; }
.co-add { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #f2c84b; color: #8a6100; flex: none; }
.co-add .ph-check { display: none; }
.co-upsell:has(input:checked) { border-style: solid; border-color: var(--green); background: #f1fbf6; }
.co-upsell:has(input:checked) .co-add { background: var(--green); border-color: var(--green); color: #fff; }
.co-upsell:has(input:checked) .co-add .ph-plus { display: none; }
.co-upsell:has(input:checked) .co-add .ph-check { display: inline; }

/* Campos con icono */
.co-field { display: flex; align-items: center; gap: .55rem; border: 1.5px solid #d3ddda; border-radius: 12px; padding: 0 .8rem; background: #fff; margin-bottom: .55rem; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.co-field > i { font-size: 1.2rem; color: var(--green); flex: none; }
.co-field input, .co-field select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 16px; padding: .7rem 0; color: var(--ink); font-family: inherit; }
.co-field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364716d' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; padding-right: 1.2rem; }
.co-field select:disabled { color: #9aa5a2; }
.co-field:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(34, 199, 122, .18); }
.co-field.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,.12); }
.co-field.is-invalid + .invalid-feedback { display: block; margin: -.3rem 0 .55rem .2rem; }
.co-prefix { font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); padding-right: .55rem; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .55rem; }
/* Departamento y ciudad siempre en la misma fila; en pantallas angostas se quita el ícono para dar espacio al texto */
@media (max-width: 420px) { .co-row .co-field { padding: 0 .6rem; } .co-row .co-field > i { display: none; } }

/* Envío y servicios */
.co-ship { position: relative; display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: var(--co-radius); cursor: pointer; margin-bottom: .5rem; }
.co-ship-main { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.co-ship-main small { color: var(--muted); font-size: .8rem; }
.co-ship-price { font-weight: 800; }
.co-ship-price.is-free { color: var(--green); }
.co-svc { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; cursor: pointer; }
.co-svc span { flex: 1; } .co-svc small { color: var(--muted); }
.co-svc .form-check-input { margin: 0; width: 1.2em; height: 1.2em; }
.co-svc .form-check-input:checked { background-color: var(--green); border-color: var(--green); }

/* Resumen y botón */
.co-summary { background: var(--soft); border-radius: var(--co-radius); padding: .85rem 1rem; margin: 1rem 0; border: 1px solid var(--line); }
.co-summary > div { display: flex; justify-content: space-between; padding: .2rem 0; font-size: .95rem; }
.co-summary .is-discount { color: var(--green); font-weight: 700; }
.co-summary .co-total { border-top: 1px dashed #c3cfcb; margin-top: .4rem; padding-top: .6rem; font-weight: 800; font-size: 1.1rem; }
.co-summary .co-total span:last-child { color: var(--teal-900); font-size: 1.3rem; }
.co-actions { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); padding: .75rem 0 calc(.6rem + env(safe-area-inset-bottom)); z-index: 3; }
.co-submit { width: 100%; font-size: 1.12rem; padding: .95rem; border-radius: 14px; font-weight: 800; background-image: linear-gradient(100deg, var(--green), #10a862); border: 0; }
.co-submit[disabled] { opacity: .85; }
.co-trust { text-align: center; color: var(--muted); font-size: .8rem; margin: .45rem 0 0; display: flex; justify-content: center; align-items: center; gap: .3rem; }
.co-trust i { color: var(--green); }
.co-legal { text-align: center; color: #97a39f; font-size: .74rem; margin: 0 0 1rem; }
.co-captcha { display: flex; justify-content: center; margin: .5rem 0; }

/* Página /checkout/{slug} */
.checkout-body { background: var(--soft); }
.co-page { max-width: 560px; margin: 0 auto; padding: 1rem .75rem 2rem; }
.co-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.co-card .co-form { padding: 0 1rem; }
.co-product { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem 0; margin-bottom: 1rem; }
.co-product img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.co-product h1 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--teal-900); }

/* Confirmación */
.thanks-card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
/* Check animado de la confirmación */
.thanks-icon { position: relative; width: 84px; height: 84px; margin: .25rem auto 1rem; }
.ti-check { position: relative; z-index: 2; display: block; border-radius: 50%; box-shadow: 0 10px 28px -8px rgba(11,138,82,.55); animation: ti-pop .6s cubic-bezier(.34,1.56,.64,1) both; }
.ti-circle { fill: var(--green); }
.ti-tick { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ti-draw .45s .45s cubic-bezier(.65,0,.45,1) forwards; }
.ti-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--mint); opacity: 0; animation: ti-ring 1s .5s ease-out forwards; }
.ti-burst { position: absolute; inset: 0; z-index: 1; }
.ti-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--mint); opacity: 0;
  transform: rotate(var(--a)) translateY(0) scale(.3); animation: ti-spark .75s .55s cubic-bezier(.2,.7,.3,1) forwards; }
.ti-burst i:nth-child(even) { background: var(--yellow); width: 6px; height: 6px; margin: -3px; animation-delay: .62s; }
.ti-burst i:nth-child(3n) { border-radius: 2px; }
.thanks-icon + h1 { animation: ti-up .5s .7s ease-out both; }
@keyframes ti-pop { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ti-draw { to { stroke-dashoffset: 0; } }
@keyframes ti-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ti-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.3); } 60% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(1); } }
@keyframes ti-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ti-check, .thanks-icon + h1 { animation: none; }
  .ti-tick { animation: none; stroke-dashoffset: 0; }
  .ti-ring, .ti-burst { display: none; }
}
.thanks-card h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; color: var(--teal-900); }
.thanks-num { font-size: 1.1rem; }
.thanks-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.thanks-steps li { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.thanks-steps i { font-size: 1.6rem; color: #b6c3bf; }
.thanks-steps .done i, .thanks-steps .done { color: var(--green); font-weight: 700; }
@media (max-width: 575.98px) { .thanks-steps { grid-template-columns: 1fr 1fr; } }
.thanks-summary { text-align: left; background: var(--soft); border-radius: 14px; padding: 1rem; }
.ts-item { display: flex; align-items: center; gap: .75rem; padding-bottom: .6rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.ts-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ts-item div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ts-item small { color: var(--muted); }
.ts-row { display: flex; justify-content: space-between; padding: .15rem 0; }
.ts-total { font-weight: 800; font-size: 1.1rem; border-top: 1px dashed #c3cfcb; margin-top: .4rem; padding-top: .5rem; }
.thanks-ship { display: flex; gap: .6rem; text-align: left; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; }
.thanks-ship i { color: var(--green); font-size: 1.4rem; }

/* [hidden] debe ganarle a .d-flex de Bootstrap */
.co-form [hidden], .co-summary [hidden] { display: none !important; }

/* ---------- Variantes (ficha y checkout) ---------- */
.vp { display: grid; gap: .9rem; margin: 0 0 1rem; }
.vp-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.vp-legend { float: none; font-size: .92rem; font-weight: 600; color: var(--teal-900); margin-bottom: .45rem; }
.vp-legend strong { font-weight: 700; color: var(--green); }
.vp-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.vp-swatch { width: 40px; height: 40px; border-radius: 50%; padding: 3px; border: 2px solid #d6dedd; cursor: pointer; transition: border-color .15s, transform .15s; }
.vp-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.vp-swatch:hover { transform: scale(1.06); }
.btn-check:checked + .vp-swatch { border-color: var(--teal-900); box-shadow: 0 0 0 2px var(--yellow); }
.vp-btn { min-width: 48px; padding: .5rem .85rem; border: 1.5px solid #d6dedd; border-radius: 10px; background: #fff; font-weight: 600; font-size: .92rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.vp-btn:hover { border-color: var(--teal-700); }
.btn-check:checked + .vp-btn { border-color: var(--teal-900); background: var(--teal-900); color: #fff; }
.btn-check:focus-visible + .vp-swatch, .btn-check:focus-visible + .vp-btn { outline: 2px solid var(--mint); outline-offset: 2px; }
.vp-error { display: none; color: #c62828; font-size: .85rem; margin-top: .35rem; }
.vp-group.is-invalid .vp-error { display: block; }
.vp-group.is-invalid .vp-btn, .vp-group.is-invalid .vp-swatch { border-color: #e57373; }
.vp-note { font-size: .8rem; color: #5b6b69; margin: .5rem 0 0; }
.vp-group.co-field { display: block; border: 0; padding: 0; background: none; min-height: 0; margin: 0; box-shadow: none; }

/* ---------- Aviso de cookies ---------- */
.cc-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1090; max-width: 720px; margin: 0 auto; background: var(--teal-900); color: #eaf5f1; border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.28); padding: 1rem 1.15rem; display: flex; gap: 1rem; align-items: center; border-top: 3px solid var(--yellow); animation: ccUp .3s ease; }
.cc-banner[hidden] { display: none; }
@keyframes ccUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-title { font-weight: 700; margin: 0 0 .2rem; color: #fff; }
.cc-title i { color: var(--yellow); }
.cc-text { font-size: .86rem; line-height: 1.45; margin: 0; color: #cfe3dd; }
.cc-text a { color: var(--mint-bright); }
.cc-actions { display: flex; gap: .5rem; flex: none; }
.cc-btn { min-width: 110px; font-weight: 700; border-radius: 10px; padding: .55rem 1rem; }
.cc-accept { background: var(--yellow); color: var(--teal-900); border: 0; }
.cc-accept:hover { background: var(--yellow-dark); color: var(--teal-900); }
.cc-reject { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.cc-reject:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 640px) { .cc-banner { flex-direction: column; align-items: stretch; } .cc-actions .cc-btn { flex: 1; } }
.footer-legal a { color: inherit; opacity: .85; }
.footer-legal a:hover { opacity: 1; }
.legal-page { max-width: 860px; }
.legal-page h2 { color: var(--teal-900); }

.cat-card[hidden] { display: none !important; }
