/* =========================================================================
   Trajes Típicos — Sistema de diseño (paleta del logo)
   ========================================================================= */
:root {
  --azul:    #1E56D6;
  --verde:   #37A64A;
  --verde-2: #6FBF44;
  --rojo:    #E0342B;
  --naranja: #F79219;
  --amarillo:#FBBF12;
  --ink:     #16181D;
  --muted:   #6b7280;
  --line:    #e9e7e1;
  --bg:      #ffffff;
  --bg-soft: #faf9f5;
  --bg-soft2:#f4f2ec;

  --grad-plumas: linear-gradient(120deg, var(--azul) 0%, var(--verde) 33%, var(--amarillo) 62%, var(--naranja) 82%, var(--rojo) 100%);
  --shadow-sm: 0 2px 10px rgba(20,24,29,.06);
  --shadow-md: 0 8px 28px rgba(20,24,29,.10);
  --shadow-lg: 0 18px 50px rgba(20,24,29,.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Footer siempre al fondo, aunque el contenido sea corto */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--verde); margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(30,86,214,.28); }
.btn-primary:hover { background: #1746b4; }
.btn-verde { background: var(--verde); color: #fff; box-shadow: 0 8px 20px rgba(55,166,74,.3); }
.btn-verde:hover { background: #2c8c3d; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-wa:hover { background: #1eb757; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--azul); color: var(--azul); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-txt { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1; }
.brand .brand-txt small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--verde); margin-top: 3px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { font-family: var(--font-head); font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: 10px; color: #33373f; }
.main-nav a:hover, .main-nav a.active { background: var(--bg-soft2); color: var(--azul); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft2); }
.cart-link:hover { background: #e8e6df; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.header-tool-link { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #33373f; }
.header-tool-link:hover { background: var(--bg-soft2); color: var(--azul); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--bg-soft2); border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:''; display:block; width:20px; height:2px; background:var(--ink); position:relative; margin:0 auto; transition:.2s; }
.nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }

/* =========================================================================
   Hero / banner principal
   ========================================================================= */
.hero { position: relative; }
.hero-banner { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; background: var(--grad-plumas); }
.hero-banner img.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,25,.72) 0%, rgba(10,14,25,.35) 45%, rgba(10,14,25,.05) 100%); }
.hero-content { position: relative; color: #fff; max-width: 620px; padding: 60px 0; }
.hero-content .eyebrow { color: var(--amarillo); }
.hero-content h1 { font-size: clamp(34px, 5.2vw, 58px); margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-content h1 .accent { background: var(--grad-plumas); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content p { font-size: 19px; color: rgba(255,255,255,.92); margin-bottom: 28px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip { background: var(--ink); }
.hero-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding: 16px 20px; }
.hero-strip span { color: #e8e8e8; font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; }
.hero-strip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* =========================================================================
   Categorías
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); padding: 26px 22px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  color: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card::before { content:''; position:absolute; inset:0; opacity:.92; z-index:0; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card h3 { font-size: 19px; margin: 0; }
.cat-card .count { font-size: 13px; opacity: .9; }
.cat-c0::before { background: linear-gradient(135deg,#1E56D6,#1746b4); }
.cat-c1::before { background: linear-gradient(135deg,#37A64A,#2c8c3d); }
.cat-c2::before { background: linear-gradient(135deg,#E0342B,#b62a23); }
.cat-c3::before { background: linear-gradient(135deg,#F79219,#d97a0c); }
.cat-c4::before { background: linear-gradient(135deg,#8b5cf6,#6d3ff0); }
.cat-c5::before { background: linear-gradient(135deg,#0ea5b7,#0b8291); }

/* =========================================================================
   Tarjetas de producto
   ========================================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .25s ease; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prod-thumb { position: relative; aspect-ratio: 4/5; background: var(--bg-soft2); overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; color: #fff; }
.badge-alq { background: var(--azul); }
.badge-ven { background: var(--verde); }
.badge-stock { position: absolute; bottom: 12px; right: 12px; background: rgba(22,24,29,.82); color:#fff; font-size:11px; padding:5px 10px; border-radius:999px; }
.prod-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 12px; color: var(--verde); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.prod-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.35; margin: 4px 0 10px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 2.7em; word-break: break-word; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.prod-price small { display:block; font-weight:500; font-size:11px; color:var(--muted); letter-spacing:.03em; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--azul); color:#fff; display:inline-flex; align-items:center; justify-content:center; border:0; cursor:pointer; transition: background .2s, transform .15s; }
.icon-btn:hover { background:#1746b4; transform: translateY(-2px); }

/* =========================================================================
   Cómo funciona
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 12px; }
.step .num { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; font-size:26px; color:#fff; box-shadow: var(--shadow-sm); }
.step:nth-child(1) .num { background: var(--azul); }
.step:nth-child(2) .num { background: var(--verde); }
.step:nth-child(3) .num { background: var(--naranja); }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* --- Banda CTA --- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 40px; text-align: center; color: #fff; background: var(--grad-plumas); }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); color:#fff; }
.cta-band p { font-size: 18px; opacity: .95; max-width: 560px; margin: 0 auto 26px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #cfd2d8; padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.foot-contact li { display: flex; align-items: center; gap: 10px; }
.foot-contact .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); display:inline-flex; align-items:center; justify-content:center; }
.footer-bottom { text-align: center; padding-top: 22px; font-size: 13px; color: #8a8f99; }

/* --- WhatsApp flotante --- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================================
   Iconos svg helpers
   ========================================================================= */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn-wa-text { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; flex-shrink: 0; }
  .header-bar { height: 64px; gap: 10px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand img { height: 40px; flex-shrink: 0; }
  .brand .brand-txt { font-size: 16px; white-space: nowrap; }
  .brand .brand-txt small { font-size: 10px; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 2px; box-shadow: var(--shadow-md); }
  /* "Cómo funciona": pasos en fila (número + texto), más compacto en móvil */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 4px 0; }
  .step .num { margin: 0; flex-shrink: 0; width: 50px; height: 50px; font-size: 21px; border-radius: 14px; }
  .step h3 { font-size: 17px; margin-bottom: 3px; }
  .step p { font-size: 14.5px; }
  /* Productos SIEMPRE de 2 por fila en móvil */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .hero-content h1 { font-size: 34px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,14,25,.55), rgba(10,14,25,.75)); }
}
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  /* Tarjetas de producto compactas (2 por fila) */
  .prod-grid { gap: 12px; }
  .prod-body { padding: 12px 12px 14px; }
  .prod-cat { font-size: 10.5px; }
  .prod-name { font-size: 13.5px; margin: 3px 0 8px; }
  .prod-price { font-size: 15.5px; }
  .prod-price small { font-size: 10px; }
  .prod-thumb { aspect-ratio: 3/4; }
  .prod-badges { top: 8px; left: 8px; gap: 4px; }
  .badge { font-size: 10px; padding: 4px 8px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .cat-card { min-height: 108px; padding: 18px 15px; }
  .cat-card h3 { font-size: 15.5px; }
  .cat-card .count { font-size: 12px; }
  .eyebrow { font-size: 12px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 25px; }
  .section-head p { font-size: 15.5px; }
  .hero-banner { min-height: 400px; }
  .hero-content { padding: 44px 0; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 16px; margin-bottom: 22px; }
  .hero-ctas { gap: 10px; width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; padding: 13px 12px; }
  .hero-strip .container { gap: 8px 20px; padding: 14px 16px; }
  .hero-strip span { font-size: 13px; }
  .cta-band { padding: 40px 22px; }
  .cta-band p { font-size: 16px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  /* Solo el logo en pantallas pequeñas: evita que el texto se encime con los botones */
  .brand .brand-txt { display: none; }
  .header-actions { gap: 8px; }
  .acct-btn { padding: 9px 11px; font-size: 13.5px; }
  .cart-link, .nav-toggle { width: 42px; height: 42px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (max-width: 400px) {
  .prod-body { padding: 10px 10px 12px; }
  .prod-name { font-size: 13px; }
  .prod-price { font-size: 15px; }
  .icon-btn { width: 34px; height: 34px; }
}
