/* ===========================================================
   AURATA | Cotillón — estilos
   Paleta oficial: crema #F5EDE3 · oliva dorado #8B821F · gris plata #C3C3C1
   Tipografía: Anton (titulares) · Inter (cuerpo)
   =========================================================== */

:root {
  --cream: #f5ede3;
  --cream-2: #efe5d8;
  --olive: #8b821f;
  --olive-dark: #726b18;
  --silver: #c3c3c1;
  --ink: #2b2a25;
  --muted: #6f6a5d;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(43, 42, 37, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.05;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-cream { background: var(--cream); color: var(--olive); }
.btn-cream:hover { background: var(--white); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 237, 227, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 130, 31, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; fill: var(--olive); flex: none; }
.brand-text { display: inline-grid; line-height: 1; }
.brand-name { color: var(--olive); font-size: 1.35rem; letter-spacing: 1px; }
/* COTILLÓN siempre al ancho EXACTO de AURATA (se estira con justify) */
.brand-sub {
  width: 0;
  min-width: 100%;
  text-align: justify;
  text-align-last: justify;
  color: var(--silver);
  font-size: 0.6rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.nav a:hover { color: var(--olive); }
.nav a.btn { color: var(--white); }
.nav a.btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--olive);
  transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(ellipse at 70% -10%, rgba(139,130,31,0.10), transparent 55%),
    var(--cream);
  padding: 80px 0 90px;
  text-align: center;
}
.hero-inner { max-width: 1140px; margin: 0 auto; }
.hero-mark { width: auto; height: 160px; margin: 0 auto 2px; display: block; }
.hero-eyebrow {
  color: var(--olive);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero-title { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--olive); }
.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  margin: 22px auto 32px;
  max-width: 600px;
}
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* ============ PILARES ============ */
.pilares { padding: 64px 0; background: var(--cream-2); }
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pilar { text-align: center; padding: 12px; }
.pilar-ico { color: var(--olive); font-size: 1.6rem; margin-bottom: 10px; }
.pilar h3 { color: var(--olive); font-size: 1.4rem; margin-bottom: 8px; }
.pilar p { color: var(--muted); }

/* ============ SECCIONES GENÉRICAS ============ */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.eyebrow {
  color: var(--olive);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); }
.section-desc { color: var(--muted); margin-top: 12px; }

/* ============ PRODUCTOS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;      /* todas las filas igual alto → cards exactamente parejas */
  align-items: stretch;
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;             /* llena la fila 1fr → todas las cards igual alto */
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,42,37,0.12); }
.product-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
/* Capa de imagen: la actualiza el JS al elegir variante; la franja de chips queda fija encima */
.media-stage {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-stage img { width: 100%; height: 100%; object-fit: cover; }
.ph-mark { color: rgba(139,130,31,0.28); font-size: 3rem; }

/* Franja de variantes SOBRE la imagen */
.media-chips {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 8px 10px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(139, 130, 31, 0.15);
}
.media-axis-pill {
  position: absolute;
  left: 8px; top: 8px; z-index: 2;
  background: rgba(43, 42, 37, 0.55);
  color: #fff; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 9px; border-radius: 20px;
  backdrop-filter: blur(2px);
}
/* con franja de chips, los puntitos de galería estorban → se ocultan */
.product-media.has-chips .gal-dots { display: none; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}
.price { color: var(--olive); font-weight: 700; }

/* ============ BUSCADOR DE PRODUCTOS ============ */
/* Buscador destacado */
.product-search-box {
  max-width: 620px;
  margin: -6px auto 42px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139,130,31,0.06), rgba(139,130,31,0.02));
  border: 1px solid rgba(139,130,31,0.18);
  border-radius: 20px;
  padding: 22px 22px 24px;
}
.product-search-label {
  color: var(--olive);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.product-search { position: relative; max-width: 520px; margin: 0 auto; }
.product-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 999px;
  border: 2px solid rgba(139, 130, 31, 0.35);
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(43, 42, 37, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-search input::placeholder { color: var(--muted); }
.product-search input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(139, 130, 31, 0.15);
}

/* Botón "Ver más productos" */
.more-wrap { text-align: center; margin-top: 36px; }
.btn-more { padding: 15px 40px; font-size: 1rem; }

/* Botón flotante: volver a la búsqueda */
.to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--olive); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(43, 42, 37, 0.25);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.to-top svg { fill: #fff; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--olive-dark); transform: translateY(-2px); }
.product-search .search-ico {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  fill: var(--olive);
  opacity: 0.75;
}

/* ============ TARJETA: tags / stock ============ */
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--olive);
  background: rgba(139, 130, 31, 0.10);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.product-card .product-foot { margin-top: auto; padding-top: 14px; align-items: flex-end; }
.price-stock { display: flex; flex-direction: column; gap: 2px; }
.stock { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.stock.out { color: #b23b3b; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 24px; }

/* ============ VARIANTES (ej. globos de números) ============ */
.variantes { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.variantes-label { font-weight: 600; margin-right: 2px; }
.var-chip { background: rgba(139, 130, 31, 0.12); color: var(--olive); font-weight: 700; border-radius: 6px; padding: 1px 8px; font-size: 0.78rem; }
.variantes.out { color: #b23b3b; font-style: italic; }

/* ============ SELECTOR DE VARIANTES (color / número) ============ */
.variant-selector { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.var-opt {
  min-width: 30px;
  border: 1.5px solid rgba(139, 130, 31, 0.35);
  background: var(--white);
  color: var(--olive);
  border-radius: 8px;
  padding: 4px 9px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.var-opt:hover:not(:disabled) { border-color: var(--olive); }
.var-opt.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.var-opt:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ============ DOBLE SELECTOR (matriz color × número) ============ */
.matrix-axis { margin-top: 8px; }
.axis-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 4px;
}
.matrix-axis .opts { display: flex; flex-wrap: wrap; gap: 5px; }
.btn-disabled { opacity: 0.45; pointer-events: none; }

/* ============ GALERÍA DE FOTOS EN LA CARD ============ */
.media-stage.gallery .gal-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease;
}
.media-stage.gallery .gal-img.on { opacity: 1; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255, 253, 249, 0.85); color: var(--olive);
  font-size: 1.1rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 42, 37, 0.18); opacity: 0; transition: opacity 0.2s ease;
}
.media-stage.gallery:hover .gal-nav { opacity: 1; }
.gal-prev { left: 8px; }
.gal-next { right: 8px; }
.gal-nav:hover { background: var(--olive); color: #fff; }
.gal-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.gal-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 253, 249, 0.6); transition: 0.2s; }
.gal-dot.on { background: var(--white); transform: scale(1.3); }

@media (max-width: 860px) {
  .media-stage.gallery .gal-nav { opacity: 1; }
}

/* ============ MAYORISTA ============ */
.mayorista {
  background:
    radial-gradient(ellipse at 20% 120%, rgba(255,253,249,0.12), transparent 50%),
    var(--olive);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.mayorista-inner { max-width: 620px; margin: 0 auto; }
.mayorista-mark { font-size: 2rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.mayorista h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.mayorista p { color: rgba(255,253,249,0.9); margin-bottom: 28px; font-size: 1.08rem; }

/* ============ RESEÑAS ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: var(--olive); letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { color: var(--ink); font-style: italic; margin-bottom: 16px; }
.review-author { color: var(--muted); font-weight: 600; font-size: 0.92rem; }

/* ============ INSTAGRAM ============ */
.insta { padding: 80px 0; text-align: center; background: var(--cream-2); }
.insta h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--ink); margin-bottom: 10px; }
.insta p { color: var(--muted); margin-bottom: 26px; }
.insta strong { color: var(--olive); }
.redes-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: var(--cream); padding: 60px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,237,227,0.14);
}
.footer-brand .brand-name { color: var(--cream); font-size: 1.6rem; display: block; }
.footer-brand .brand-sub { color: var(--silver); font-size: 0.62rem; }
.footer-claim { color: var(--silver); margin-top: 10px; font-style: italic; }
.footer-col h4 {
  color: var(--olive);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.footer-col a:hover { opacity: 1; color: #d8cf9a; }
.footer-bottom { padding-top: 22px; color: var(--silver); font-size: 0.8rem; text-align: center; }
.footer-visits { display: inline-block; margin-top: 4px; opacity: 0.45; font-size: 0.75rem; letter-spacing: 0.03em; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  z-index: 60;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid rgba(139,130,31,0.12);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(139,130,31,0.08); }
  .nav a.btn { text-align: center; margin-top: 12px; border-bottom: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .pilares-grid,
  .product-grid,
  .review-grid { grid-template-columns: 1fr; }
  .product-grid { grid-auto-rows: auto; }   /* 1 columna: alto natural por card */

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 60px 0; }
}

/* ============ CARRUSEL (hero) ============ */
.carousel { display: flex; align-items: center; gap: 8px; max-width: 1080px; margin: 4px auto 0; }
.car-viewport { overflow: hidden; flex: 1; }
.car-track { display: flex; transition: transform 0.5s ease; }
.car-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(280px, 36vw, 380px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
}
.car-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-slide__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,42,37,0.72) 0%, rgba(43,42,37,0.38) 48%, rgba(43,42,37,0.06) 100%);
}
.car-slide__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-align: left;
  padding: clamp(22px, 4.5vw, 48px);
  max-width: 70%;
}
.car-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.car-title { font-size: clamp(2rem, 5.5vw, 3.6rem); color: #fff; line-height: 1.02; }
.car-fecha { color: rgba(255, 255, 255, 0.92); font-weight: 700; margin-top: 8px; }
.car-bajada {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  max-width: 460px;
}
.car-arrow {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(139, 130, 31, 0.3);
  background: var(--white);
  color: var(--olive);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.car-arrow:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.car-dots { display: flex; gap: 9px; justify-content: center; margin: 18px 0 30px; min-height: 9px; }
.car-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--silver);
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}
.car-dot.active { background: var(--olive); transform: scale(1.3); }

/* ============ CARRITO EN EL MENÚ ============ */
.nav-cart {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
  cursor: default;
  line-height: 1.1;
}
.nav-cart .cart-top { display: inline-flex; align-items: center; gap: 6px; }
.nav-cart .cart-ico { width: 18px; height: 18px; fill: var(--muted); }
.nav-cart .soon {
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(195, 195, 193, 0.32);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
}

/* ============ NOSOTROS ============ */
.nosotros {
  padding: 84px 0;
  background: linear-gradient(180deg, #ece4d2 0%, #f3eadd 100%);
  border-top: 1px solid rgba(139, 130, 31, 0.14);
  border-bottom: 1px solid rgba(139, 130, 31, 0.14);
}
.nosotros-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nos-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.nos-ico { color: var(--olive); font-size: 1.6rem; margin-bottom: 10px; }
.nos-card h3 { color: var(--olive); font-size: 1.4rem; margin-bottom: 10px; }
.nos-card p { color: var(--muted); }

/* Intro de la página Nosotros */
.nos-hero {
  padding: 78px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 70% -10%, rgba(139,130,31,0.10), transparent 55%),
    var(--cream);
}
.nos-hero-inner { max-width: 760px; margin: 0 auto; }
.nos-hero .hero-mark { width: auto; height: 110px; margin: 0 auto 8px; display: block; }
.nos-title { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--olive); margin-top: 6px; }
.nos-lead { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin-top: 20px; }

@media (max-width: 860px) {
  .nosotros-grid { grid-template-columns: 1fr; }
  .car-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .car-slide__content { max-width: 100%; }
  .car-slide__scrim {
    background: linear-gradient(90deg, rgba(43,42,37,0.82) 0%, rgba(43,42,37,0.5) 60%, rgba(43,42,37,0.2) 100%);
  }
}

/* ===== Variables de estado (ok / sale) ===== */
:root {
  --ok: #3a8f4f;
  --sale: #b23b3b;
}

/* ===== Cards navegables (Opción A) ===== */
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-media > .ph-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.p-badge {
  position: absolute; top: 10px; z-index: 1;
  font-size: .68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .4px; color: #fff;
}
.p-badge.ship { left: 10px; background: var(--ok); }
.p-badge.out  { right: 10px; background: var(--muted); }
.card-link .product-body { padding: 16px; }
.card-link .product-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-link .product-foot {
  flex-direction: column; align-items: flex-start;
  gap: 3px; margin-top: auto; padding-top: 10px;
}
.price .desde { font-size: .72rem; color: var(--muted); font-weight: 400; }

/* ===== Carrito ===== */
.nav-cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: .97rem;
  position: relative; padding: 6px 4px;
}
.nav-cart-btn .cart-ico { width: 18px; height: 18px; fill: var(--olive); }
.cart-count {
  position: absolute; top: -2px; right: -10px;
  background: var(--sale); color: #fff;
  font-size: .62rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(43,42,37,.4);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 380px; max-width: 90vw; background: var(--cream);
  box-shadow: -12px 0 40px rgba(43,42,37,.18);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 61; display: flex; flex-direction: column;
}
.cart-drawer.show { transform: none; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(139,130,31,.15);
}
.cart-drawer-head h3 { font-size: 1.2rem; color: var(--ink); }
.cart-drawer-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece4d7; }
.cart-item img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--cream-2); flex: none; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: .88rem; font-weight: 600; }
.ci-price { color: var(--olive); font-weight: 700; font-size: .9rem; }
.ci-rm { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: .78rem; text-decoration: underline; align-self: flex-start; }
.cart-qty { display: inline-flex; align-items: center; border: 1.5px solid rgba(139,130,31,.3); border-radius: 999px; margin-top: 6px; }
.cart-qty button { background: none; border: none; width: 28px; height: 28px; cursor: pointer; color: var(--olive); font-size: 1rem; font-weight: 700; }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: .85rem; }
.cart-drawer-foot { padding: 18px 20px; border-top: 1px solid rgba(139,130,31,.15); background: var(--white); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.cart-subtotal .val { color: var(--olive); font-size: 1.2rem; }
.cart-foot-note { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.btn-block { width: 100%; display: block; text-align: center; }

/* ===== Ficha de producto ===== */
.page-detail { padding: 20px 0 60px; }
.pd-breadcrumb { font-size: .82rem; color: var(--muted); padding: 14px 0 20px; }
.pd-breadcrumb a:hover { color: var(--olive); }
.pd-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .pd-detail { grid-template-columns: 1fr; gap: 24px; } }
.pd-main {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cream), var(--cream-2));
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--cream-2); padding: 0;
}
.pd-thumb.on { border-color: var(--olive); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 2rem; color: var(--ink); margin-bottom: 10px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--olive); margin-bottom: 4px; }
.pd-tax { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.pd-field { margin-bottom: 18px; }
.pd-field label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-bottom: 8px;
}
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opt {
  border: 1.5px solid rgba(139,130,31,.35);
  background: var(--white); color: var(--olive);
  border-radius: 8px; padding: 7px 14px;
  font-weight: 700; font-size: .85rem; cursor: pointer;
}
.pd-opt.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.pd-stock { margin-bottom: 18px; font-size: .88rem; font-weight: 600; }
.pd-stock-ok { color: var(--ok); }
.pd-stock-out { color: var(--sale); }
.pd-buyrow { margin: 14px 0 12px; }
.pd-buyrow .btn, .pd-info > .btn { margin-bottom: 10px; }
.pd-avisar {
  background: rgba(178,59,59,.06);
  border: 1px solid rgba(178,59,59,.25);
  border-radius: 12px; padding: 16px; margin: 18px 0;
}
.pd-avisar > p { font-weight: 600; color: var(--sale); margin-bottom: 10px; }
.pd-avisar-form { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-avisar-form.show { display: flex; }
.pd-avisar-form input {
  flex: 1; min-width: 180px;
  padding: 11px 14px; border-radius: 999px;
  border: 1.5px solid rgba(139,130,31,.3);
  font-family: inherit; font-size: .92rem;
}
.pd-avisar-ok { color: var(--ok); font-weight: 600; margin-top: 8px; }
.pd-acc { border-top: 1px solid rgba(139,130,31,.15); margin-top: 8px; }
.pd-acc summary {
  cursor: pointer; padding: 16px 0; font-weight: 700;
  list-style: none; display: flex; justify-content: space-between;
}
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: "+"; color: var(--olive); font-weight: 700; }
.pd-acc[open] summary::after { content: "–"; }
.pd-acc-body { padding-bottom: 16px; color: var(--muted); font-size: .92rem; }

/* Chip de opción sin stock en ficha */
.pd-opt.out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.pd-opt.out:disabled { transform: none; }

/* ===== POPUP LEAD CAPTURE ===== */
.lead-overlay {
  position: fixed; inset: 0;
  background: rgba(43,42,37,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 80;
}
.lead-overlay.show { opacity: 1; pointer-events: auto; }
.lead-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.94);
  width: min(440px, 92vw);
  background: var(--cream); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43,42,37,.22);
  padding: 36px 28px 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 81;
}
.lead-popup.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.lead-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--muted); cursor: pointer; line-height: 1; padding: 4px;
}
.lead-badge {
  display: inline-block; background: var(--olive); color: #fff;
  font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 1px;
  padding: 5px 16px; border-radius: 999px; margin-bottom: 12px;
}
.lead-title { font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; line-height: 1.15; }
.lead-sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; line-height: 1.5; }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form input {
  padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid rgba(139,130,31,.3);
  font-family: inherit; font-size: .95rem;
  background: var(--white);
}
.lead-form input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(139,130,31,.12); }
.lead-code {
  font-family: "Anton", sans-serif; font-size: 2rem; color: var(--olive);
  letter-spacing: 3px;
  background: rgba(139,130,31,.08); border: 2px dashed rgba(139,130,31,.4);
  border-radius: 12px; padding: 12px 20px; text-align: center;
  margin: 10px 0 16px; user-select: all;
}

/* ============ TORTAS & TARTAS ============ */
.tortas-section { background: var(--white); }

.tortas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.torta-card {
  background: var(--white);
  border: 1.5px solid rgba(139,130,31,.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.torta-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.torta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(43,42,37,.12);
}

.torta-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.torta-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.torta-card:hover .torta-img-wrap img { transform: scale(1.04); }

.torta-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.torta-nombre {
  font-size: 1.3rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.torta-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.torta-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid rgba(139,130,31,.12);
  padding-top: 10px;
}
.torta-meta li { display: flex; flex-direction: column; gap: 1px; }
.torta-meta span {
  font-weight: 700;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}

.torta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(139,130,31,.12);
}

.torta-precio {
  font-family: "Anton", sans-serif;
  font-size: 1.35rem;
  color: var(--olive-dark);
  letter-spacing: .5px;
}

.tortas-aviso {
  text-align: center;
  margin-top: 36px;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .tortas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 540px) {
  .tortas-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Ficha de torta (encargo) */
.pd-encargo-nota {
  text-align: center;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.5;
}
