/* ══════════════════════════════════════════════════════
   ESCANMEX — Complete Design System
   Paleta Corporativa EscanMex 2024
══════════════════════════════════════════════════════ */

:root {
  /* ── Paleta Corporativa EscanMex ── */
  --navy:     #243B63;   /* Azul Oscuro Principal - fondos, títulos, premium */
  --navy2:    #1e3357;   /* Azul oscuro variante */
  --navy3:    #172848;   /* Azul más profundo */
  --blue:     #3FA0D6;   /* Azul Claro - highlights, tecnología, detalles modernos */
  --blue2:    #3F6FB2;   /* Azul Medio Tecnológico - gradientes, iconos, botones secundarios */
  --blue-lt:  #7ec8e8;   /* Azul claro tint */
  --orange:   #F1871F;   /* Naranja Principal - CTAs, keywords, resaltados, conversión */
  --orange2:  #d9721a;   /* Naranja oscuro hover */
  --orange-lt:#F5B32E;   /* Amarillo/Naranja Claro - gradientes, atención */
  --red:      var(--orange);   /* Alias → naranja corporativo (fuera de paleta) */
  --red2:     var(--orange2);
  /* Neutrals */
  --black:    #000000;
  --dark:     #1a2d4a;   /* Oscuro base azul corporativo */
  --dark2:    #152338;
  --dark3:    #1e3357;
  --dark4:    #243B63;
  --white:    #ffffff;
  --gray1:    #f4f7fb;
  --gray2:    #e2e8f0;
  --gray3:    #94a3b8;
  --gray4:    #475569;
  --gray5:    #1e293b;
  --text:     #1e293b;
  /* Aliases */
  --teal2:    var(--blue);
  --radius:   10px;
  --radius-lg: 16px;
  --shadow:   0 8px 40px rgba(36,59,99,.15);
  --shadow-lg: 0 20px 60px rgba(36,59,99,.22);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Gradiente Oficial EscanMex */
  --grad-brand: linear-gradient(135deg, #243B63 0%, #3F6FB2 55%, #3FA0D6 100%);
  --grad-orange: linear-gradient(135deg, #F1871F 0%, #F5B32E 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─────────────────────────────────────────────────────
   TOP ANNOUNCEMENT BAR
───────────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: var(--white);
  padding: .5rem 1.5rem;
  font-size: .8rem;
  position: relative;
  z-index: 200;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.topbar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
.topbar-text { color: #ccc; }
.topbar-text strong { color: var(--white); }
.topbar-cta {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  transition: border-color .2s;
  white-space: nowrap;
}
.topbar-cta:hover { border-color: var(--white); }

/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s, transform .35s;
  background: transparent;
  transform: translateY(-100%);
}
.site-header.header-dark {
  background: transparent;
}
.site-header.header-scrolled {
  transform: translateY(0);
  background: rgba(10,15,30,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header.header-light {
  transform: translateY(0) !important;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gray2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-symbol { font-size: 1.5rem; line-height: 1; }
.logo-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
  font-style: normal;
}
.logo-wordmark em {
  color: var(--orange);
  font-style: normal;
}
.logo-wordmark--sm { font-size: 1.1rem; }

/* header light mode wordmark */
.header-light .logo-wordmark { color: var(--dark); }

/* Site nav — always centered (middle grid column) */
.site-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  justify-content: center;
}
.site-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.header-light .site-nav a { color: var(--gray4); }
.header-light .site-nav a:hover { color: var(--text); background: var(--gray1); }

/* Header action buttons — right-aligned */
.header-actions { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }

.btn-header-ghost {
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-header-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}
.header-light .btn-header-ghost {
  color: var(--text);
  border-color: var(--gray2);
}
.header-light .btn-header-ghost:hover {
  border-color: var(--gray4);
  background: var(--gray1);
}

.btn-header-solid {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: .48rem 1.15rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.btn-header-solid:hover { background: var(--blue2); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────
   FLASH MESSAGES
───────────────────────────────────────────────────── */
.flash-container { padding: .6rem 2rem; }
.flash {
  padding: .75rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.flash--success { background: rgba(63,160,214,.13); color: var(--blue2); border-left: 4px solid var(--blue); }
.flash--warning { background: rgba(245,179,46,.13); color: var(--orange2); border-left: 4px solid var(--orange-lt); }
.flash--error   { background: rgba(241,135,31,.12); color: var(--orange2); border-left: 4px solid var(--orange); }
.flash--info    { background: rgba(63,111,178,.12); color: var(--navy); border-left: 4px solid var(--blue2); }

main { flex: 1; width: 100%; min-width: 0; overflow-x: hidden; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #ffffff;
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand p { font-size: .82rem; margin-top: .4rem; color: #ffffff; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; font-size: .83rem; }
.footer-links span { color: #ffffff; }
.footer-links a { color: #ffffff; text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #1877F2;
  color: #ffffff !important;
  padding: .4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .83rem;
  text-decoration: none !important;
  transition: background .2s;
}
.footer-fb-btn:hover { background: #1464d8; color: #ffffff !important; }
.footer-fb-btn svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   LANDING PAGE — HERO SECTION
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  background: var(--dark);
}

/* ─── VIDEO BACKGROUND ─── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: none;
  pointer-events: none;
}
/* Dark + color-tinted overlay over video */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(229,50,45,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 1.5rem 3rem;
  max-width: 780px;
}

/* Tag pills row */
.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s;
}
.pill:hover { background: rgba(255,255,255,.12); color: var(--white); }
.pill-red {
  background: rgba(241,135,31,.2);
  border-color: rgba(241,135,31,.4);
  color: var(--orange-lt);
}
.pill-red .pill-dot { background: var(--orange); }
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Headline */
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 1.3rem;
}
.hero-headline span { color: var(--orange); }

/* Subtitle */
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Hero CTA group */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 24px rgba(37,99,235,.4);
}
.btn-hero-primary:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,.5);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.btn-hero-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
}
.btn-arrow { font-size: 1rem; transition: transform .2s; }
.btn-hero-ghost:hover .btn-arrow { transform: translateX(3px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.scroll-chevron {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .6; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   SOCIAL PROOF STRIP
══════════════════════════════════════════════════════ */
.proof-strip {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 2rem;
}
.proof-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.proof-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.proof-number span { color: var(--orange); }
.proof-label {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section--dark { background: var(--grad-brand); }
.section--gray { background: var(--gray1); }

.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--dark);
}
.section--dark .section-title { color: var(--white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray3);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(229,50,45,.12);
  border: 1px solid rgba(229,50,45,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.step-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.step-body p { font-size: .92rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* ══════════════════════════════════════════════════════
   FEATURES CARDS GRID
══════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(229,50,45,.2);
}
.feat-icon {
  font-size: 2rem;
  margin-bottom: 1.1rem;
  display: block;
}
.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.feat-card p {
  font-size: .88rem;
  color: var(--gray3);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange2) 0%, var(--orange) 100%);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  color: var(--orange2);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

/* ══════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════ */
.profile-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.profile-emergency-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: .65rem 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: .82rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.profile-hero {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.profile-hero-top {
  background: var(--grad-brand);
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  flex-shrink: 0;
}
.profile-photo-placeholder {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 4px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
}
.profile-identity { color: var(--white); }
.profile-identity h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.profile-identity .dob {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  margin-top: .35rem;
}

.profile-actions {
  padding: 1.2rem 2.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray2);
  background: var(--white);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.info-card-header {
  background: var(--dark);
  color: var(--white);
  padding: .7rem 1.25rem;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.info-card-header.red  { background: var(--orange); }
.info-card-header.blue { background: var(--blue); }
.info-card-body { padding: 1.25rem; }

.info-row { display: flex; flex-direction: column; margin-bottom: 1rem; }
.info-row:last-child { margin-bottom: 0; }
.info-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: .25rem;
}
.info-value {
  font-size: .97rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}
.info-value.big    { font-size: 1.05rem; font-weight: 700; }
.info-value.danger { color: var(--orange2); font-weight: 700; font-size: 1.05rem; }
.info-value.empty  { color: var(--gray3); font-style: italic; font-size: .85rem; }

.expired-overlay {
  background: rgba(245,179,46,.1);
  border: 2px solid var(--orange-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.expired-overlay h2 { color: var(--orange2); margin-bottom: .5rem; font-size: 1.25rem; }
.expired-overlay p  { color: var(--orange2); font-size: .9rem; }

/* ══════════════════════════════════════════════════════
   BUTTONS (General)
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(241,135,31,.3);
}
.btn-primary:hover { background: var(--orange2); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(37,99,235,.3);
}
.btn-blue:hover { background: var(--blue2); }
.btn-secondary { background: var(--dark); color: var(--white); }
.btn-secondary:hover { background: var(--dark3); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--dark); color: var(--dark); }
.btn-sm  { padding: .38rem .9rem; font-size: .78rem; }
.btn-lg  { padding: .8rem 1.9rem; font-size: .97rem; }
.btn-danger { background: rgba(241,135,31,.12); color: var(--orange2); border: 1px solid rgba(241,135,31,.3); }
.btn-danger:hover { background: var(--orange); color: var(--white); }
.btn-teal { background: var(--blue2); color: var(--white); }
.btn-teal:hover { background: var(--navy); }

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-page {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card-header {
  background: var(--grad-brand);
  color: var(--white);
  padding: 2rem 2.5rem;
}
.form-card-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .3rem;
}
.form-card-header p { color: rgba(255,255,255,.5); font-size: .88rem; }
.form-body { padding: 2rem 2.5rem; }

.form-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray3);
  margin: 1.75rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray2);
}
.form-section-title:first-child { margin-top: 0; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .68rem 1rem;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-error {
  background: rgba(241,135,31,.12);
  color: var(--orange2);
  padding: .8rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--orange);
}
.form-footer {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray2);
}

/* ══════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════ */
.admin-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.admin-page h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--blue);
}
.stat-card.red-top  { border-top-color: var(--orange); }
.stat-card.navy-top { border-top-color: var(--dark); }
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: -.04em; }
.stat-label  { font-size: .72rem; font-weight: 600; color: var(--gray3); letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray2);
}
.admin-table-header h2 { font-size: 1rem; font-weight: 700; color: var(--dark); }

table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray1);
  text-align: left;
  padding: .7rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray3);
  border-bottom: 1px solid var(--gray2);
}
td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray2); font-size: .88rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray1); }

.badge {
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-active  { background: rgba(63,160,214,.13); color: var(--blue2); }
.badge-expired { background: rgba(241,135,31,.12); color: var(--orange2); }

.actions { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ─── LOGIN BOX ─── */
.login-wrap {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--gray1);
}
.login-box {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.login-box-header {
  background: var(--grad-brand);
  padding: 2rem;
  text-align: center;
}
.login-box-header .logo-symbol { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.login-box-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
}
.login-box-header p { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: .3rem; }
.login-box-body { padding: 2rem; }

/* ─── 404 ─── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  text-align: center;
  padding: 2rem;
}
.error-page h1 {
  font-size: 7rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.05em;
}
.error-page h2 { font-size: 1.5rem; margin: .5rem 0 1rem; color: var(--dark); font-weight: 800; }
.error-page p  { color: var(--gray3); margin-bottom: 1.5rem; font-size: .95rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 .75rem; height: 60px; }
  .logo-img { height: 42px; }
  .topbar { display: none; }
  /* Hero: compacto en móvil */
  .hero {
    min-height: 0 !important;
    height: 55vw;
    max-height: 55vh;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-content { padding: 100px 1rem 3rem; }
  .section { padding: 4rem 1.25rem; }
  .profile-hero-top { flex-direction: column; align-items: center; text-align: center; }
  .profile-actions { justify-content: center; }
  .profile-grid { grid-template-columns: 1fr; }
  .form-body { padding: 1.5rem 1.25rem; }
  .form-card-header { padding: 1.5rem 1.25rem; }
  table { font-size: .78rem; }
  th, td { padding: .6rem .6rem; }
  .proof-strip-inner { gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════════
   STEPS ROW (horizontal, 3 blocks)
══════════════════════════════════════════════════════ */
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.step-block {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background .2s;
}
.step-block:hover { background: rgba(255,255,255,.09); }
.step-block .step-num {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 1rem;
}
.step-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.step-block p {
  font-size: .86rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}
.step-connector {
  font-size: 1.5rem;
  color: rgba(255,255,255,.2);
  font-weight: 300;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
  .step-connector { display: none; }
}

/* ══════════════════════════════════════════════════════
   FLIP CARDS — 3D perspective flip on hover
══════════════════════════════════════════════════════ */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.flip-card {
  aspect-ratio: 16 / 9;
  height: auto;
  perspective: 1000px;
  cursor: default;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

/* Front face — ahora muestra la imagen (rotada 180° para que quede oculta al inicio y visible en hover) */
.flip-front {
  background: var(--white);
  border: 1px solid var(--gray2);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transform: rotateY(180deg);
}
.flip-front .feat-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.flip-front h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue2);
  margin-bottom: .5rem;
}
.flip-front p {
  font-size: .87rem;
  color: #000;
  line-height: 1.65;
}

/* Back face — ahora es la cara visible por defecto (imagen) */
.flip-back {
  background: var(--dark);
}
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-back-text { display: none; }

/* ══════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.contact-item-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray3);
  margin-bottom: .2rem;
}
.contact-item-value {
  font-size: .97rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: color .15s;
}
.contact-item-value:hover { color: var(--orange); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.contact-form-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 0; }

/* ══════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
══════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: .75rem 1.2rem .75rem .85rem;
  box-shadow: 0 4px 20px rgba(241,135,31,.35);
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s, padding .3s;
  overflow: hidden;
  white-space: nowrap;
}
.wa-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.wa-label {
  max-width: 100px;
  transition: max-width .3s, opacity .3s;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
@media (max-width: 480px) {
  .wa-label { display: none; }
  .wa-float { padding: .75rem; border-radius: 50%; }
}

/* ══════════════════════════════════════════════════════
   DEVICES GRID
══════════════════════════════════════════════════════ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}
.device-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  transition: background .2s, transform .2s;
}
.device-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-3px);
}
.device-icon { font-size: 2.4rem; margin-bottom: 1rem; display: block; }
.device-name { color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.device-desc { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.5; }

/* ══════════════════════════════════════════════════════
   PROFILE — FLOATING ACTION BUTTONS
══════════════════════════════════════════════════════ */
.profile-float-btns {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.float-btn svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

.float-btn-call {
  background: var(--grad-brand);
}
.float-btn-wa {
  background: var(--grad-orange);
}

@media (max-width: 480px) {
  .float-btn span { display: none; }
  .float-btn {
    padding: .85rem;
    border-radius: 50%;
    justify-content: center;
  }
  .float-btn svg { width: 1.5rem; height: 1.5rem; }
}

/* ══════════════════════════════════════════════════════
   PROFILE — FLOATING BUTTONS: CONTACT PICKER POPUP
══════════════════════════════════════════════════════ */
.float-popup {
  position: fixed;
  right: 1.25rem;
  z-index: 999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
  min-width: 240px;
  overflow: hidden;
  animation: popupIn .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.float-popup-title {
  padding: .75rem 1rem .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid #f1f1f1;
}
.float-popup-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.float-popup-item:last-child { border-bottom: none; }
.float-popup-item:hover,
.float-popup-item:active { background: #f8fafc; }
.fpi-name {
  font-size: .88rem;
  font-weight: 700;
  color: #111827;
}
.fpi-tel {
  font-size: .82rem;
  color: #6b7280;
}

/* Hace que el botón flotante sea <button> compatible */
.float-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ══════════════════════════════════════════════════════
   PROFILE — CONTACT PERSON CARDS
══════════════════════════════════════════════════════ */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
}
.contact-person-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid #f1f1f1;
  transition: background .15s;
}
.contact-person-card:last-child { border-bottom: none; }
.contact-person-card:hover { background: #fafafa; }

/* Avatar circle with initial */
.cpc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Info column */
.cpc-info {
  flex: 1;
  min-width: 0;
}
.cpc-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: .1rem;
}
.cpc-name {
  font-size: .97rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpc-tel {
  font-size: .8rem;
  color: #6b7280;
  margin-top: .1rem;
}

/* Action buttons */
.cpc-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.cpc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.cpc-btn:hover { transform: scale(1.1); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.cpc-btn svg { width: 17px; height: 17px; }

.cpc-btn-call {
  background: rgba(63,111,178,.1);
  color: var(--blue2);
}
.cpc-btn-call:hover { background: rgba(63,111,178,.12); }

.cpc-btn-wa {
  background: rgba(63,160,214,.1);
  color: var(--blue2);
}
.cpc-btn-wa:hover { background: rgba(63,160,214,.18); }

/* ══════════════════════════════════════════════════════
   SHOP & CART — ESCANMEX Brand
══════════════════════════════════════════════════════ */

/* ─── Nav Cart Badge ─── */
.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  padding: .3rem .8rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.cart-badge:hover { background: var(--orange2); }
.cart-badge-num {
  background: #fff;
  color: var(--orange);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
}

/* ─── Shop Page ─── */
.shop-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.shop-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.shop-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .75rem;
}
.shop-hero p { color: var(--gray4); font-size: 1.1rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray2);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--img-pos-x, 50%) var(--img-pos-y, 50%);
  padding: 8px;
  background: #fff;
}
.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-promo-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.product-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}
.product-card-desc {
  font-size: .9rem;
  color: var(--gray4);
  margin-bottom: 1rem;
  flex: 1;
}
.product-card-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}
.product-card-price span {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray3);
}
.product-card-stock {
  font-size: .8rem;
  color: var(--gray3);
  margin-bottom: 1rem;
}
.product-card-stock.low { color: var(--orange); font-weight: 600; }
.product-card-stock.out { color: var(--orange); font-weight: 700; }

/* ─── Product preview in landing ─── */
.compra-section { background: var(--grad-brand); }
.compra-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.compra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}
.compra-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background .2s, transform .2s;
}
.compra-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
}
.compra-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.compra-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.compra-card:hover .compra-card-img img {
  transform: scale(1.04);
}
.compra-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.compra-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
}
.compra-card-promo {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.compra-card-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1a2d4a;
  margin-bottom: .3rem;
}
.compra-card-desc {
  font-size: .85rem;
  color: #fff;
}
.compra-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* ─── Cart Page ─── */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.cart-page h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 2rem;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.cart-table thead { background: var(--navy); color: #fff; }
.cart-table th { padding: 1rem 1.25rem; text-align: left; font-weight: 700; font-size: .88rem; }
.cart-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray2); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-qty-input {
  width: 60px;
  padding: .35rem .5rem;
  border: 1.5px solid var(--gray2);
  border-radius: 6px;
  text-align: center;
  font-size: .95rem;
}
.cart-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: 1rem;
  color: var(--gray4);
  border-bottom: 1px solid var(--gray2);
}
.cart-summary-row:last-child { border-bottom: none; }
.cart-summary-total {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
}
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray3);
}
.cart-empty-icon { font-size: 4rem; margin-bottom: 1rem; }

/* ─── Checkout success / cancel ─── */
.checkout-result {
  max-width: 560px;
  margin: 4rem auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}
.checkout-result-icon { font-size: 4rem; margin-bottom: 1rem; }
.checkout-result h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .75rem;
}
.checkout-result p { color: var(--gray4); margin-bottom: 1.5rem; }
.order-detail-card {
  background: var(--gray1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px solid var(--gray2);
}
.order-detail-row:last-child { border-bottom: none; }

/* ─── Admin Products ─── */
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}
.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.product-admin-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.product-admin-card-head {
  padding: 1rem 1.25rem;
  background: var(--gray1);
  border-bottom: 1px solid var(--gray2);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.product-admin-card-body { padding: 1rem 1.25rem; }
.product-admin-card-name { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.product-admin-card-price { font-size: 1.2rem; font-weight: 900; color: var(--blue2); }
.product-admin-card-stock { font-size: .82rem; color: var(--gray3); }
.product-admin-card-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.badge-inactive {
  background: var(--gray3);
  color: #fff;
  border-radius: 12px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 700;
}

/* ─── Admin Orders ─── */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  background: var(--navy);
  color: #fff;
  padding: .85rem 1rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 700;
}
.orders-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--gray2);
  font-size: .88rem;
  vertical-align: middle;
}
.orders-table tr:hover { background: var(--gray1); }
.estado-pagado { background: rgba(63,160,214,.13); color: var(--blue2); border-radius: 12px; padding: .15rem .7rem; font-weight: 700; font-size: .78rem; }
.estado-enviado { background: rgba(63,111,178,.12); color: var(--navy); border-radius: 12px; padding: .15rem .7rem; font-weight: 700; font-size: .78rem; }
.estado-cancelado { background: rgba(241,135,31,.12); color: var(--orange2); border-radius: 12px; padding: .15rem .7rem; font-weight: 700; font-size: .78rem; }

/* ─── Audio player ─── */
.audio-section {
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
.audio-section-icon { font-size: 1.8rem; flex-shrink: 0; }
.audio-section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: .3rem; }
.audio-section audio { width: 100%; margin-top: .3rem; filter: invert(1); }

/* ─── Admin Nav Tabs ─── */
.admin-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray2);
  flex-wrap: wrap;
}
.admin-tab {
  padding: .6rem 1.25rem;
  font-weight: 600;
  color: var(--gray4);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── Admin Stats (updated colors) ─── */
.stat-card.navy-top { border-top: 3px solid var(--navy); }
.btn-teal { background: var(--blue); color: #fff; }
.btn-teal:hover { background: var(--blue2); }

/* ─── Logo color update ─── */
.logo-wordmark em { color: var(--orange); font-style: normal; }
.logo-wordmark--sm em { color: var(--orange); }

/* ═══════════════════════════════════════════════════════
   REPORTES GENERALES — Admin Reports Section
═══════════════════════════════════════════════════════ */
.reports-section {
  margin-top: 2.5rem;
}
.reports-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.reports-date-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  background: var(--gray1);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: .85rem 1.2rem;
}
.reports-date-bar label { font-size: .82rem; color: var(--gray4); font-weight: 600; margin-right: .4rem; }
.date-preset-btn {
  padding: .38rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--gray2);
  background: var(--white);
  color: var(--gray4);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.date-preset-btn:hover, .date-preset-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.date-custom-inputs {
  display: none;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.date-custom-inputs.show { display: flex; }
.date-custom-inputs input[type="date"] {
  padding: .35rem .7rem;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text);
}
.date-custom-inputs button {
  padding: .38rem .8rem;
  background: var(--blue2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.reports-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.report-kpi {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(36,59,99,.07);
  transition: transform .15s;
}
.report-kpi:hover { transform: translateY(-2px); }
.report-kpi-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.report-kpi-label {
  font-size: .78rem;
  color: var(--gray3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .4rem;
}
.report-kpi.orange-accent .report-kpi-value { color: var(--orange); }
.report-kpi.blue-accent .report-kpi-value { color: var(--blue2); }
.report-kpi.green-accent .report-kpi-value { color: var(--blue2); }

.reports-chart-wrap {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(36,59,99,.07);
}
.reports-chart-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chart-canvas-wrap { position: relative; height: 240px; }

/* Renewal table */
.renewal-panel {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(36,59,99,.07);
  margin-top: 1rem;
}
.renewal-panel-header {
  background: var(--grad-brand);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.renewal-panel-header h3 { font-size: 1rem; font-weight: 700; }
.renewal-panel-body { padding: 0; }
.renewal-table { width: 100%; border-collapse: collapse; }
.renewal-table th {
  background: var(--gray1);
  color: var(--navy);
  padding: .7rem 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.renewal-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--gray2);
  font-size: .88rem;
}
.renewal-table tr:last-child td { border-bottom: none; }
.renewal-table tr:hover { background: var(--gray1); }
.days-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: .8rem;
}
.days-badge.urgent   { background: rgba(241,135,31,.12); color: var(--orange2); }
.days-badge.warning  { background: rgba(245,179,46,.13); color: var(--orange2); }
.days-badge.ok       { background: rgba(63,160,214,.13); color: var(--blue2); }

.btn-renew-toggle {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background .18s;
}
.btn-renew-toggle:hover { background: var(--orange2); }

/* ═══════════════════════════════════════════════════════
   AUDIO / FOTO DRAG & DROP — Edit Profile
═══════════════════════════════════════════════════════ */
.upload-dropzone {
  border: 2.5px dashed var(--blue2);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: linear-gradient(135deg, rgba(63,111,178,.04), rgba(63,160,214,.04));
  position: relative;
}
.upload-dropzone:hover, .upload-dropzone.drag-over {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(241,135,31,.06), rgba(245,179,46,.06));
}
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone-icon { font-size: 2rem; margin-bottom: .4rem; }
.dropzone-label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.dropzone-sublabel { font-size: .78rem; color: var(--gray3); margin-top: .2rem; }
.dropzone-filename {
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue2);
  display: none;
}

.audio-recorder-wrap {
  margin-top: .75rem;
  border: 1.5px solid var(--gray2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--gray1);
}
.audio-recorder-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.recorder-controls { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rec-btn {
  padding: .45rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: all .18s;
}
.rec-btn-start { background: var(--orange); color: var(--white); }
.rec-btn-start:hover { background: var(--orange2); }
.rec-btn-stop  { background: var(--gray4); color: #fff; display: none; }
.rec-btn-stop.show { display: flex; }
.rec-btn-start.hidden { display: none; }
.rec-status {
  font-size: .8rem;
  color: var(--gray4);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.rec-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 1s ease infinite;
  display: none;
}
.rec-dot.show { display: block; }
.rec-audio-preview { width: 100%; margin-top: .75rem; border-radius: 8px; display: none; }
.rec-audio-preview.show { display: block; }

/* WhatsApp button brand colors */
.btn-whatsapp { background: var(--orange) !important; color: #fff !important; }
.btn-whatsapp:hover { background: var(--orange2) !important; }

/* ── Password toggle eye ── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input {
  flex: 1;
  padding-right: 2.8rem !important;
}
.pw-eye {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  color: var(--gray3);
  transition: color .15s;
  user-select: none;
}
.pw-eye:hover { color: var(--navy); }

/* ══════════════════════════════════════════════════════
   TESTIMONIOS — CARRUSEL
══════════════════════════════════════════════════════ */
.testi-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0 3.5rem;
}
.testi-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testi-slide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-width: 100%;
  padding: .5rem 0 1rem;
}
@media (max-width: 900px) {
  .testi-slide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testi-slide { grid-template-columns: 1fr; }
  .testi-carousel-wrap { padding: 0 2.5rem; }
}
.testi-card {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(36,59,99,.08);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.testi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(36,59,99,.13);
}
.testi-stars { color: var(--orange); font-size: 1rem; }
.testi-quote {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}
.testi-author {
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
}

/* Arrows */
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1.5px solid var(--gray2);
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(36,59,99,.12);
  transition: background .18s, border-color .18s, transform .18s;
  z-index: 10;
}
.testi-arrow:hover {
  background: var(--blue2);
  border-color: var(--blue2);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.testi-arrow--prev { left: 0; }
.testi-arrow--next { right: 0; }

/* Dots */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.75rem;
}
.testi-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray2);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.testi-dot.active {
  background: var(--blue2);
  transform: scale(1.3);
}

/* ── Infinite Testimonial Marquee ─────────────────────── */
@keyframes testi-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testi-marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testi-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testi-scroll 40s linear infinite;
  padding: .5rem 0 1rem;
}

.testi-marquee-track:hover {
  animation-play-state: paused;
}

.testi-marquee-track .testi-card {
  width: 320px;
  flex-shrink: 0;
}

/* ── Hero: Compra Aquí button ─────────────────────────── */
.btn-hero-compra {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: -.01em;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 28px rgba(234,88,12,.45);
}
.btn-hero-compra:hover {
  background: #c2500a;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 36px rgba(234,88,12,.55);
}

/* Non-landing pages: push content below fixed header */
body:not(.landing) main {
  padding-top: 80px;
}