/* =========================================================
   Drix Panamá — estilos del landing
   ========================================================= */

:root {
  --brand: #1b2887;
  --brand-2: #2f43b0;
  --accent: #2ea3f2;
  --brand-foreground: #ffffff;
  --background: #f7f9fc;
  --foreground: #16203a;
  --card: #ffffff;
  --muted: #5b6478;
  --secondary: #eef3fb;
  --accent-soft: #e2f1fe;
  --border: #e3e9f2;
  --whatsapp: #25d366;
  --danger: #d92d20;
  --radius: 14px;
  --gradient-brand: linear-gradient(135deg, #1b2887, #2ea3f2);
  --gradient-hero: linear-gradient(135deg, #1b2887 0%, #2b4bc0 55%, #2ea3f2 100%);
  --shadow-soft: 0 4px 20px -6px rgba(27, 40, 135, 0.14);
  --shadow-card: 0 14px 34px -14px rgba(27, 40, 135, 0.22);
  --shadow-glow: 0 0 60px rgba(46, 163, 242, 0.35);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Iconos ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 22px; height: 22px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; font-size: 15px; font-weight: 700; padding: 13px 26px;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #0b1c3a; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar { background: var(--brand); color: #fff; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar .row { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.topbar a:hover { text-decoration: underline; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.logo { height: 46px; width: auto; }
.nav-main { display: none; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-main > a, .nav-main .dropdown > button { color: var(--foreground); }
.nav-main > a:hover, .nav-main .dropdown > button:hover { color: var(--brand); }

.dropdown { position: relative; }
.dropdown > button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit; font-weight: 600; padding: 0; }
.dropdown > button .chev { transition: transform .2s; }
.dropdown:hover > button .chev, .dropdown:focus-within > button .chev { transform: rotate(180deg); }
.dropdown-menu { position: absolute; left: -12px; top: 100%; padding-top: 12px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu .panel {
  width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 10px;
}
.dropdown-menu a { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--secondary); color: var(--brand); }
.dropdown-menu a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.wa-link-top { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand); }
.wa-link-top:hover { color: var(--accent); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: background .18s; }
.cart-btn:hover { background: var(--brand-2); }
.cart-btn .badge { background: var(--accent); color: #0b1c3a; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.burger { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px; color: var(--brand); }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu .container { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; padding-bottom: 14px; }
.mobile-menu a { padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.mobile-menu a:hover { background: var(--secondary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(circle at 18% 8%, #fff, transparent 42%), radial-gradient(circle at 85% 92%, #fff, transparent 46%);
}
.hero .inner { position: relative; display: grid; gap: 44px; align-items: center; padding: 64px 20px; }
.hero .copy { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }
.hero h1 { margin-top: 22px; font-size: 40px; font-weight: 800; }
.hero .lead { margin-top: 20px; max-width: 34rem; font-size: 17px; opacity: .92; }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.hero .trust .item { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; opacity: .95; }
.hero .trust .item .ico { color: var(--accent); }
.hero .media { position: relative; }
.hero .media img { position: relative; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); outline: 1px solid rgba(255,255,255,.25); }
.hero .media .glow { position: absolute; inset: -26px; border-radius: 26px; background: rgba(46,163,242,.4); filter: blur(64px); }
.hero .badge-float {
  position: absolute; left: -14px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--foreground); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow-card); font-size: 13px; font-weight: 700;
}
.hero .badge-float .ico { color: var(--whatsapp); }

/* ---------- Secciones ---------- */
.block { padding: 56px 0; }
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { margin-top: 8px; font-size: 30px; font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature .ico-badge { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: var(--accent-soft); color: var(--brand); }
.feature h3 { margin-top: 14px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Categorías ---------- */
.grid-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-soft); transition: box-shadow .25s; }
.cat:hover { box-shadow: var(--shadow-card); }
.cat .thumb { aspect-ratio: 1 / 1; background: var(--secondary); overflow: hidden; }
.cat .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cat:hover .thumb img { transform: scale(1.09); }
.cat .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,30,90,.9) 6%, rgba(27,40,135,.35) 45%, transparent); }
.cat .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; }
.cat .label h3 { font-size: 17px; font-weight: 700; }
.cat .label span { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--accent); font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.cat:hover .label span { opacity: 1; transform: translateY(0); }

/* ---------- Productos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; transition: all .18s;
}
.chip:hover { border-color: var(--accent); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.grid-prod { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--secondary); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .tag { position: absolute; left: 10px; top: 10px; background: rgba(27,40,135,.9); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
.card .body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px; }
.card .pres { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.card .name { font-weight: 700; line-height: 1.3; font-size: 15px; }
.card .desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.card .price { font-size: 19px; font-weight: 800; color: var(--brand); }
.add-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 700; transition: background .18s; }
.add-btn:hover { background: var(--brand-2); }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 18px; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px 22px; box-shadow: var(--shadow-soft); }
.step .num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; }
.step h3 { margin-top: 14px; font-size: 17px; font-weight: 700; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-block { position: relative; overflow: hidden; border-radius: 26px; background: var(--gradient-brand); color: #fff; padding: 42px; }
.cta-block .glow { position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(70px); }
.cta-block .inner { position: relative; display: grid; gap: 24px; align-items: center; }
.cta-block h2 { font-size: 30px; font-weight: 800; }
.cta-block p { margin: 12px 0 0; opacity: .92; max-width: 40rem; }
.cta-block .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 30px; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
a.info:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.info .ico-badge { display: inline-flex; width: 46px; height: 46px; flex: none; align-items: center; justify-content: center; border-radius: 13px; background: var(--accent-soft); color: var(--brand); }
.info .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.info .v { font-weight: 700; }
form.quote { border: 1px solid var(--border); background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 16px; }
form.quote h2 { font-size: 22px; font-weight: 800; }
.form-row { display: grid; gap: 16px; }
.field { display: block; }
.field span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  margin-top: 5px; width: 100%; border: 1px solid var(--border); border-radius: 11px;
  background: var(--background); padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,163,242,.28); background: #fff; }
.form-note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 0; }
.form-alert { font-size: 12.5px; font-weight: 600; color: var(--danger); margin: 0; display: none; }
.form-alert.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--brand); color: #fff; }
.site-footer .cols { display: grid; gap: 36px; padding: 56px 20px; }
.site-footer .brand-logo { height: 46px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; }
.site-footer p { margin: 16px 0 0; font-size: 14px; opacity: .85; max-width: 30rem; }
.site-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--accent); }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; opacity: .92; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .ico-row { display: inline-flex; align-items: center; gap: 9px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer .social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .18s; }
.site-footer .social a:hover { background: var(--accent); color: #0b1c3a; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px; font-size: 12.5px; opacity: .78; }

/* ---------- Carrito ---------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10,15,35,.55); opacity: 0; visibility: hidden; transition: opacity .25s; }
.backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(430px, 100%); background: var(--card); box-shadow: -14px 0 44px rgba(0,0,0,.24); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer .head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.drawer .head h2 { font-size: 20px; font-weight: 800; }
.drawer .close { display: inline-flex; background: none; border: 0; color: var(--muted); padding: 4px; border-radius: 8px; }
.drawer .close:hover { background: var(--secondary); color: var(--foreground); }
.drawer .items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line img { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; flex: none; }
.line .meta { flex: 1; min-width: 0; }
.line .meta .nm { font-weight: 700; font-size: 14px; }
.line .meta .pr { font-size: 13px; color: var(--brand); font-weight: 700; margin-top: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 17px; color: var(--brand); }
.qty span { width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.line .del { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 8px; }
.line .del:hover { color: var(--danger); }
.drawer .empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--muted); }
.drawer .empty .ico-lg { width: 44px; height: 44px; color: var(--accent); }
.drawer .foot { border-top: 1px solid var(--border); padding: 20px; display: none; flex-direction: column; gap: 12px; }
.drawer .foot.show { display: flex; }
.drawer .sum { display: flex; justify-content: space-between; font-size: 14px; }
.drawer .sum.total { font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--border); }
.drawer .sum.total .amt { color: var(--brand); }
.drawer .clear { align-self: flex-end; background: none; border: 0; font-size: 12.5px; color: var(--muted); }
.drawer .clear:hover { color: var(--danger); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 70; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: var(--whatsapp); color: #fff; box-shadow: 0 10px 26px -8px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero .inner { padding: 96px 20px; }
  .hero h1 { font-size: 50px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .grid-cat { grid-template-columns: repeat(3, 1fr); }
  .grid-prod { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta-block { padding: 56px; }
  .cta-block .inner { grid-template-columns: 1fr auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .wa-link-top { display: inline-flex; }
}
@media (min-width: 1024px) {
  .hero .inner { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: 60px; }
  .nav-main { display: flex; }
  .burger { display: none; }
  .grid-cat { grid-template-columns: repeat(3, 1fr); }
  .grid-prod { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .wa-float, .drawer, .backdrop { display: none !important; }
  body { background: #fff; }
}
