/* ======================================================
   BASE
====================================================== */
html, body { margin: 0; padding: 0; scroll-behavior: smooth;}
body { font-family: "Poppins", sans-serif; background-color: #fffaf3; color: #2c2c2c; line-height: 1.6;}
a { color: inherit; text-decoration: none;}
h2 { font-family: "Playfair Display", serif; color: #4d3b24; letter-spacing: 0.5px;}
/* ======================================================
   BOTONES
====================================================== */
.btn, .btn-card { background-color: #ab8b59; color: #fff; border-radius: 40px; display: inline-block; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 8px rgba(0,0,0,0.15); text-align: center;}
.btn { padding: 12px 28px; font-size: 1rem; margin: 8px; border-radius: 40px;}
.btn-card { padding: 10px 22px; border-radius: 50px; font-size: 0.95rem;}
.btn:hover, .btn-card:hover { background-color: #917445; transform: translateY(-2px);}
/* ======================================================
   NAVBAR
====================================================== */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; padding: 18px 40px; display: flex; justify-content: center; z-index: 999; transition: all 0.35s ease; background: transparent;}
.nav-overlay.scrolled, .nav-overlay.open-menu { background: rgba(30, 23, 17, 0.85); backdrop-filter: blur(12px);}
.nav-overlay.scrolled { padding: 14px 40px;}
.nav-overlay.hide { transform: translateY(-100%);}
.nav-inner { max-width: 1180px; width: 100%; display: flex; justify-content: space-between; align-items: center; position: relative;}
.nav-logo { width: 120px; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4)); transition: width 0.3s ease;}
.nav-links a { margin: 0 8px 0 24px; font-size: 1rem; color: #fff; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.5); transition: opacity 0.25s ease;}
.nav-links a:hover { opacity: 0.75;}
/* Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; position: relative; z-index: 2000;}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s ease;}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg);}
.nav-toggle.active span:nth-child(2) { opacity: 0;}
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg);}
/* ======================================================
   HERO
====================================================== */
.hero { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)), url("../img/fondo-frutos-secos.webp") center/cover no-repeat; color: #fff; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 20px 0 20px;}
.hero img { width: 55%; max-width: 380px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); margin-bottom: 1.2rem; user-select: none; pointer-events: none;}
.hero h1 { margin-top: 1rem; font-size: 1.3rem; font-weight: 300; color: #e6e6e6;}

/* ======================================================
   SOBRE
====================================================== */
.sobre { background-color: #f7f2ea; padding: 90px 20px; text-align: center;}
.sobre h2 { color: #ab8b59; margin-bottom: 1rem; font-size: 2.2rem;}
.sobre-intro { max-width: 720px; margin: 0 auto 50px; font-size: 1.1rem; color: #4d3b24;}
.sobre-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center;}
.sobre-texto { text-align: left; color: #4d3b24; font-size: 1.05rem; line-height: 1.6;}
.sobre-direccion { margin-top: 20px; font-size: 1.05rem;}
.sobre-botones { margin-top: 24px;}
.sobre-logos { display: flex; flex-direction: column; gap: 30px; align-items: center;}
.sobre-logos img { border-radius: 50%; width: 170px; height: 170px; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,0.15); transition: transform 0.25s ease;}
.sobre-logos img:hover { transform: scale(1.05);}
.sobre-contacto { margin-top: 18px; font-size: 0.95rem; color: #5c4a32;}
.sobre-contacto a { color: #6a5434; font-weight: 500;}
.sobre-contacto a:hover { text-decoration: underline;}
/* ======================================================
   RETIRO
====================================================== */
.retiro { background-color: #fffaf3; padding: 90px 20px; text-align: center;}
.retiro h2 { color: #ab8b59; margin-bottom: 1rem; font-size: 2.2rem;}
.retiro-intro { max-width: 720px; margin: 0 auto 50px; font-size: 1.1rem; color: #4d3b24;}
.retiro-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;}
.retiro-info { text-align: left; color: #4d3b24; font-size: 1.05rem; line-height: 1.6;}
.retiro-info h3 { margin-top: 0; color: #ab8b59; font-size: 1.5rem;}
.retiro-mapa iframe { width: 100%; height: 280px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.15);}
/* ======================================================
   FOOTER
====================================================== */
footer { background-color: #1c1c1c; color: #fff; text-align: center; padding: 50px 20px; font-size: 0.9rem;}
footer a { color: #ab8b59;}
footer a:hover { text-decoration: underline;}
/* ======================================================
   MEDIA QUERIES
====================================================== */
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; text-align: center; }
  .sobre-texto { text-align: center; }
  .retiro-grid { grid-template-columns: 1fr; text-align: center; }
  .retiro-info { text-align: center; }
}
@media (max-width: 800px) {
  .nav-overlay { justify-content: space-between; }
  .nav-toggle { display: flex; position: fixed; right: 14px; top: 14px; transform: none; z-index: 99999; background: rgba(0,0,0,0.32); padding: 10px; border-radius: 10px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .nav-logo { width: 95px; }
  .nav-links { display: none !important; opacity: 0; pointer-events: none; position: fixed; top: 70px; left: 10px; right: 10px; flex-direction: column; gap: 18px; padding: 28px; background: rgba(30, 23, 17, 0.75); backdrop-filter: blur(12px); border-radius: 20px; transform: translateY(-10px); transition: all 0.35s ease; z-index: 1500; }
  .nav-links.open { display: flex !important; opacity: 1; pointer-events: all; transform: translateY(0);}
  .nav-links a { margin: 0; text-align: center; font-size: 1.15rem; }
}
@media (max-width: 700px) {
  .hero img { width: 75%; }
  .productos h2, .sobre h2 { font-size: 1.8rem; }
}
/* CTA CARRO */
.cta-carrito { position: fixed; bottom: 20px; right: 20px; padding: 14px 18px; background: #c0a450; color: #fff; border: none; border-radius: 999px; font-size: 14px; cursor: pointer; z-index: 1000;}
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; padding: 24px;}
.producto { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.08); padding: 14px; align-items: center; display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, box-shadow .25s ease;}
.producto:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12);}
.producto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px;}
.producto h3 { font-size: 1.05rem; color: #4d3b24; margin: 4px 0 2px; text-align: center;}
/* Firefox */input[type=number] { -moz-appearance: textfield;}
.cantidad-control { display: flex; align-items: center; gap: 8px;}
.cantidad-control button { width: 32px; height: 32px; border-radius: 50%; border: none; background: #ab8b59; /* color visible */ color: #fff; /* texto contrastante */ font-size: 1.1rem; cursor: pointer; line-height: 1; box-shadow: 0 3px 8px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; /* 👈 centra el contenido del botón */}
.cantidad-control button:active { transform: scale(0.95);}
.cantidad-control input.cantidad { width: 48px; text-align: center; border-radius: 999px; border: 1px solid #e2d6c2; padding: 6px; font-size: .9rem;}
.producto button.agregar { margin-top: auto; /* CLAVE */ background: #ab8b59; color: #fff; border: none; border-radius: 999px; padding: 10px 18px; font-size: .9rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.15); transition: background .2s ease, transform .15s ease;}
.producto button.agregar:hover { background: #917445; transform: translateY(-1px);}
.categoria { text-align: center; margin-bottom: 48px;}
.carrito-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;}
.carrito-overlay.activo { opacity: 1; pointer-events: auto;}
.carrito-overlay.activo .carrito-drawer { transform: translateY(0);}
.carrito-drawer { width: 100%; max-height: 80vh; background: #fff; border-radius: 16px 16px 0 0; padding: 1rem; overflow-y: auto; transform: translateY(100%); transition: transform 0.35s ease; -webkit-overflow-scrolling: touch;}
.cerrar { position: absolute; right: 1rem; top: 1rem; background: none; border: none; font-size: 1.2rem;}
/* ===============================
   BOTONES CARRITO – BASE
================================ */
.carrito-drawer button { font-family: inherit; border: none; border-radius: 999px; padding: 10px 18px; font-size: .85rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.15); transition: background .2s ease, transform .15s ease, opacity .15s ease;}
/* Botones + / − del carrito (compactos) */
.carrito-cantidad button { padding: 0; width: 26px; height: 26px; font-size: .95rem; box-shadow: 0 2px 5px rgba(0,0,0,.15);}
.carrito-drawer button:active { transform: scale(0.96);}
#enviar-whatsapp { background: #ab8b59; color: #fff; font-size: .95rem; width: 100%; margin: 12px 0;}
#enviar-whatsapp:hover { background: #917445;}
#vaciar-carrito { background: #f1e6d4; color: #6a5434; width: 100%; margin-bottom: 8px;}
#vaciar-carrito:hover { background: #e6d6be;}
.carrito-lista { list-style: none; padding: 0; margin: 0;}
.carrito-lista .quitar { margin-top: 6px; background: transparent; color: #ab8b59; box-shadow: none; padding: 4px 8px; font-size: .8rem;}
.carrito-lista .quitar:hover { text-decoration: underline; opacity: .8;}
.carrito-item { padding: 6px 0; border-bottom: 1px solid #f0e6d8; display: flex; flex-direction: column; gap: 2px;}
.carrito-cantidad { margin: 6px 0;}
.carrito-item .subtotal { color: #6a5f55; font-size: .75rem;}
.carrito-item strong { font-size: .9rem; color: #4d3b24; margin: 0; line-height: 1.1; padding: 0;}
.carrito-item .detalle { font-size: .8rem; color: #7a6a55; margin: 0px; /* clave */ padding: 0; line-height: 1.1;}
.carrito-cantidad input.cantidad { appearance: none; -webkit-appearance: none; -moz-appearance: textfield; width: 36px; height: 26px; text-align: center; font-size: .8rem; font-family: inherit; border-radius: 999px; border: 1px solid #e2d6c2; background: #fffaf3; color: #4d3b24; padding: 0;}
.carrito-item .quitar { align-self: flex-start; padding: 2px 6px; font-size: .7rem; background: transparent; box-shadow: none;}
.carrito-cantidad button { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: #ab8b59; color: #fff; border: none; border-radius: 50%; width: 26px; height: 26px; font-size: .95rem; font-weight: 500; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,.15);}
/* FIX Safari / Firefox – contador carrito */
.carrito-cantidad { display: flex; flex-direction: row; align-items: center; gap: 6px;}
/* ===============================
   BOTÓN AGREGAR – CARD
================================ */
.cantidad-control .estado-agregar { width: auto; height: auto; padding: 10px 18px; border-radius: 999px; background: #ab8b59; color: #fff; font-size: .9rem; font-weight: 500; box-shadow: 0 4px 10px rgba(0,0,0,.15); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;}
.cantidad-control .estado-agregar:hover { background: #917445;}
.producto .detalle { font-size: .95rem; color: #7a6a55; margin: 0;}
.carrito-drawer { display: flex; flex-direction: column; overflow: hidden; /* ⛔️ quita scroll acá */}
#carrito { flex: 1; overflow-y: auto; /* ✅ scroll solo en lista */}
.carrito-acciones { position: sticky; bottom: 0; background: #fff; padding-top: 12px;}
/* ===============================
  PÁGINA DE DEVOLUCIONES
 =============================== */
.legal { max-width: 800px; margin: 0 auto; padding: 2rem 1rem;}
.legal h1 { margin-bottom: 1rem;}
.legal section { margin-bottom: 2rem;}

/* =========================
   Aviso nueva temporada
   ========================= */
.aviso-temporada { max-width: 1100px; margin: 60px auto 40px; padding: 28px 32px; background: #faf7f2; /* beige cálido, natural */  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);}
.aviso-temporada h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; color: #3a2f25; /* marrón profundo */ margin-bottom: 12px;}
.aviso-temporada p { font-family: 'Poppins', sans-serif; font-size: 1rem; line-height: 1.6; color: #4b4b4b; margin: 0;}
.aviso-temporada .aviso-secundario { margin-top: 10px; font-size: 0.95rem; color: #6a6a6a;}
/* Responsive */
@media (max-width: 768px) {
  .aviso-temporada { margin: 40px 16px 30px; padding: 22px 20px; }
  .aviso-temporada h2 { font-size: 1.35rem; }
}
