/* ============================
   VEZZO — Design system
============================ */
:root {
  --red: #e11c2e;
  --red-dark: #b8121f;
  --black: #111111;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #efefef;
  --gray-300: #d8d8d8;
  --gray-500: #8a8a8a;
  --gray-700: #4a4a4a;
  --text: #161616;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,.08);
  --header-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Header ---------- */
#site-header { position: relative; z-index: 100; }
.header-top {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 24px 10px;
}
.logo-word {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.logo-word .dot { color: var(--red); }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 58px; width: auto; }
.header-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px;
  border-top: 1px solid var(--gray-100);
  padding: 14px 24px;
  font-size: .86rem; font-weight: 600; letter-spacing: .3px;
}
.header-nav a { color: var(--red); transition: color .15s; padding-bottom: 4px; }
.header-nav a:hover, .header-nav a.active { color: var(--black); border-bottom: 2px solid var(--red); }
.header-nav a.nav-inicio { color: var(--black); }
.header-actions {
  position: absolute; top: 50%; right: 130px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 16px;
}
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gray-300); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--black); font-size: 1rem;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: var(--white);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.menu-toggle { display: none; }

/* ---------- Announcement bar (4x1) ---------- */
.promo-strip {
  background: var(--black); color: var(--white);
  text-align: center; font-size: .8rem; font-weight: 700;
  letter-spacing: .4px; padding: 9px 16px;
}
.promo-strip strong { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  background-image: linear-gradient(rgba(10,10,10,.6), rgba(10,10,10,.6)), url('../images/hero-bg.jpg');
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  padding: 60px 24px;
}
.hero-kicker { font-size: .95rem; letter-spacing: 2px; text-transform: uppercase; opacity: .9; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: 2px; }
.hero-sub { margin-top: 18px; font-size: 1rem; }

/* ---------- Section titles ---------- */
.section-title { text-align: center; font-size: 1.7rem; font-weight: 800; margin: 46px 0 26px; }
.home-products-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }

/* ---------- Promo grid (home) ---------- */
.promo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 0 24px 40px; max-width: 1400px; margin: 0 auto;
}
.promo-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1/1.05; background: var(--gray-100);
  flex: 0 1 calc((100% - 7 * 12px) / 8);
}
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,0));
  color: var(--white); padding: 22px 8px 10px; text-align: center;
}
.promo-card-label h3 { font-weight: 700; font-size: .74rem; line-height: 1.15; margin-bottom: 7px; }
.promo-card-label .btn-red { font-size: .62rem; padding: 6px 9px; }
.btn-red {
  display: inline-block; background: var(--red); color: var(--white);
  font-weight: 700; font-size: .78rem; letter-spacing: .3px;
  padding: 9px 18px; border-radius: 6px; border: none;
  transition: background .15s;
}
.btn-red:hover { background: var(--red-dark); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--black);
  border: 1.5px solid var(--black); font-weight: 700; font-size: .8rem;
  padding: 9px 20px; border-radius: 6px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--gray-50); padding: 50px 24px; }
.testi-grid {
  max-width: 1000px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.testi-card { text-align: center; }
.testi-card .stars { color: var(--red); letter-spacing: 2px; margin-bottom: 10px; }
.testi-card p { font-style: italic; color: var(--gray-700); margin-bottom: 10px; }
.testi-card strong { font-size: .85rem; }

/* ---------- WhatsApp banner ---------- */
.wa-banner {
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding: 20px 24px; max-width: 1240px; margin: 40px auto 0;
  border-radius: var(--radius);
}
.wa-banner h3 { font-size: 1.15rem; font-weight: 700; }
.wa-banner a {
  background: var(--white); color: var(--red); font-weight: 700; font-size: .82rem;
  padding: 10px 20px; border-radius: 6px;
}

/* ---------- Trust badges ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  max-width: 1000px; margin: 46px auto; padding: 0 24px; text-align: center;
}
.trust-item i { font-size: 1.8rem; color: var(--red); margin-bottom: 10px; }
.trust-item span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .3px; color: var(--gray-700); margin-top: 6px; }

/* ---------- Footer ---------- */
#site-footer { background: var(--black); color: var(--white); margin-top: 50px; }
.footer-grid {
  max-width: 1240px; margin: 0 auto; padding: 50px 24px 26px;
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 30px;
}
.footer-grid h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.footer-grid p, .footer-grid a { font-size: .85rem; color: rgba(255,255,255,.72); display: block; margin-bottom: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-news input {
  width: 100%; padding: 11px 14px; border-radius: 6px; border: none; margin: 10px 0;
  background: rgba(255,255,255,.08); color: var(--white);
}
.footer-news input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom {
  text-align: center; font-size: .75rem; color: rgba(255,255,255,.4);
  padding: 16px; border-top: 1px solid rgba(255,255,255,.1);
}

/* ---------- User menu (login cliente) ---------- */
.user-menu { position: relative; }
.user-btn {
  width: auto; min-width: 40px; padding: 0 14px 0 0; gap: 8px; border-radius: 22px;
  transition: all .15s;
}
.user-btn i { font-size: 1rem; margin-left: 12px; flex-shrink: 0; }
.user-menu:not(.logged-in) .user-btn { width: 40px; padding: 0; }
.user-menu:not(.logged-in) .user-btn i { margin-left: 0; }
.user-greeting { font-size: .8rem; font-weight: 700; color: var(--black); white-space: nowrap; }
.user-menu.logged-in .user-btn { border-color: var(--red); color: var(--red); }
.user-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; width: 280px;
  background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px; display: none; z-index: 200;
}
.user-menu.open .user-dropdown { display: block; }
.udd-header { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); margin-bottom: 6px; }
.udd-avatar { font-size: 2.1rem; color: var(--gray-300); }
.udd-name { font-size: .85rem; font-weight: 700; }
.udd-email { font-size: .74rem; color: var(--gray-500); word-break: break-all; }
.udd-items { display: flex; flex-direction: column; padding: 6px 0 10px; border-bottom: 1px solid var(--gray-100); margin-bottom: 10px; }
.udd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.udd-item i { width: 16px; text-align: center; color: var(--gray-500); font-size: .88rem; }
.udd-item:hover { background: var(--gray-50); color: var(--red); }
.udd-item:hover i { color: var(--red); }
.udd-logout {
  width: 100%; background: none; border: 1px solid var(--gray-300); color: var(--gray-700);
  padding: 9px; border-radius: 8px; font-size: .8rem; font-weight: 600; font-family: inherit;
}
.udd-logout:hover { border-color: var(--red); color: var(--red); }

/* ---------- Auth modal (login/registro clientes) ---------- */
.auth-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 3500;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-modal-overlay.show { display: flex; }
.auth-modal { background: var(--white); border-radius: 16px; padding: 30px; max-width: 380px; width: 100%; position: relative; }
.auth-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.05rem; color: var(--gray-500); }
.auth-modal-tabs { display: flex; gap: 6px; background: var(--gray-50); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.auth-modal-tab { flex: 1; background: none; border: none; padding: 9px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--gray-500); font-family: inherit; }
.auth-modal-tab.active { background: var(--white); color: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-modal-form { display: none; }
.auth-modal-form.active { display: block; }
.auth-modal-logo { height: 40px; display: block; margin: 0 auto 14px; }
.auth-modal-form h3 { text-align: center; font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.auth-field { margin-bottom: 12px; }
.auth-field label { display: block; font-size: .74rem; font-weight: 700; color: var(--gray-700); margin-bottom: 5px; }
.auth-field input { width: 100%; padding: 10px 13px; border-radius: 7px; border: 1px solid var(--gray-300); font-family: inherit; font-size: .85rem; }
.auth-error { color: var(--red); font-size: .76rem; min-height: 1.1em; margin: 4px 0; }
.auth-btn-primary { width: 100%; background: var(--red); color: var(--white); border: none; padding: 12px; border-radius: 8px; font-weight: 700; font-size: .86rem; margin-top: 4px; }
.auth-btn-primary:hover { background: var(--red-dark); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: .74rem; color: var(--gray-500); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.auth-btn-google {
  width: 100%; background: var(--white); border: 1.5px solid var(--gray-300); color: var(--text);
  padding: 11px; border-radius: 8px; font-weight: 600; font-size: .84rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.auth-btn-google i { color: #ea4335; }
.auth-btn-google:hover { border-color: var(--gray-500); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: var(--white); padding: 12px 22px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s;
  z-index: 3000; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success i { color: #2ecc71; }
.toast.error i { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .promo-card { flex-basis: calc((100% - 3 * 12px) / 4); }
}
@media (max-width: 900px) {
  .promo-card { flex-basis: calc((100% - 2 * 12px) / 3); }
  .footer-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; align-items: center; }
  .menu-toggle {
    display: flex; position: absolute; top: 50%; left: 24px; transform: translateY(-50%);
    width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1.5px solid var(--gray-300); border-radius: 50%; background: none; font-size: 1.1rem;
  }
  .promo-card { flex-basis: calc((100% - 12px) / 2); }
  .promo-grid { padding: 0 14px 30px; }
  .promo-card-label h3 { font-size: .8rem; }
  .promo-card-label .btn-red { font-size: .72rem; padding: 8px 14px; }
}
