/* ============================================================
   GRÁFICA 360 — HOJA DE ESTILOS
   Paleta: naranja #F26522 / gris #58595B / blanco
   ============================================================ */
:root {
  --naranja: #F26522;
  --naranja-oscuro: #d4521a;
  --gris: #58595B;
  --gris-claro: #f5f5f5;
  --gris-medio: #9b9b9b;
  --blanco: #ffffff;
  --negro: #1e1e1e;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(0,0,0,.09);
  --shadow-hover: 0 10px 30px rgba(242,101,34,.22);
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--negro); background: var(--blanco); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────── */
.topbar {
  background: var(--gris); color: #fff; font-size: .78rem;
  padding: .35rem 0; text-align: center; letter-spacing: .5px;
}
.topbar a { color: #ffd9c4; font-weight: 600; }

header.main {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
/* nav a ancho completo: la marca queda pegada al borde izquierdo */
.nav {
  display: flex; align-items: stretch; justify-content: space-between;
  width: 100%; max-width: none; margin: 0;
  padding: 0 4% 0 0; gap: 1rem; min-height: 84px;
}
/* bloque naranja al ras del borde izquierdo */
.brand {
  display: flex; align-items: center; gap: .85rem;
  background: var(--naranja); color: #fff;
  padding: .5rem 1.9rem .5rem 1.1rem;
  border-radius: 0 0 20px 0;
  box-shadow: 0 3px 14px rgba(242,101,34,.3);
  flex: none;
}
.brand img { width: 74px; height: 74px; }
.brand-txt { line-height: 1.1; }
.brand-txt strong { color: #fff; font-size: 1.28rem; font-weight: 800; letter-spacing: .3px; }
.brand-txt span { display: block; font-size: .64rem; color: rgba(255,255,255,.85); letter-spacing: 2.5px; text-transform: uppercase; }

/* el resto del nav se alinea verticalmente al centro */
.nav > nav, .nav-actions { display: flex; align-items: center; }

.nav-links { display: flex; gap: 1.4rem; list-style: none; font-weight: 600; font-size: .9rem; }
.nav-links a { color: var(--gris); transition: color .2s; }
.nav-links a:hover { color: var(--naranja); }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.btn-cart {
  position: relative; background: var(--naranja); color: #fff; border: none;
  border-radius: 50px; padding: .55rem 1.2rem; font-family: var(--font);
  font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s;
  display: flex; align-items: center; gap: .45rem;
}
.btn-cart:hover { background: var(--naranja-oscuro); }
.cart-count {
  background: #fff; color: var(--naranja); border-radius: 50%;
  width: 21px; height: 21px; display: inline-flex; align-items: center;
  justify-content: center; font-size: .75rem; font-weight: 800;
}
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--gris); cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--naranja) 0%, #ff8a4d 60%, #ffa76e 100%);
  color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: "360°"; position: absolute; right: -3rem; bottom: -6rem;
  font-size: 22rem; font-weight: 800; opacity: .08; line-height: 1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.08rem; opacity: .95; margin-bottom: 1.8rem; max-width: 34rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.7rem; border-radius: 50px; font-weight: 700;
  font-size: .95rem; transition: all .2s; border: none; cursor: pointer; font-family: var(--font);
}
.btn-white { background: #fff; color: var(--naranja); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--naranja); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb857; transform: translateY(-2px); }

.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.hero-badges { display: flex; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-badges div { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; opacity: .95; }

/* ── Secciones ──────────────────────────────────────────── */
section { padding: 4rem 0; }
.sec-head { text-align: center; margin-bottom: 2.6rem; }
.sec-head .kicker { color: var(--naranja); font-weight: 800; letter-spacing: 3px; font-size: .78rem; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--negro); margin-top: .3rem; }
.sec-head p { color: var(--gris); max-width: 42rem; margin: .6rem auto 0; }

/* Categorías filtro */
.cat-filter { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.cat-btn {
  background: var(--gris-claro); border: 2px solid transparent; color: var(--gris);
  padding: .55rem 1.3rem; border-radius: 50px; font-weight: 700; font-size: .86rem;
  cursor: pointer; transition: all .2s; font-family: var(--font);
}
.cat-btn:hover { border-color: var(--naranja); color: var(--naranja); }
.cat-btn.active { background: var(--naranja); color: #fff; }

/* Grid productos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 1.6rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; background: rgba(242,101,34,.94);
  color: #fff; font-size: .68rem; font-weight: 800; padding: .28rem .75rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .4rem; }
.card-body p { font-size: .84rem; color: var(--gris); flex: 1; margin-bottom: .9rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { font-weight: 800; color: var(--naranja); font-size: .95rem; }
.price small { color: var(--gris-medio); font-weight: 600; }
.btn-add {
  background: var(--negro); color: #fff; border: none; border-radius: 50px;
  padding: .5rem 1.1rem; font-weight: 700; font-size: .8rem; cursor: pointer;
  transition: background .2s; font-family: var(--font); white-space: nowrap;
}
.btn-add:hover { background: var(--naranja); }

/* ── Franja WhatsApp ────────────────────────────────────── */
.strip {
  background: var(--gris); color: #fff; text-align: center; padding: 2.6rem 0;
}
.strip h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.strip p { opacity: .85; margin-bottom: 1.3rem; }

/* ── Por qué ────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
.why { background: var(--gris-claro); border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center; }
.why .ico { font-size: 2rem; margin-bottom: .6rem; }
.why h3 { font-size: .98rem; font-weight: 800; margin-bottom: .35rem; }
.why p { font-size: .82rem; color: var(--gris); }

/* ── Contacto ───────────────────────────────────────────── */
.contact { background: var(--gris-claro); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.c-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.c-item .ico {
  background: var(--naranja); color: #fff; width: 42px; height: 42px; flex: none;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.c-item strong { display: block; font-size: .92rem; }
.c-item span, .c-item a { font-size: .88rem; color: var(--gris); }
.c-item a:hover { color: var(--naranja); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────── */
footer { background: var(--negro); color: #bbb; padding: 2.4rem 0 1.6rem; font-size: .84rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
footer a:hover { color: var(--naranja); }
.foot-bottom { border-top: 1px solid #333; padding-top: 1.2rem; text-align: center; font-size: .76rem; color: #888; }

/* ── Carrito (drawer) ───────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -420px; width: min(400px, 94vw); height: 100dvh;
  background: #fff; z-index: 201; transition: right .3s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18);
}
.drawer.open { right: 0; }
.drawer-head {
  padding: 1.1rem 1.3rem; background: var(--naranja); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h3 { font-size: 1.05rem; font-weight: 800; }
.drawer-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-empty { text-align: center; color: var(--gris-medio); padding: 3rem 1rem; font-size: .9rem; }
.ci {
  display: flex; gap: .8rem; align-items: center; padding: .8rem 0;
  border-bottom: 1px solid #eee;
}
.ci img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
.ci-info { flex: 1; min-width: 0; }
.ci-info strong { font-size: .85rem; display: block; }
.ci-info span { font-size: .76rem; color: var(--gris-medio); }
.ci-qty { display: flex; align-items: center; gap: .45rem; }
.ci-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #ddd;
  background: #fff; cursor: pointer; font-weight: 800; color: var(--gris);
}
.ci-qty button:hover { border-color: var(--naranja); color: var(--naranja); }
.ci-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 1rem; }
.ci-del:hover { color: #e33; }
.drawer-foot { padding: 1.1rem 1.3rem; border-top: 1px solid #eee; }
.drawer-note {
  width: 100%; border: 1.5px solid #ddd; border-radius: 10px; padding: .6rem .8rem;
  font-family: var(--font); font-size: .84rem; resize: none; margin-bottom: .8rem;
}
.drawer-note:focus { outline: none; border-color: var(--naranja); }
.btn-checkout {
  width: 100%; justify-content: center; font-size: 1rem; padding: .9rem;
}
.drawer-hint { font-size: .72rem; color: var(--gris-medio); text-align: center; margin-top: .55rem; }

/* ── Botón flotante WA ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  background: var(--wa); width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 95px; right: 22px; z-index: 300;
  background: var(--negro); color: #fff; padding: .7rem 1.2rem;
  border-radius: 10px; font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem 1.5rem;
    box-shadow: 0 12px 20px rgba(0,0,0,.1); gap: .9rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .contact-grid { grid-template-columns: 1fr; }

  /* marca compacta en mobile, sigue pegada al borde */
  .nav { min-height: 68px; padding-right: 3%; }
  .brand { padding: .4rem 1.1rem .4rem .75rem; gap: .55rem; border-radius: 0 0 14px 0; }
  .brand img { width: 52px; height: 52px; }
  .brand-txt strong { font-size: 1rem; }
  .brand-txt span { font-size: .55rem; letter-spacing: 1.8px; }
}
