/* ===== TOKENS ===== */
:root {
  --orange: #E8580A;
  --orange-dark: #C04508;
  --orange-light: #FF7A2F;
  --orange-pale: #FFF1EB;
  --steel: #2C3E50;
  --steel-light: #3D5166;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-400: #ADB5BD;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img {
  height: 150px;
  width: auto;
  display: block;
}
.nav { display: flex; gap: 24px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.nav a:hover { color: var(--orange); }
.btn-whatsapp {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: white;
  padding: 8px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.4); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--steel);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-light) 50%, #1a252f 100%);
  background-image: url(mesas/hero-photo.JPEG);
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(232,88,10,0.15);
  border: 1px solid rgba(232,88,10,0.4);
  color: var(--orange-light);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--orange); }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  line-height: 1.6; margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--orange); color: white;
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--orange);
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== SECTION COMMON ===== */
.section-eyebrow {
  display: block; font-size: 0.75rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--steel);
  line-height: 1.1; text-transform: uppercase;
}
.section-sub { font-size: 0.95rem; color: var(--gray-600); margin-top: 8px; }
.section-header { text-align: center; margin-bottom: 36px; }

/* ===== PRODUCTOS ===== */
.productos { padding: 80px 0; background: var(--gray-50); }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.filtro {
  padding: 8px 20px; border-radius: 20px; border: 1.5px solid var(--gray-200);
  background: white; color: var(--gray-600); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filtro:hover { border-color: var(--orange); color: var(--orange); }
.filtro.active { background: var(--orange); border-color: var(--orange); color: white; }

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

.prod-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-card.hidden { display: none; }

.prod-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.prod-img-placeholder {
  height: 250px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat {
  font-size: 0.7rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.prod-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--steel);
  margin: 4px 0 8px; text-transform: uppercase;
}
.prod-desc { font-size: 0.82rem; color: var(--gray-600); line-height: 1.5; flex: 1; }
.prod-footer {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.prod-footer-top {
  display: flex; align-items: center; justify-content: space-between;
}
.prod-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 800; color: var(--orange);
}
.btn-comprar {
  background: var(--orange); color: white;
  border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-comprar:hover { background: var(--orange-dark); transform: scale(1.03); }
.btn-cotizar-mayor {
  background: #ffffff; color: #25D366;
  border: 1.5px solid #25D366; border-radius: 8px;
  padding: 9px 16px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s, color 0.2s;
  text-decoration: none; display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%;
}
.btn-cotizar-mayor:hover { background: #25D366; color: white; transform: scale(1.02); }
.btn-cotizar-mayor svg { flex-shrink: 0; }

/* ===== NOSOTROS ===== */
.nosotros { padding: 80px 0; background: white; }
.nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feat-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.feature strong { display: block; font-size: 0.95rem; color: var(--steel); margin-bottom: 2px; }
.feature p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; }

.ruc-card {
  background: var(--steel);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.ruc-label {
  font-size: 0.7rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.ruc-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 4px;
}
.ruc-name { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.ruc-sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.ruc-badges { display: flex; flex-direction: column; gap: 8px; }
.ruc-badges span {
  background: rgba(232,88,10,0.15); border: 1px solid rgba(232,88,10,0.3);
  color: var(--orange-light); padding: 8px 16px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
}

/* ===== CONTACTO ===== */
.contacto { background: var(--orange); padding: 80px 0; }
.contacto-inner { text-align: center; }
.btn-whatsapp-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 16px 36px; border-radius: 50px;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp-lg:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }

/* ===== FOOTER ===== */
.footer { background: var(--gray-800); padding: 32px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer p { font-size: 0.8rem; color: var(--gray-400); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 0.85rem; color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gray-200); }
.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--steel);
  text-transform: uppercase; margin-bottom: 4px;
}
.modal-price { font-size: 1.8rem; font-weight: 800; color: var(--orange); margin-bottom: 4px; }
.modal-sub { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-800); margin-bottom: 5px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--gray-200); font-size: 0.9rem;
  color: var(--gray-800); font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); }
.modal-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--orange-pale); border-radius: 8px;
  padding: 14px 16px; margin: 16px 0;
  font-weight: 600; color: var(--steel);
}
.total-amount { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; color: var(--orange); font-weight: 800; }
.btn-pagar {
  width: 100%; background: var(--orange); color: white;
  border: none; border-radius: 10px;
  padding: 16px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-pagar:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-pagar:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; }
.modal-disclaimer { font-size: 0.75rem; color: var(--gray-600); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--steel); color: white;
  padding: 12px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2000;
}
.toast.show { opacity: 1; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }

/* ===== RESPONSIVE ===== */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .nosotros-inner { gap: 40px; }
}

/* --- Mobile / small tablet (≤768px) --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Header */
  .header-inner { height: 60px; gap: 10px; }
  .logo-icon img { height: 40px; }
  .nav { display: none; }
  .btn-whatsapp { padding: 7px 12px; font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-sub { font-size: 0.92rem; margin-bottom: 24px; }
  .hero-ctas { margin-bottom: 32px; }
  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 0.9rem; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.6rem; }

  /* Sections */
  .productos { padding: 48px 0; }
  .nosotros { padding: 48px 0; }
  .contacto { padding: 48px 0; }
  .section-header { margin-bottom: 24px; }

  /* Productos grid */
  .filtros { gap: 6px; margin-bottom: 24px; }
  .filtro { padding: 7px 16px; font-size: 0.8rem; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .prod-img-placeholder { height: 190px; }
  .prod-name { font-size: 1.1rem; }
  .prod-desc { font-size: 0.8rem; }
  .prod-price { font-size: 1.4rem; }
  .btn-comprar { padding: 9px 16px; font-size: 0.82rem; }
  .btn-cotizar-mayor { font-size: 0.76rem; padding: 8px 12px; }

  /* Nosotros */
  .nosotros-inner { grid-template-columns: 1fr; gap: 32px; }
  .ruc-card { padding: 24px; }

  /* Contacto */
  .btn-whatsapp-lg { padding: 14px 28px; font-size: 1rem; }

  /* WhatsApp float button */
  .wa-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }

  /* Modal */
  .modal { padding: 24px; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Header: keep icon-only WhatsApp button to save space */
  .header-inner { height: 56px; }
  .logo-icon img { height: 120px; }
  .btn-whatsapp span.btn-whatsapp-text { display: none; }
  .btn-whatsapp { padding: 8px; border-radius: 50%; }

  /* Hero */
  .hero-title { line-height: 1.08; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }
  .hero-stats { gap: 16px 20px; }

  /* Sections */
  .productos { padding: 36px 0; }
  .nosotros { padding: 36px 0; }
  .contacto { padding: 36px 0; }
  .contacto p { font-size: 0.95rem !important; }

  /* Productos grid: single column on very small screens */
  .productos-grid { grid-template-columns: 1fr; }
  .prod-img-placeholder { height: 220px; }

  /* Footer buttons stack cleanly already via prod-footer-top flex */
  .prod-footer-top { flex-wrap: wrap; gap: 10px; }
  .btn-comprar { width: 100%; text-align: center; }

  .btn-whatsapp-lg { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.95rem; }

  .ruc-card { padding: 20px; }
  .ruc-num { font-size: 1.5rem; }

  .wa-float { width: 46px; height: 46px; bottom: 14px; right: 14px; }
  .wa-float svg { width: 22px; height: 22px; }

  .modal { padding: 18px; }
  .modal-title { font-size: 1.25rem; }
}

/* --- Extra small phones (≤360px) --- */
@media (max-width: 360px) {
  .hero-title { font-size: 2.3rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }
  .prod-name { font-size: 1rem; }
  .btn-cotizar-mayor { font-size: 0.72rem; }
}
