/* =========================================================
   SUPLYTECH — Sistema de diseño (base heredada de Flujo Activo,
   paleta blanco perlado + azul eléctrico, acento coral solo
   para ofertas/urgencia)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Color */
  --bg:            #F7F9FC;
  --bg-alt:        #EAF2FA;
  --ink:           #111827;
  --ink-soft:      #5B6472;
  --line:          #DCE6F0;
  --blue:        #12A9FF;
  --blue-deep:   #0A7FC2;
  --blue-tint:   #E1F5FF;
  --accent:        #FF5A5F;   /* coral: solo para badges de oferta/urgencia */
  --accent-tint:   #FFE8E9;
  --graphite:      #0F1B2B;
  --graphite-soft: #16263B;
  --paper:         #FFFFFF;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1180px;
  --radius: 6px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--blue);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(56px, 9vw, 108px) 0; }

/* Focus visibility (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo span.dim { color: var(--ink-soft); font-weight: 500; }
.logo .mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--blue); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: 8px; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Flow-line signature graphic */
.flow-art {
  background: var(--graphite);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.flow-art .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A9ADB4;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.flow-svg { width: 100%; height: auto; }
.flow-path-before {
  fill: none;
  stroke: #4B505A;
  stroke-width: 2;
  stroke-dasharray: 3 5;
}
.flow-path-after {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw 2.4s ease forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.flow-dot { fill: var(--blue); }
.flow-node { fill: var(--graphite); stroke: #565B64; stroke-width: 1.5; }
.flow-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #A9ADB4;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTION HEADERS (reusable)
   ========================================================= */

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-top: 14px;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 16.5px;
}

/* =========================================================
   PROPUESTA DE VALOR
   ========================================================= */

.value-band {
  background: var(--graphite);
  color: #fff;
}
.value-band .eyebrow { color: #7FD6FF; }
.value-band .eyebrow::before { background: var(--blue); }
.value-band .section-head p { color: #C7CAD1; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #383C43;
  border-radius: 10px;
  overflow: hidden;
}
.value-card {
  background: var(--graphite-soft);
  padding: 30px 26px;
}
.value-card .k {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.value-card h3 {
  font-size: 19px;
  margin: 14px 0 10px;
  color: #fff;
}
.value-card p { color: #B7BAC1; font-size: 14.5px; }

@media (max-width: 780px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--blue-deep); }
.service-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }

@media (max-width: 940px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ACTIVADOS (testimonios)
   ========================================================= */

.activados { background: var(--bg-alt); }

.activados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.activado-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 26px 24px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 2px rgba(28,27,26,0.04);
}
.activado-card .quote {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
}
.activado-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--graphite);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.who .name { font-size: 14px; font-weight: 600; }
.who .role { font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 940px) {
  .activados-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .activados-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CTA BAND
   ========================================================= */

.cta-band {
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; max-width: 34ch; }
.cta-band .btn-ghost { background: #fff; color: var(--blue-deep); border-color: #fff; }
.cta-band .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   FORMS (Cotizaciones + Contacto)
   ========================================================= */

.page-hero {
  padding: clamp(48px, 7vw, 76px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-top: 14px; }
.page-hero p.lead { color: var(--ink-soft); font-size: 17px; max-width: 56ch; margin-top: 14px; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
label .req { color: var(--blue-deep); }
label .opt {
  font-weight: 400;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #B9C6D6; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2357534E' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.ok { background: #EAF6EC; color: #1E6B33; border: 1px solid #BFE3C6; }
.form-status.err { background: #FBEAEA; color: #A32626; border: 1px solid #F1C6C6; }

/* Side info panel (used on forms) */
.info-panel {
  background: var(--graphite);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
}
.info-panel h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.info-item { display: flex; gap: 12px; margin-bottom: 18px; }
.info-item svg { width: 18px; height: 18px; stroke: var(--blue); flex-shrink: 0; margin-top: 2px; }
.info-item .t { font-size: 13px; color: #9AA0A8; margin-bottom: 2px; }
.info-item .v { font-size: 14.5px; color: #fff; }
.info-divider { height: 1px; background: #383C43; margin: 20px 0; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  font-size: 13.5px;
  color: #C7CAD1;
  padding: 8px 0;
  border-bottom: 1px solid #383C43;
}
.info-list li:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   MISIÓN / VISIÓN (contacto.html)
   ========================================================= */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mv-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px;
  background: var(--paper);
}
.mv-card .eyebrow { margin-bottom: 14px; }
.mv-card p { color: var(--ink-soft); font-size: 15.5px; }

@media (max-width: 780px) {
  .mv-grid { grid-template-columns: 1fr; }
}

.map-block {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
}
.map-block iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 20px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-grid .logo { font-size: 16px; }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--blue-deep); }
.footer-fine { font-size: 12.5px; color: var(--ink-soft); }

/* =========================================================
   PLANES (pricing cards)
   ========================================================= */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: #8FD4FF; box-shadow: 0 12px 28px rgba(28,27,26,0.07); }

.plan-card.featured {
  border-color: var(--blue);
  border-width: 2px;
  background: var(--graphite);
  color: #fff;
  transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.plan-card.featured .plan-name { color: #7FD6FF; }

.plan-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  margin: 12px 0 2px;
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.plan-card.featured .plan-price small { color: #B7BAC1; }

.plan-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  margin-bottom: 22px;
  min-height: 40px;
}
.plan-card.featured .plan-desc { color: #C7CAD1; }

.plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-grow: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: none; }
.plan-card.featured .plan-features li { border-top: 1px solid #383C43; }
.plan-features li svg { width: 16px; height: 16px; stroke: var(--blue); flex-shrink: 0; margin-top: 2px; }
.plan-features li.inherit { color: var(--ink-soft); font-style: italic; }
.plan-card.featured .plan-features li.inherit { color: #9AA0A8; }

.plan-cta { width: 100%; justify-content: center; }

@media (max-width: 940px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
}

/* =========================================================
   EXPRESS BANNER + INSTRUCCIONES
   ========================================================= */

.express-banner {
  background: var(--graphite);
  color: #fff;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.express-banner .eyebrow { color: #7FD6FF; }
.express-banner .eyebrow::before { background: var(--blue); }
.express-banner h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; max-width: 22ch; }
.express-banner p { color: #C7CAD1; margin-top: 12px; max-width: 48ch; font-size: 15px; }
.express-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.express-meta .item { text-align: left; }
.express-meta .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--blue); }
.express-meta .lbl { font-size: 12.5px; color: #9AA0A8; margin-top: 2px; }

.express-includes {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #383C43;
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
}
.express-includes span {
  font-size: 13px;
  color: #E9EAEC;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.express-includes svg { width: 14px; height: 14px; stroke: var(--blue); }

.instructions-card {
  background: var(--blue-tint);
  border: 1px solid #B7E4FF;
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 28px;
}
.instructions-card h2 { font-size: 16.5px; margin-bottom: 14px; }
.instructions-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.instructions-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink); }
.instructions-list .n {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.instructions-note { margin-top: 14px; font-size: 13px; color: var(--blue-deep); font-weight: 600; }

/* =========================================================
   FORMULARIO EXPRESS — secciones, campos especiales
   ========================================================= */

.form-section { margin-bottom: 12px; }
.form-section + .form-section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }

.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-section-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.form-section-head h3 { font-size: 17px; }
.form-section-head p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.char-counter { font-size: 12px; color: var(--ink-soft); text-align: right; margin-top: 4px; font-family: var(--font-mono); }

/* Checkbox estilizado */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}
.checkbox-row span { line-height: 1.4; }

/* Carga de archivos (visual, sin backend por ahora) */
.file-upload-box {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.file-upload-box:hover { border-color: var(--blue); background: var(--blue-tint); }
.file-upload-box input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-upload-box .icon { width: 26px; height: 26px; stroke: var(--blue-deep); margin: 0 auto 8px; }
.file-upload-box .txt { font-size: 13px; color: var(--ink-soft); }
.file-upload-box .txt strong { color: var(--blue-deep); }
.file-upload-box .filename { font-size: 12.5px; color: var(--ink); margin-top: 8px; font-weight: 600; display: none; }
.file-upload-box.has-file .filename { display: block; }

.photo-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--paper);
}
.photo-block .photo-label { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

@media (max-width: 700px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.mini-upload { margin-top: 10px; }
.mini-upload .file-upload-box { padding: 12px; }
.mini-upload .txt { font-size: 12px; }

/* Selector de color */
.color-picker { margin-top: 6px; }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  outline-offset: 2px;
}
.swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.color-hex-row { display: flex; align-items: center; gap: 10px; }
.color-hex-row input[type="text"] { max-width: 160px; font-family: var(--font-mono); }
.color-preview { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }

/* Bloque de confirmación final */
.confirm-block {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 26px 24px;
  margin-top: 8px;
}
.disclaimer-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 4px;
}

/* =========================================================
   PÁGINA DE PAGO
   ========================================================= */

.bank-card {
  background: var(--graphite);
  color: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.bank-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(18, 169, 255, 0.16);
}
.bank-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #7FD6FF; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #383C43; position: relative; z-index: 1; }
.bank-row:first-of-type { border-top: none; margin-top: 16px; }
.bank-row .k { font-size: 13px; color: #9AA0A8; }
.bank-row .v { font-size: 14.5px; font-weight: 600; color: #fff; font-family: var(--font-mono); }

.order-summary { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--paper); }
.order-summary .row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.order-summary .row:first-child { border-top: none; }
.order-summary .row.total { font-weight: 700; font-size: 16px; color: var(--blue-deep); }

.step-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--blue-tint); color: var(--blue-deep);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* =========================================================
   PÁGINA DE BIENVENIDA
   ========================================================= */

.welcome-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.welcome-check {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.welcome-check svg { width: 32px; height: 32px; stroke: #fff; }
.welcome-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.welcome-hero p.lead { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.benefit-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
}
.benefit-item .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--blue); }
.benefit-item p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.benefit-item .src { font-size: 11px; color: #A9A49E; margin-top: 8px; display: block; }

@media (max-width: 780px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

.welcome-next {
  background: var(--graphite);
  color: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  margin-top: 44px;
  text-align: center;
}
.welcome-next p { color: #C7CAD1; font-size: 14.5px; }
.welcome-next .exec-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 12px; color: #7FD6FF; text-transform: uppercase; letter-spacing: .05em; }

.welcome-signature {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}
.welcome-signature span { color: var(--blue); }

/* =========================================================
   WHATSAPP FLOTANTE (decorativo)
   ========================================================= */

.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 60;
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* =========================================================
   MEGA-MENÚ DE CATEGORÍAS
   ========================================================= */

.has-mega { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 90vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 27, 43, 0.12);
  padding: 26px 28px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  z-index: 70;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu { display: grid; }
.mega-col .mega-cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.mega-col .mega-cat:hover { color: var(--blue-deep); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: 5px; }
.mega-col a.mega-sub {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.mega-col a.mega-sub:hover { color: var(--blue); }

@media (max-width: 860px) {
  .mega-menu { display: none !important; }
}

/* =========================================================
   BUSCADOR EN HEADER
   ========================================================= */

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  flex: 1;
  max-width: 340px;
  margin: 0 20px;
}
.nav-search svg { width: 16px; height: 16px; stroke: var(--ink-soft); flex-shrink: 0; }
.nav-search input {
  border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink);
  width: 100%;
}
@media (max-width: 1080px) { .nav-search { display: none; } }

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-cart svg { width: 18px; height: 18px; stroke: var(--ink); }
.nav-cart .count {
  position: absolute; top: -6px; right: -6px;
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   GRILLA Y TARJETA DE PRODUCTO
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 24px rgba(15,27,43,0.08); }

.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 10px;
}

.badge-oferta {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}
.badge-destacado {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--graphite);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.product-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.product-price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.price-old { font-size: 12.5px; color: var(--ink-soft); text-decoration: line-through; }
.stock-tag { font-size: 11px; margin-top: 2px; }
.stock-tag.ok { color: #1E7A3D; }
.stock-tag.low { color: var(--accent); }
.stock-tag.out { color: #A32626; }

/* =========================================================
   FILTROS DE CATEGORÍA
   ========================================================= */

.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filters-panel { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--paper); position: sticky; top: 96px; }
.filters-panel h3 { font-size: 13px; margin-bottom: 12px; }
.filter-group { margin-bottom: 20px; }
.filter-group legend { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.filter-option input { accent-color: var(--blue); }
@media (max-width: 900px) { .category-layout { grid-template-columns: 1fr; } .filters-panel { position: static; } }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.results-count { font-size: 13.5px; color: var(--ink-soft); }

/* =========================================================
   PÁGINA DE PRODUCTO
   ========================================================= */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { aspect-ratio: 1/1; background: var(--bg-alt); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--blue-deep); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 20px; }
.product-info .eyebrow { margin-bottom: 10px; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.product-info .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.product-info .price-now { font-size: 30px; }
.product-info .price-old { font-size: 15px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty-control button { background: none; border: none; width: 38px; height: 38px; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty-control input { width: 44px; text-align: center; border: none; font-size: 15px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* =========================================================
   CARRITO
   ========================================================= */

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: none; }
.cart-item .thumb { width: 72px; height: 72px; border-radius: 8px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; color: var(--blue-deep); text-align: center; padding: 4px; }
.cart-item .name { font-size: 14px; font-weight: 600; }
.cart-item .sku { font-size: 11.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.cart-item .price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.cart-item .remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; } }
