/* ===== Marquer — estilos base ===== */
:root {
  --verde: #2f5d3a;
  --verde-oscuro: #1f3f27;
  --rojo-tomate: #c0392b;
  --crema: #f4f1ea;
  --texto: #2b2b26;
  --texto-suave: #6b6b60;
  --borde: #e2ddd0;
  --blanco: #ffffff;
  --radio: 10px;
  --sombra: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-accent { color: var(--rojo-tomate); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--texto);
  font-size: 0.95rem;
}

nav.main-nav a:hover { color: var(--verde); }

.nav-cta {
  background: #25d366;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--verde-oscuro);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--crema) 0%, #eef2e6 100%);
  padding: 64px 0 56px;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 380px; }

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--verde-oscuro);
}

.hero-text p {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-image { flex: 1 1 320px; }
.hero-image img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: #25d366; color: #fff; }
.btn-primary:hover { background: #1eb956; }

.btn-outline {
  background: transparent;
  border-color: var(--verde);
  color: var(--verde-oscuro);
}
.btn-outline:hover { background: var(--verde); color: #fff; }

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.badge {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-suave);
}

.badge-new {
  background: var(--verde-oscuro);
  border-color: var(--verde-oscuro);
  color: #fff;
}

/* ---- Section shared ---- */
section { padding: 60px 0; }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--verde-oscuro);
  font-size: 1.8rem;
}

.section-subtitle {
  text-align: center;
  color: var(--texto-suave);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---- Producto ---- */
.product-card {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  background: var(--crema);
  border-radius: var(--radio);
  padding: 32px;
}

.product-card img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.15));
}

.product-media { flex: 1 1 320px; position: relative; }

.ribbon-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--rojo-tomate);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.product-info { flex: 1 1 320px; }

.product-info h3 {
  margin-top: 0;
  color: var(--verde-oscuro);
  font-size: 1.4rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}

.spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--borde);
}

.spec-table td:first-child {
  color: var(--texto-suave);
  width: 46%;
}

.spec-table td:last-child { font-weight: 600; }

.disclaimer {
  font-size: 0.82rem;
  color: var(--texto-suave);
  background: #fff8e6;
  border: 1px solid #f0e0a8;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 16px;
}

/* ---- Precios ---- */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--blanco);
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--borde);
}

.price-table thead th {
  background: var(--verde-oscuro);
  color: #fff;
  font-size: 0.9rem;
}

.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--crema); }

.price-table td.price { font-weight: 700; color: var(--verde-oscuro); }
.price-table td.editable::after {
  content: " (editar)";
  font-size: 0.72rem;
  color: var(--rojo-tomate);
  font-weight: 400;
}

.tag-free-shipping {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  background: #e6f0e2;
  padding: 3px 8px;
  border-radius: 999px;
}

.price-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--crema);
  border-left: 4px solid var(--verde);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--texto);
}

/* ---- Despacho ---- */
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.shipping-card {
  background: var(--crema);
  border-radius: var(--radio);
  padding: 22px;
  text-align: center;
}

.shipping-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.shipping-card h4 { margin: 0 0 6px; color: var(--verde-oscuro); }
.shipping-card p { margin: 0; color: var(--texto-suave); font-size: 0.9rem; }

.shipping-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.shipping-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---- Contacto ---- */
.contact-section {
  background: var(--verde-oscuro);
  color: #fff;
  border-radius: var(--radio);
  padding: 48px 32px;
  text-align: center;
}

.contact-section h2 { margin-top: 0; color: #fff; }
.contact-section p { color: #d9e2d3; max-width: 500px; margin: 0 auto 26px; }

.contact-details {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.contact-details a { color: #fff; text-decoration: none; font-weight: 600; }

/* ---- Footer ---- */
footer {
  padding: 28px 0;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.85rem;
  border-top: 1px solid var(--borde);
}

/* ---- Sticky WhatsApp button (mobile-friendly) ---- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: 1.6rem;
  z-index: 60;
}

/* ---- Asistente FAQ (chat gratis, sin backend) ---- */
.faq-chat-bubble {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--verde-oscuro);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.faq-chat-panel[hidden] { display: none; }

.faq-chat-panel {
  position: fixed;
  bottom: 156px;
  right: 20px;
  width: min(340px, calc(100vw - 40px));
  max-height: min(460px, calc(100vh - 200px));
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
  border: 1px solid var(--borde);
}

.faq-chat-header {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.faq-chat-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.faq-msg {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 88%;
  line-height: 1.4;
}

.faq-msg.bot {
  background: var(--crema);
  color: var(--texto);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.faq-msg.user {
  background: var(--verde);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.faq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.faq-option-btn {
  background: var(--blanco);
  border: 1px solid var(--verde);
  color: var(--verde-oscuro);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-option-btn:hover { background: var(--crema); }

.faq-option-btn.faq-whatsapp-btn {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--borde);
    display: none;
    flex-direction: column;
    padding: 12px 20px 20px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .menu-toggle { display: block; }
  .hero-text h1 { font-size: 1.7rem; }
  .contact-details { flex-direction: column; gap: 14px; }
}
