:root {
  --charcoal: #2b2420;   /* franja superior de la paleta */
  --terracotta: #a8613c; /* franja 2 */
  --brown: #7a4419;      /* franja 3 */
  --tan: #ad8360;        /* franja 4 */
  --sand: #c3b09c;       /* franja 5 */

  --bg: #f5efe3;
  --bg-card: #fffaf1;
  --texto: var(--charcoal);
  --texto-suave: #6b6258;
  --borde: #e2d6c3;

  --fuente-display: "Fraunces", serif;
  --fuente-cuerpo: "Jost", sans-serif;

  --radio: 4px;
  --sombra: 0 10px 30px -12px rgba(43, 36, 32, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente-cuerpo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================
   Cinta de firma: las 5 franjas de la paleta
   ============================================ */
.cinta {
  display: flex;
  width: 100%;
  height: 8px;
}
.cinta span { flex: 1; }
.cinta span:nth-child(1) { background: var(--charcoal); }
.cinta span:nth-child(2) { background: var(--terracotta); }
.cinta span:nth-child(3) { background: var(--brown); }
.cinta span:nth-child(4) { background: var(--tan); }
.cinta span:nth-child(5) { background: var(--sand); }

.divisor {
  display: flex;
  max-width: 220px;
  margin: 0 auto;
  gap: 6px;
  padding: 3rem 0;
}
.divisor span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
}
.divisor span:nth-child(1) { background: var(--charcoal); }
.divisor span:nth-child(2) { background: var(--terracotta); }
.divisor span:nth-child(3) { background: var(--brown); }
.divisor span:nth-child(4) { background: var(--tan); }
.divisor span:nth-child(5) { background: var(--sand); }

/* ============================================
   Encabezado
   ============================================ */
.header {
  background: var(--charcoal);
  color: #f5efe3;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.marca-icono {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
}

.marca-nombre {
  font-family: var(--fuente-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}
.marca-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: #d8cbb8;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}
.nav a {
  text-decoration: none;
  color: #ece3d3;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--tan); }

.btn-carrito-nav {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radio);
  font-family: var(--fuente-cuerpo);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-carrito-nav:hover { background: #93532f; }
#contador-nav, #contador-flotante {
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0 4px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.5rem;
}
.hero-texto { max-width: 620px; }
.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-family: var(--fuente-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  font-weight: 600;
}
.hero-desc {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin: 0 0 1.8rem;
  max-width: 480px;
}
.hero-cta {
  display: inline-block;
  background: var(--charcoal);
  color: #f5efe3;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radio);
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.hero-cta:hover { background: var(--brown); }

/* ============================================
   Secciones y grid de productos
   ============================================ */
.seccion {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.seccion-titulo { margin-bottom: 2rem; }
.seccion-titulo h2 {
  font-family: var(--fuente-display);
  font-size: 1.8rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.seccion-titulo p {
  color: var(--texto-suave);
  margin: 0;
  font-size: 0.95rem;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tarjeta {
  background: var(--bg-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tarjeta:hover {
  box-shadow: var(--sombra);
  transform: translateY(-2px);
}

.tarjeta-visual {
  height: 150px;
  overflow: hidden;
}
.tarjeta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarjeta-cuerpo {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.tarjeta-cuerpo h3 {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}
.tarjeta-cuerpo p.desc {
  color: var(--texto-suave);
  font-size: 0.87rem;
  margin: 0;
  flex: 1;
}
.tarjeta-precio {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  margin-top: 0.3rem;
}

.tarjeta-acciones {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.selector-cantidad {
  display: flex;
  align-items: center;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
}
.selector-cantidad button {
  width: 30px;
  height: 32px;
  border: none;
  background: var(--bg);
  color: var(--charcoal);
  font-size: 1rem;
  cursor: pointer;
}
.selector-cantidad button:hover { background: var(--borde); }
.selector-cantidad span {
  width: 28px;
  text-align: center;
  font-size: 0.9rem;
}

.tarjeta-acciones .selector-cantidad--tarjeta {
  flex: 1;
  justify-content: space-between;
}
.tarjeta-acciones .selector-cantidad--tarjeta button {
  width: 34px;
  background: var(--terracotta);
  color: #fff;
}
.tarjeta-acciones .selector-cantidad--tarjeta button:hover { background: #93532f; }
.tarjeta-acciones .selector-cantidad--tarjeta span {
  flex: 1;
  width: auto;
  font-weight: 600;
}

.btn-agregar {
  flex: 1;
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radio);
  font-family: var(--fuente-cuerpo);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-agregar:hover { background: #93532f; }
.btn-agregar.agregado { background: var(--brown); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--charcoal);
  color: #d8cbb8;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}
.footer .marca-nombre { color: #f5efe3; }
.footer-inner p:last-child { font-size: 0.88rem; margin-top: 0.3rem; }

/* ============================================
   Botón flotante del carrito
   ============================================ */
.boton-flotante {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.15rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 40;
  transition: transform 0.15s ease;
}
.boton-flotante:hover { transform: scale(1.05); }

/* ============================================
   Panel de carrito
   ============================================ */
.fondo-carrito {
  position: fixed;
  inset: 0;
  background: rgba(43, 36, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.fondo-carrito.visible {
  opacity: 1;
  pointer-events: auto;
}

.panel-carrito {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--bg);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.panel-carrito.abierto { transform: translateX(0); }

.panel-carrito-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--borde);
}
.panel-carrito-header h2 {
  font-family: var(--fuente-display);
  margin: 0;
  font-size: 1.35rem;
}
.panel-carrito-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--texto);
}

.lista-carrito {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.carrito-vacio {
  color: var(--texto-suave);
  font-size: 0.92rem;
  text-align: center;
  margin-top: 2rem;
}

.item-carrito {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--borde);
}
.item-carrito-info { flex: 1; }
.item-carrito-info h4 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.item-carrito-info span {
  font-size: 0.82rem;
  color: var(--texto-suave);
}
.item-carrito-quitar {
  background: none;
  border: none;
  color: var(--terracotta);
  cursor: pointer;
  font-size: 0.85rem;
}

.panel-carrito-footer {
  padding: 1.2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.carrito-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--fuente-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.campo-nombre {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}
.campo-nombre input {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  font-family: var(--fuente-cuerpo);
  font-size: 0.92rem;
}
.campo-nombre select {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  font-family: var(--fuente-cuerpo);
  font-size: 0.92rem;
  background: #fff;
  color: var(--texto);
}
.envio-info {
  margin: -0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--brown);
  font-weight: 500;
}
.btn-whatsapp {
  background: var(--brown);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radio);
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-whatsapp:hover { background: #5f350f; }
.nota-carrito {
  font-size: 0.76rem;
  color: var(--texto-suave);
  margin: 0;
  text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 560px) {
  .header-inner { padding: 1rem; }
  .nav { gap: 1rem; }
  .nav a:not(.btn-carrito-nav) { display: none; }
  .hero { padding: 3rem 1.2rem 2rem; }
  .seccion { padding: 0 1.2rem 1.5rem; }
}

/* Foco visible para accesibilidad */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
