/* ══════════════════════════════════════════
   CatapultaPay — styles.css
   Paleta oscura fintech premium
   ══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --color-bg:        #070E1C;
  --color-surface:   #0C1628;
  --color-surface2:  #111F35;
  --color-teal:      #0aab90;
  --color-sky:       #45C0E8;
  --color-gold:      #E8C97A;
  --color-text:      #D8E8F5;
  --color-muted:     #7089A3; /* AA: 5.3:1 sobre --color-bg, 5.0:1 sobre --color-surface */
  --color-white:     #F2F8FF;
  --color-border:    rgba(14, 207, 173, 0.12);
  --color-borderW:   rgba(255, 255, 255, 0.06);
  --grad-primary:    linear-gradient(130deg, #0ecfacae 0%, #45C0E8 100%);
  --grad-gold:       linear-gradient(130deg, #E8C97A 0%, #f5dfa0 100%);

  --font-display: 'Times New Roman', Times, Georgia, serif;
  --font-body:    Arial, Helvetica, sans-serif;

  --nav-h: 76px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.65s ease;

  --shadow-teal: 0 8px 40px rgba(14, 207, 173, 0.15);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

select,
input,
textarea {
  font-family: var(--font-body);
}

/* ── UTILITY CLASSES ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
}

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.85rem 1.4rem;
  background: var(--color-teal);
  color: #07140f;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-desc {
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── SCROLL REVEAL ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: var(--grad-primary);
  color: #070E1C;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-borderW);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(14, 207, 173, 0.06);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--color-teal);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-teal);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-outline:hover {
  background: var(--grad-primary);
  color: #070E1C;
  border-color: transparent;
}

.btn-outline svg {
  width: 14px;
  height: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── NAVBAR ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

#nav.stuck, #nav.menu-open {
  background: rgba(7, 14, 28, 0.95);
  box-shadow: 0 1px 0 var(--color-borderW);
}

@media (min-width: 769px) {
  #nav.stuck {
    background: rgba(7, 14, 28, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.nlinks {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-teal);
  background: rgba(14, 207, 173, 0.07);
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  border: 1px solid var(--color-borderW);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nav-hamburger:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.nav-hamburger svg {
  width: 20px;
  height: 20px;
}

/* Control de íconos hamburguesa via clase — no inline style */
.nav-hamburger .icon-close { display: none; }
.nav-hamburger.is-open .icon-menu  { display: none; }
.nav-hamburger.is-open .icon-close { display: block; }

/* Mobile menu */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.55);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  left: auto;
  bottom: 0;
  height: calc(100dvh - var(--nav-h));
  width: min(320px, 82vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-borderW);
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.35);
  padding: 0 1.3rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 998;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(.16,1,.3,1), transform 0.3s cubic-bezier(.16,1,.3,1), filter 0.26s cubic-bezier(.16,1,.3,1), visibility 0s linear 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(.16,1,.3,1), transform 0.3s cubic-bezier(.16,1,.3,1), filter 0.26s cubic-bezier(.16,1,.3,1), visibility 0s linear 0s;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mobile-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(14, 207, 173, 0.08);
  transition: background 0.15s ease;
}

.mobile-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--color-teal);
  background: rgba(14, 207, 173, 0.07);
  border-color: rgba(14, 207, 173, 0.15);
  transform: translateX(4px);
}

.mobile-link:hover .mobile-link-icon,
.mobile-link:active .mobile-link-icon {
  background: rgba(14, 207, 173, 0.16);
}

.mobile-link:hover svg,
.mobile-link:active svg {
  color: var(--color-teal);
}

.mobile-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.mobile-menu-divider {
  padding-top: 1.3rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--color-borderW);
}

.mobile-menu-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
}

.mobile-prefs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.mobile-lang-toggle {
  width: 100%;
  height: 44px;
  justify-content: center;
}

.mobile-lang-toggle .lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 5% 6rem;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-copy h1 em {
  font-style: italic;
}

.hero-desc {
  color: var(--color-text);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-borderW);
}

.trust-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(14, 207, 173, 0.12);
  color: var(--color-teal);
}

.trust-check svg {
  width: 14px;
  height: 14px;
}

.trust-text {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 500;
}

.hero-card-wrap {
  perspective: 900px;
}

/* ── MARCAS ── */
.brand-strip {
  padding: 2.4rem 0;
  border-top: 1px solid var(--color-borderW);
  border-bottom: 1px solid var(--color-borderW);
}

.brand-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.4rem 2.6rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  height: 24px;
  max-width: 120px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-muted);
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease, color 0.25s ease;
}

.brand-mark:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--color-text);
}

.brand-sep {
  width: 1px;
  height: 26px;
  background: var(--color-borderW);
}

@media (max-width: 640px) {
  .brand-sep { display: none; }
  .brand-strip-row { gap: 1.6rem 1.8rem; }
}

/* ── NOSOTROS ── */
#about {
  padding: 110px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* ── VIDEO en sección Nosotros ── */
.about-video-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-borderW);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

@media (hover: hover) {
  .about-image-wrap:hover .about-video-wrap {
    border-color: rgba(10, 171, 144, 0.3);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(10, 171, 144, 0.12);
  }
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  background: var(--color-surface2);
  contain: strict;
}

@media (hover: hover) {
  .about-image-wrap:hover .about-video {
    transform: scale(1.03);
  }
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 14, 28, 0.72) 0%,
    rgba(7, 14, 28, 0.08) 40%,
    transparent 65%
  );
  pointer-events: none;
}

.about-video-scanline { display: none; }

/* Esquinas decorativas tipo "cámara" */
.about-video-wrap::before,
.about-video-wrap::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(10, 171, 144, 0.55);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.about-video-wrap::before {
  top: 14px;
  left: 14px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.about-video-wrap::after {
  bottom: 14px;
  right: 14px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.about-image-wrap:hover .about-video-wrap::before,
.about-image-wrap:hover .about-video-wrap::after {
  opacity: 1;
}

/* Light mode */
[data-theme="light"] .about-video-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 15, 35, 0.65) 0%,
    rgba(5, 15, 35, 0.04) 35%,
    transparent 55%
  );
}

[data-theme="light"] .about-video-wrap {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-image-wrap:hover .about-video-wrap {
  border-color: rgba(10, 171, 144, 0.3);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(10, 171, 144, 0.12);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-video-wrap { height: 380px; }
}
@media (max-width: 768px) {
  .about-video-wrap { height: 300px; }
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.2rem;
  background: var(--grad-primary);
  color: #070E1C;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(14, 207, 173, 0.3);
}

.about-badge svg {
  width: 15px;
  height: 15px;
}

.about-desc {
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Feature cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--color-teal);
  transform: translateX(6px);
  background: var(--color-surface2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(14, 207, 173, 0.1);
  color: var(--color-teal);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.feature-text p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── STATS ── */
#stats {
  padding: 70px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-borderW);
  border-bottom: 1px solid var(--color-borderW);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-borderW);
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--color-teal);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 400;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ── TERMINAL SIMULADOR ── */
#terminal {
  padding: 110px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-borderW);
  border-bottom: 1px solid var(--color-borderW);
  position: relative;
  overflow: hidden;
}
#terminal::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14,207,173,0.05) 0%, transparent 68%);
  pointer-events: none;
}
@media (max-width: 768px) {
  #terminal { padding: 70px 5%; }
}

/* ── Terminal Simulator — dispositivo, teclado y ticket ── */
.pos-outer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.pos-scene {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.pos-device {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pos-printer-top {
  width: 154px;
  height: 26px;
  background: linear-gradient(180deg, #212538 0%, #1c2030 100%);
  border-radius: 6px 6px 0 0;
  border: 1.5px solid #2a2f4a;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.3);
}
.printer-slot { width: 72px; height: 3px; background: #0a0c14; border-radius: 2px; }
.printer-led {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0aab90;
  box-shadow: 0 0 6px #0aab90;
  transition: all 0.2s;
}
.printer-led.blink { animation: blinkLed 0.25s ease-in-out infinite; }
@keyframes blinkLed { 0%,100%{opacity:1} 50%{opacity:0.15} }

.pos-body {
  width: 172px;
  background: linear-gradient(160deg, #1e2235 0%, #181c2e 100%);
  border: 1.5px solid #2a2f4a;
  border-radius: 0 0 18px 18px;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 28px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(10,171,144,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.pos-screen-wrap {
  background: #0a0c18;
  border-radius: 7px;
  border: 1px solid #151828;
  height: 242px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}
.pos-topbar {
  background: #070910;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.topbar-brand { font-size: 8px; font-weight: 600; color: #0aab90; letter-spacing: 1.4px; text-transform: uppercase; }
.topbar-time { font-size: 8px; color: #3a4560; }
.pos-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 8px;
  gap: 0;
}
.screen-amount-display {
  width: 100%;
  background: rgba(10,171,144,0.04);
  border: 1px solid rgba(10,171,144,0.12);
  border-radius: 5px;
  padding: 4px 8px;
  margin-bottom: 3px;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.screen-entry-label { font-size: 8px; color: #4a5870; text-transform: uppercase; letter-spacing: 0.5px; align-self: flex-start; }
.screen-entry-value {
  font-size: clamp(12px, 4.5vw, 22px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5px;
  transition: all 0.1s;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  text-align: right;
  width: 100%;
}
.screen-entry-value.has-value { color: #0aab90; }
.screen-entry-cursor {
  display: inline-block;
  width: 2px; height: 22px;
  background: #0aab90;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }
.screen-method-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #45C0E8;
  background: rgba(69,192,232,0.08);
  border-radius: 3px;
  padding: 2px 5px;
  align-self: flex-start;
  margin-bottom: 3px;
}
.screen-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
}
.skey {
  background: #151828;
  border: 1px solid #202438;
  border-radius: 3px;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 500;
  color: #8090b0;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s;
  user-select: none;
  -webkit-user-select: none;
}
.skey:hover { background: #202438; color: #a0b0d0; }
.skey:active { transform: scale(0.88); background: #2a2f4a; }
.skey.skey-ok {
  color: #070E1C !important;
  background: #0aab90 !important;
  border-color: #0aab90 !important;
  font-weight: 700;
  font-size: 9px;
}
.skey.skey-ok:hover {
  opacity: 0.88;
  box-shadow: 0 2px 8px rgba(10,171,144,0.5);
}
.skey.skey-del {
  color: #fff !important;
  background: #c0392b !important;
  border-color: #c0392b !important;
  font-weight: 700;
  font-size: 9px;
}
.skey.skey-del:hover {
  background: #a5291e !important;
}

.pos-reader-strip {
  background: #151828;
  border-radius: 5px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #202438;
}
.reader-track {
  flex: 1; height: 3px;
  background: #0a0c14;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.reader-glow {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, #0aab90, transparent);
}
.reader-glow.active { animation: readerSwipe 0.55s ease-in-out; }
@keyframes readerSwipe { 0%{left:-100%} 100%{left:100%} }
.reader-tag { font-size: 7px; color: #2a3550; white-space: nowrap; }

.pos-status-row { display: flex; justify-content: space-between; align-items: center; }
.pos-pci { font-size: 7px; color: #2a3550; font-weight: 500; letter-spacing: 0.5px; }
.pos-leds { display: flex; gap: 3px; }
.pos-led { width: 4px; height: 4px; border-radius: 50%; background: #1a2030; }
.pos-led.on { background: #0aab90; box-shadow: 0 0 4px #0aab90; }

/* ── Panel derecho ── */
.pos-right {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.panel-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.method-list { display: flex; flex-direction: column; gap: 6px; }
.mcard {
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.mcard:hover { border-color: rgba(69,192,232,0.3); background: var(--color-surface2); transform: translateX(2px); }
.mcard.active { border-color: #0aab90; background: rgba(10,171,144,0.05); }
.mcard-icon { font-size: 17px; color: var(--color-muted); width: 24px; text-align: center; }
.mcard.active .mcard-icon { color: #0aab90; }
.mcard-info { flex: 1; }
.mcard-name { font-size: 12px; font-weight: 600; color: var(--color-text); margin: 0; line-height: 1.2; }
.mcard-sub { font-size: 11px; color: var(--color-muted); margin: 0; }
.mcard-check { font-size: 14px; color: #0aab90; opacity: 0; transition: opacity 0.15s; }
.mcard.active .mcard-check { opacity: 1; }

.summary-box {
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.summary-key { color: var(--color-muted); }
.summary-val { font-weight: 600; color: var(--color-text); }
.summary-val.teal { color: #0aab90; }
.summary-val.big { font-size: 18px; color: var(--color-text); font-weight: 700; }
.summary-divider { height: 1px; background: var(--color-borderW); margin: 2px 0; }

.charge-btn {
  width: 100%;
  padding: 11px 12px;
  background: linear-gradient(130deg, #0aab90 0%, #0ecfad 100%);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #070E1C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(10,171,144,0.25);
}
.charge-btn:hover:not(:disabled) { opacity: 0.9; box-shadow: 0 6px 28px rgba(10,171,144,0.4); transform: translateY(-1px); }
.charge-btn:active:not(:disabled) { transform: scale(0.98); }
.charge-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.ticket-area { max-height: 0; overflow: hidden; transition: max-height 0.65s cubic-bezier(0.4,0,0.2,1); }
.ticket-area.open { max-height: 540px; }
.ticket {
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--color-text);
  margin-top: 4px;
  position: relative;
}
.ticket-stripe {
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg,#0aab90 0,#0aab90 8px,transparent 8px,transparent 12px);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.t-center { text-align: center; }
.t-brand { font-size: 13px; font-weight: 700; color: #0aab90; letter-spacing: 2px; }
.t-sub { font-size: 9px; color: var(--color-muted); margin-top: 1px; }
.t-hr { border: none; border-top: 1px dashed var(--color-borderW); margin: 8px 0; }
.t-row { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; font-size: 11px; }
.t-key { color: var(--color-muted); }
.t-val { font-weight: 500; }
.t-total { font-size: 15px; font-weight: 700; }
.t-ok { font-size: 9px; font-weight: 700; color: #0aab90; letter-spacing: 1.5px; }
.t-auth { font-size: 10px; color: #E8C97A; }
.t-footer { font-size: 9px; color: var(--color-muted); line-height: 1.7; }

.screen-processing-wrap, .screen-success-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; gap: 6px; text-align: center;
}
.spin-ring {
  width: 32px; height: 32px;
  border: 2px solid rgba(10,171,144,0.15);
  border-top-color: #0aab90;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-label { font-size: 10px; color: var(--color-muted); }
.proc-dots::after { content: ''; animation: dotdot 1.2s steps(4) infinite; }
@keyframes dotdot { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }
.ok-ring {
  width: 38px; height: 38px;
  border: 2px solid #0aab90;
  border-radius: 50%;
  background: rgba(10,171,144,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #0aab90;
  animation: popRing 0.4s cubic-bezier(.16,1,.3,1);
}
@keyframes popRing { from{transform:scale(0)} to{transform:scale(1)} }
.ok-label { font-size: 11px; font-weight: 600; color: #0aab90; letter-spacing: 0.5px; }
.ok-amount { font-size: 20px; font-weight: 500; color: #fff; }
.ok-auth { font-size: 9px; color: #E8C97A; background: rgba(232,201,122,0.1); padding: 2px 7px; border-radius: 3px; }
.ok-thanks { font-size: 9px; color: #3a4560; }
/* ── Draggable cards ── */
.drag-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-muted);
  justify-content: center;
  padding: 8px 0 4px;
  opacity: 0.7;
}
.drag-hint i { font-size: 13px; }

.draggable-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 4px 0 2px;
}

.drag-card {
  width: 118px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ecfad 0%, #0aab90 38%, #0d2247 100%);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 11px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  flex-shrink: 0;
}

.drag-card--dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

.drag-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.drag-card:active { cursor: grabbing; opacity: 0.85; }

.drag-card-chip {
  width: 18px;
  height: 13px;
  background: linear-gradient(135deg, #E8C97A, #c9a84c);
  border-radius: 3px;
}

.drag-card-mark {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255,255,255,0.75);
  stroke-linecap: round;
}
.drag-card-mark circle { fill: rgba(255,255,255,0.75); stroke: none; }

.drag-card-nfc-icon {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

.drag-card-num {
  font-size: 8px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.drag-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drag-card-brand {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.drag-card-type {
  font-size: 7px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Drop zone activa */
.pos-device.drop-active .pos-screen-wrap {
  box-shadow: 0 0 0 2px #0aab90, inset 0 0 14px rgba(10,171,144,0.2);
  transition: box-shadow 0.2s ease;
}

.pos-device.drop-active .pos-reader-strip {
  background: rgba(10,171,144,0.12);
  border-color: rgba(10,171,144,0.35);
  transition: all 0.2s ease;
}
/* ── Responsive terminal ── */
@media (max-width: 600px) {
  .pos-scene { flex-direction: column; align-items: center; gap: 20px; }
  .pos-right { max-width: 100%; min-width: 0; width: 100%; }
}

/* ── SOLUCIONES ── */
#solutions {
  padding: 110px 0;
}

/* Tab pills */
.tab-pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: all var(--transition-fast);
}

.tab-pill svg {
  width: 16px;
  height: 16px;
}

.tab-pill:hover {
  color: var(--color-text);
  border-color: var(--color-teal);
}

.tab-pill.active {
  background: var(--grad-primary);
  color: #070E1C;
  border-color: transparent;
  font-weight: 600;
}

/* Solutions panel */
.solutions-panel {
  transition: opacity 0.4s ease;
}

.solutions-panel.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.sol-card {
  padding: 1.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-base);
}

.sol-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
}

.sol-card--cta {
  border-color: var(--color-border);
  background: linear-gradient(135deg, rgba(14, 207, 173, 0.06) 0%, rgba(69, 192, 232, 0.04) 100%);
}

.sol-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.sol-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--color-teal);
}

.sol-icon svg {
  width: 20px;
  height: 20px;
}

.sol-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.sol-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.sol-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal);
  transition: gap var(--transition-fast);
}

.sol-link:hover {
  gap: 10px;
}

.sol-link svg {
  width: 14px;
  height: 14px;
}

/* ── GALERÍA ── */
#gallery {
  padding: 110px 0;
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0;
  aspect-ratio: 4/3;
}

.gallery-item--wide {
  grid-column: span 3;
  aspect-ratio: 16/6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,14,28,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-device {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.gallery-client {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}

/* ── TESTIMONIOS ── */
#testimonials {
  padding: 110px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.testi-card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: border-color var(--transition-fast), transform var(--transition-base), box-shadow var(--transition-base);
}

.testi-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: var(--color-gold);
}

.testi-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
  stroke: none;
}

.testi-aggregate {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.6rem;
  padding: .65rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
}

.testi-aggregate-score {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.testi-aggregate-stars { display: flex; gap: 2px; color: var(--color-gold); }
.testi-aggregate-stars svg { width: 15px; height: 15px; fill: var(--color-gold); stroke: none; }

.testi-aggregate-count {
  font-size: .82rem;
  color: var(--color-muted);
  padding-left: .6rem;
  border-left: 1px solid var(--color-borderW);
}

.testi-quote {
  font-size: 0.93rem;
  color: var(--color-text);
  line-height: 1.75;
  font-style: normal;
  flex: 1;
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  /* Este <footer> es el pie de la tarjeta de reseña, no el pie de página
     del sitio — sin esto hereda el fondo y el borde del selector global
     `footer` (el pie de página real), que es exactamente ese gris-azulado
     que se veía detrás del logo y el nombre. */
  background: none;
  border-top: 0;
  padding: 0;
}

/* Los logos de clientes vienen en formas muy distintas entre sí (banners
   rectangulares, sellos circulares, placas con borde propio) — meterlos
   a la fuerza en un cuadro blanco uniforme se veía como si el logo
   estuviera "cortado" dentro de una forma que no era la suya, y dejarlos
   a ancho libre hacía que el nombre de cada negocio empezara en una
   posición distinta en cada tarjeta. Ahora cada logo vive en un carril
   del mismo ancho y alto (sin fondo, sin marco, sin línea divisoria: el
   logo se ve tal cual es) y el espacio en blanco — no una línea gris —
   es lo que lo separa del nombre, para que las cuatro tarjetas queden
   alineadas igual. */
.testi-logo-wrap {
  width: 56px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Used when a client hasn't provided a logo yet — a real initial, not a stock avatar */
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  color: #070e1c;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.12);
}

.testi-footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testi-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.testi-role {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ── CÓMO FUNCIONA ── */
#how-it-works {
  padding: 110px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.step-card {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-3px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-teal);
  line-height: 1;
  margin-bottom: 1.1rem;
}

.step-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── FAQ ── */
#faq {
  padding: 110px 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--color-teal);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-white);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-teal);
  transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer.open {
  max-height: 320px;
}

.faq-answer p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--color-teal);
}

/* ── CONTACTO ── */
#contact {
  padding: 110px 0;
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-desc {
  color: var(--color-text);
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-md);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(14, 207, 173, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-teal);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
}

.contact-card a {
  font-size: 0.82rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--color-teal);
}

/* Form card */
.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Honeypot: oculto visualmente pero presente en el DOM — los bots que rellenan todo lo detectan, las personas nunca lo ven */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(14, 207, 173, 0.12);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237089A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-surface2);
  color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Custom select: replaces the native <select> UI while keeping it in the DOM
   (hidden) as the real form control for submission/validation/reset. */
.custom-select { position: relative; }

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-select-trigger:hover { border-color: var(--color-teal); }

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(14, 207, 173, 0.12);
}

.custom-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-value.is-placeholder { color: var(--color-muted); opacity: 0.7; }

.custom-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.custom-select.is-open .custom-select-chevron { transform: rotate(180deg); }

.custom-select-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface2);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  animation: custom-select-in 0.16s cubic-bezier(.16,1,.3,1) both;
}

@keyframes custom-select-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.custom-select-list [role="option"] {
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) - 4px);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-select-list [role="option"].is-focused { background: rgba(14, 207, 173, 0.12); }

.custom-select-list [role="option"][aria-selected="true"] {
  color: var(--color-teal);
  font-weight: 600;
}

.form-group.invalid .custom-select-trigger { border-color: rgba(226, 75, 74, 0.5); }

.form-required {
  color: var(--color-teal);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #e8837f;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: rgba(226, 75, 74, 0.5);
}

.form-group.invalid .form-error {
  display: block;
}

.form-consent {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
  text-align: center;
  margin-top: 1rem;
}

.form-terms-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-terms-link:hover {
  color: var(--color-sky);
}

/* ── FOOTER ── */
footer {
  padding: 80px 0 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-borderW);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-borderW);
  color: var(--color-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
  background: rgba(14, 207, 173, 0.07);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-white);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-top: 1px solid var(--color-borderW);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer-bottom a {
  color: var(--color-teal);
  transition: opacity var(--transition-fast);
}

.footer-bottom a:hover {
  opacity: 0.75;
}

/* ── Contact feedback ── */
.toast {
  --toast-accent: #0ecfad;
  position: fixed;
  top: calc(var(--nav-h, 76px) + 16px + env(safe-area-inset-top, 0px));
  right: 24px;
  width: min(400px, calc(100vw - 32px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 12px;
  padding: 18px 14px 18px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: 14px;
  color: var(--color-text);
  box-shadow: 0 12px 36px rgba(7, 14, 28, .16);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-icon { width: 36px; height: 36px; border: 1px solid var(--color-borderW); border-radius: 50%; display: grid; place-items: center; color: var(--toast-accent); }
.toast-icon svg, .toast-icon i { width: 20px; height: 20px; }
.toast-copy { min-width: 0; padding-top: 1px; }
.toast-title { display: block; color: var(--color-white); font-size: .88rem; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.toast-message { display: block; margin-top: 5px; color: var(--color-muted); font-size: .8rem; line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.toast-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -5px -6px 0; padding: 0; border: 0; border-radius: 8px; color: var(--color-muted); background: transparent; cursor: pointer; }
.toast-close svg { width: 18px; height: 18px; }
.toast-close:hover { color: var(--color-white); background: var(--color-surface2); }
.toast-close:focus-visible { outline: 2px solid var(--toast-accent); outline-offset: -3px; }
.toast.toast-error { --toast-accent: #e8837f; }
[data-theme="light"] .toast { --toast-accent: #008875; }
[data-theme="light"] .toast.toast-error { --toast-accent: #b83c3b; }
@media (max-width: 600px) {
  .toast { left: 16px; right: 16px; width: auto; top: calc(var(--nav-h, 76px) + 12px + env(safe-area-inset-top, 0px)); padding: 16px 12px 16px 16px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; transform: none; } }

/* ── 3D TILT CARDS ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: auto; /* Solo activar will-change on hover */
}

.tilt-card:hover {
  will-change: transform;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 1024px)
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-card-wrap {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-bar {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MÓVIL (max-width: 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* Nav */
  .nlinks,
  .ncta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  #hero {
    padding: calc(var(--nav-h) + 2.5rem) 5% 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3)::before {
    display: none;
  }

  .stat-item:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--color-borderW);
  }

  /* Sections */
  #about,
  #solutions,
  #gallery,
  #testimonials,
  #contact {
    padding: 70px 5%;
  }

  #stats {
    padding: 50px 5%;
  }

  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  /* Testimonials: horizontal swipeable carousel instead of a long vertical stack */
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 2px;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid .testi-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  /* Clears the fixed WhatsApp button's corner so its arrow isn't a dead click target */
  #testiControls { padding-right: 76px; }
  .testi-controls { display: flex !important; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Section headers */
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
  }
}
/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 9997;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  animation: waPulse 2.8s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37,211,102,.65);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float::before {
  content: 'Escríbenos';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #111F35;
  color: #D8E8F5;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .35rem .75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.whatsapp-float:hover::before { opacity: 1; }
/* El menu movil abierto tapa justo esta esquina; mientras esta abierto,
   el flotante de WhatsApp (y el de volver arriba) se ocultan en vez de
   quedar encima del panel estorbando los controles de abajo. */
.mobile-menu-backdrop.open ~ .whatsapp-float,
.mobile-menu-backdrop.open ~ .scroll-top-btn {
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ── Scroll Top ── */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  background: var(--color-surface2);
  border: 1px solid var(--color-borderW);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
  pointer-events: none;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover   { border-color: var(--color-teal); background: rgba(14,207,173,.1); }
.scroll-top-btn svg     { width: 18px; height: 18px; stroke: var(--color-teal); }

/* ── Shimmer en botón CTA ── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .5s ease;
}
.btn-primary:hover::before { left: 150%; }

/* ── Navbar línea gradiente al hacer scroll ── */
#nav.stuck::after, #nav.menu-open::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,207,173,.4), transparent);
}

/* ── Responsive móvil ── */
@media (max-width: 768px) {
  .whatsapp-float { bottom: 80px; right: 18px; width: 48px; height: 48px; }
  .whatsapp-float::before { display: none; }
  .scroll-top-btn { bottom: 18px; right: 18px; }
}
/* ══════════════════════════════════════════
   MODO CLARO — Light Mode
   ══════════════════════════════════════════ */
[data-theme="light"] {
  --color-bg:        #EEF3FB;
  --color-surface:   #FFFFFF;
  --color-surface2:  #E2EAF7;
  --color-teal:      #0aab90;
  --color-text:      #243554;
  --color-muted:     #4A6080;
  --color-white:     #0A1628;
--color-border:    rgba(10, 171, 144, 0.14);
  --color-borderW:   rgba(0, 0, 0, 0.09);
  --shadow-card:     0 4px 30px rgba(0, 0, 0, 0.10);
--shadow-teal: 0 8px 40px rgba(10, 171, 144, 0.18);
  /* El dorado original (#E8C97A) se pierde contra fondos claros; aquí se
     oscurece para que las estrellas y el badge "Más popular" sigan siendo
     legibles en modo claro. */
  --color-gold: #B8860E;
}

[data-theme="light"] body {
  background-color: var(--color-bg);
}

[data-theme="light"] #nav.stuck, [data-theme="light"] #nav.menu-open {
  background: rgba(238, 243, 251, 0.93);
}

[data-theme="light"] #nav.stuck::after, [data-theme="light"] #nav.menu-open::after {
  background: linear-gradient(90deg, transparent, rgba(10, 171, 144, 0.35), transparent);
}

[data-theme="light"] .mobile-menu {
  background: #EEF3FB;
  border-left-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .custom-select-trigger {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .custom-select-list {
  background: var(--color-surface);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #7A90AA;
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-borderW);
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
  background: rgba(14, 207, 173, 0.07);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* En dark mode: muestra la luna, oculta el sol */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* En light mode: muestra el sol, oculta la luna */
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── NAVBAR LOGO — tamaño mejorado ── */
.nav-logo img {
  height: 52px !important;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* ══════════════════════════════════════════
   CATÁLOGO
   ══════════════════════════════════════════ */
#catalogo {
  padding: 110px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-borderW);
}

.catalog-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-full);
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .catalog-tabs {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
}

.catalog-tab {
  padding: 0.52rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  position: relative;
}

.catalog-tab:hover {
  color: var(--color-text);
}

.catalog-tab.active {
  background: var(--color-surface2);
  color: var(--color-teal);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.catalog-panel {
  display: none;
}

.catalog-panel.active {
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.catalog-card {
  position: relative;
  padding: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.22s ease,
              box-shadow 0.38s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 207, 173, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 207, 173, 0.1);
}

.catalog-card--highlight {
  border-color: rgba(14, 207, 173, 0.22);
  background: var(--color-surface);
}

.catalog-card--highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  width: fit-content;
  margin-bottom: 0.1rem;
}

.badge-gold {
  background: rgba(232, 201, 122, 0.13);
  color: var(--color-gold);
  border: 1px solid rgba(232, 201, 122, 0.28);
}

.badge-teal {
  background: rgba(14, 207, 173, 0.10);
  color: var(--color-teal);
  border: 1px solid var(--color-border);
}

.catalog-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: 1.3;
}

.catalog-specs {
  font-size: 0.79rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

.catalog-price {
  display: none;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
}

.price-tag small {
  font-size: 1rem;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.price-note {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-align: right;
  max-width: 120px;
  line-height: 1.3;
}

.catalog-features {
  display: none;
}

.catalog-features li {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  padding: 0.3rem 0.55rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.catalog-card:hover .catalog-features li {
  background: rgba(14, 207, 173, 0.03);
  border-color: rgba(14, 207, 173, 0.08);
}

.catalog-features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.6;
  flex-shrink: 0;
}

.catalog-features strong {
  color: var(--color-text);
  font-weight: 600;
}

[data-theme="light"] .catalog-features li {
  background: rgba(0,0,0,0.02);
}

.catalog-cta {
  margin-top: 3rem;
  text-align: center;
}

.catalog-cta p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.catalog-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive catálogo */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #catalogo {
    padding: 70px 5%;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
/* ── IMÁGENES EN TARJETAS DE CATÁLOGO ── */
.catalog-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 68%, rgba(10, 171, 144, 0.07), transparent 60%), linear-gradient(180deg, #fbfcfe, #eef1f6);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  padding: 14px;
  border-bottom: 1px solid var(--color-borderW);
}

.catalog-img-wrap::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 22px;
  width: 58%; height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(10, 22, 40, 0.16), transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}

.catalog-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
  opacity: .5;
}

.catalog-card--highlight .catalog-img-wrap::after {
  background: linear-gradient(to top, var(--color-surface), transparent);
}

.catalog-img-wrap img {
  position: relative;
  max-height: 190px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 10px 18px rgba(10, 22, 40, 0.16));
}

.catalog-card:hover .catalog-img-wrap img {
  transform: scale(1.07) translateY(-5px);
}

/* Cuerpo de la card */
.catalog-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  background: var(--color-surface);
}

/* Light mode */
[data-theme="light"] .catalog-img-wrap {
  background: radial-gradient(ellipse at 50% 68%, rgba(10, 171, 144, 0.08), transparent 60%), linear-gradient(180deg, #eef2f8, #dde5f0);
  border-bottom-color: rgba(10, 22, 40, 0.07);
}

[data-theme="light"] .catalog-img-wrap::before {
  background: radial-gradient(ellipse, rgba(10, 22, 40, 0.12), transparent 72%);
}

[data-theme="light"] .catalog-img-wrap::after {
  background: linear-gradient(to top, #ffffff, transparent);
}

[data-theme="light"] .catalog-card--highlight .catalog-img-wrap::after {
  background: linear-gradient(to top, #ffffff, transparent);
}

[data-theme="light"] .catalog-card-body {
  background: #ffffff;
}

[data-theme="light"] .catalog-card {
  box-shadow: 0 2px 14px rgba(10, 22, 40, 0.06);
}
/* ══════════════════════════════════════════
   CALCULADORA DE AHORRO
   ══════════════════════════════════════════ */
#calculator {
  padding: 110px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-borderW);
}

.calc-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.calc-header {
  padding: 3rem 3rem 0;
  text-align: center;
}

.calc-header .section-desc {
  margin-bottom: 0;
}

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2.5rem 3rem 3rem;
  align-items: start;
}

/* ── Controles ── */
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 3rem;
  border-right: 1px solid var(--color-borderW);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-field-header label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.calc-field-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 400;
  min-width: 80px;
  text-align: right;
}

/* Slider personalizado */
.calc-slider-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.calc-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.calc-slider-track {
  position: absolute;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.calc-slider-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.15s ease;
  width: 10%;
}

/* Thumb pseudo-element via overlay */
.calc-slider-wrap::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--color-teal);
  border: 3px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-teal), 0 2px 8px rgba(14, 207, 173, 0.4);
  pointer-events: none;
  z-index: 1;
  left: var(--thumb-pos, 10%);
  transform: translateX(-50%);
  transition: left 0.15s ease;
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
}

.calc-slider-labels span {
  font-size: 0.73rem;
  color: var(--color-muted);
}

.calc-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  background: rgba(14, 207, 173, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.calc-note svg {
  width: 15px;
  height: 15px;
  color: var(--color-teal);
  flex-shrink: 0;
}

.calc-note strong {
  color: var(--color-teal);
}

/* ── Resultados ── */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 3rem;
}

.calc-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-borderW);
}

.calc-result-catapulta {
  border-color: var(--color-border);
  background: rgba(14, 207, 173, 0.04);
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
}

.calc-result-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  transition: all 0.2s ease;
}

.calc-result-sub {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.calc-result-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  padding: 0 0.5rem;
}

.calc-result-divider svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-teal);
}

.calc-result-divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-borderW);
}

/* Caja de ahorro */
.calc-savings-box {
  padding: 1.5rem;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-savings-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-teal);
}

.calc-savings-top svg {
  width: 16px;
  height: 16px;
}

.calc-savings-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-savings-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.calc-savings-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  transition: all 0.2s ease;
}

.calc-savings-period {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.calc-savings-sep {
  font-size: 1.5rem;
  color: var(--color-borderW);
  padding-bottom: 1rem;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .calc-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .calc-controls {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-borderW);
    padding-bottom: 2.5rem;
  }

  .calc-results {
    padding-left: 0;
  }

  .calc-header {
    padding: 2rem 2rem 0;
  }
}

@media (max-width: 768px) {
  #calculator {
    padding: 70px 5%;
  }

  .calc-header {
    padding: 2rem 1.5rem 0;
  }

  .calc-body {
    padding: 1.5rem;
  }

  .calc-savings-numbers {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .calc-savings-sep {
    display: none;
  }
}

[data-theme="light"] .calc-wrapper {
  background: var(--color-surface);
}

[data-theme="light"] .calc-result-card {
  background: var(--color-surface2);
}

[data-theme="light"] .calc-savings-box {
  background: #dce6f5;
}
/* ── Respetar preferencia de movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .whatsapp-float {
    animation: none;
  }
}
/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-borderW);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  background: var(--grad-primary);
  color: #070E1C;
}

/* Ocultar en móvil el lang toggle y theme toggle de desktop */
@media (max-width: 768px) {
  .nav-inner .lang-toggle {
    display: none;
  }
  .nav-inner .theme-toggle {
    display: none;
  }
}

.mobile-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-borderW);
  color: var(--color-muted);
  background: var(--color-surface);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  width: 100%;
  height: 44px;
}

.mobile-theme-btn:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
  background: rgba(14, 207, 173, 0.07);
}

.mobile-theme-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.mobile-theme-label {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
