/* ================= LANDING WASHER =================
   Estilos de la landing pública de marketing.
   Fondo claro estilo SaaS, acentos cyan/azul de marca.
   Separado del CSS de la demo interna (que es dark theme).
   Requiere Tailwind CDN + Space Grotesk + DM Sans cargados en el HTML.
*/

@font-face {
  font-family: "Flood Std";
  src: url("../flood-std.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --brand-cyan: #00D4FF;
  --brand-blue: #0EA5E9;
  --brand-blue-dark: #0284C7;
  --brand-ink: #04161F;

  /* Superficie clara */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-muted: #F1F5F9;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Texto */
  --fg: #0F172A;
  --fg-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;

  /* Acentos */
  --accent: var(--brand-cyan);
  --accent-2: var(--brand-blue);
  --accent-soft: rgba(14, 165, 233, 0.08);
  --accent-ring: rgba(14, 165, 233, 0.22);

  /* Estados */
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;

  /* Radios y sombras */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.20), 0 8px 16px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 12px 40px -8px rgba(0, 212, 255, 0.35);
}

/* Reset ligero */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.font-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

/* ================= HEADER ================= */
.landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.landing-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.landing-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Flood Std", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-text-svg {
  height: 26px;
  width: auto;
  display: block;
  fill: currentColor;
}
.brand-text-svg text {
  font-family: "Flood Std", "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 400;
}
.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;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(0, 212, 255, 0.5);
}
.brand-mark img { width: 36px; height: 36px; display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand-blue-dark); background: var(--accent-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  align-items: center; justify-content: center;
  color: var(--fg);
}
.menu-btn i { width: 20px; height: 20px; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 84vw);
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-xl);
  padding: 80px 20px 24px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu a {
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 12px;
}
.mobile-menu a:hover { background: var(--bg-muted); color: var(--brand-blue-dark); }
.mobile-menu a i { width: 20px; height: 20px; color: var(--muted); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn i { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.6); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); background: var(--accent-soft); }
.btn-dark {
  background: var(--brand-ink);
  color: #fff;
}
.btn-dark:hover { background: #082030; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 120px 20px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding: 140px 20px 90px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.08); }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-cyan), var(--brand-blue) 60%, var(--brand-blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  font-size: 13px; color: var(--muted);
}
.hero-trust .item { display: flex; align-items: center; gap: 8px; }
.hero-trust i { width: 16px; height: 16px; color: var(--brand-blue); }

/* Hero mockup (phone) */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup .phone {
  position: relative;
  width: 280px;
  max-width: 70vw;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #0B1220;
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(15,23,42,0.06);
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.hero-mockum:hover .phone, .hero-mockup:hover .phone { transform: rotate(0deg) translateY(-4px); }
.hero-mockup .phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.hero-mockup .phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #04161F;
}
.hero-mockup .phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-mockup .float-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  animation: floatY 4s ease-in-out infinite;
}
.hero-mockup .float-card .ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
}
.hero-mockup .float-card .ic i { width: 16px; height: 16px; }
.hero-mockup .float-card.top { top: 8%; left: -6%; animation-delay: 0s; }
.hero-mockup .float-card.bot { bottom: 10%; right: -8%; animation-delay: 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 1023px) {
  .hero-mockup { margin-top: 8px; }
  .hero-mockup .float-card.top { left: 2%; }
  .hero-mockup .float-card.bot { right: 2%; }
}

/* ================= BUBBLES (motivo de marca) ================= */
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubbles span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.25), rgba(14,165,233,0.08) 60%, transparent 70%);
  animation: bubbleUp linear infinite;
  opacity: 0;
}
@keyframes bubbleUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* ================= SECTION SHELL ================= */
.section {
  padding: 72px 20px;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 96px 20px; } }
.section-soft { background: var(--bg-soft); }
.section-muted { background: var(--bg-muted); }
.section-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.section-eyebrow {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-eyebrow i { width: 14px; height: 14px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 720px;
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head-center { text-align: center; margin: 0 auto; }
.section-head-center .section-title,
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ================= STATS BAR ================= */
.stats-bar {
  background: var(--brand-ink);
  color: #fff;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 0%, rgba(0,212,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(14,165,233,0.14), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  position: relative; z-index: 1;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--brand-cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1;
}
.stat .lbl { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ================= CÓMO FUNCIONA ================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-ring); }
.step .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(14,165,233,0.5);
}
.step .ic i { width: 22px; height: 22px; }
.step .num-chip {
  position: absolute;
  top: 18px; right: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted-2);
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 2px 10px;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--fg);
}
.step p { font-size: 14px; color: var(--muted); margin: 0; }
@media (min-width: 768px) {
  .step::after {
    content: '';
    position: absolute;
    top: 48px; right: -16px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--border-strong);
    border-right: 2px solid var(--border-strong);
    transform: rotate(45deg);
  }
  .step:last-child::after { display: none; }
}

/* ================= ROLE SWITCHER ================= */
.role-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.role-tab {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color .2s, background .25s, box-shadow .25s, transform .15s;
}
.role-tab i { width: 18px; height: 18px; }
.role-tab:hover { color: var(--fg); }
.role-tab.active {
  background: var(--surface);
  color: var(--brand-blue-dark);
  box-shadow: var(--shadow-md);
}
.role-tab.active i { color: var(--brand-blue); }

/* ================= FEATURES GRID ================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-ring); }
.feature .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature .ic i { width: 22px; height: 22px; }
.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--fg);
}
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* Role content panels */
.role-content { display: none; }
.role-content.active { display: block; animation: fadeSlide .4s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SCREENSHOTS GALLERY ================= */
.shots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shots-grid { grid-template-columns: repeat(3, 1fr); } }
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 14px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--accent-ring); }
.shot .phone-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  background: #0B1220;
  padding: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.shot .phone-mini::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 12px;
  background: #000;
  border-radius: 8px;
  z-index: 3;
}
.shot .phone-mini .scr {
  width: 100%; height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #04161F;
}
.shot .phone-mini img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s;
}
.shot:hover .phone-mini img { transform: scale(1.03); }
.shot .meta { padding: 14px 4px 4px; }
.shot .meta h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--fg);
}
.shot .meta p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.shot .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-panel {
  position: relative;
  max-width: 380px;
  width: 100%;
  transform: scale(0.92);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.lightbox.open .lightbox-panel { transform: scale(1); }
.lightbox .phone-big {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #0B1220;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}
.lightbox .phone-big::before {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.lightbox .phone-big .scr {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #04161F;
}
.lightbox .phone-big img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lightbox-close {
  position: absolute;
  top: -52px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: grid; place-items: center;
}
.lightbox-close i { width: 20px; height: 20px; }
.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 16px;
}
.lightbox-caption h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0 0 4px; }
.lightbox-caption p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }

/* ================= ECOSISTEMA / QUIÉNES SOMOS ================= */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) { .eco-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; } }
.role-chain {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-chain .row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  transition: transform .25s, box-shadow .25s;
}
.role-chain .row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.role-chain .ic {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
}
.role-chain .ic i { width: 20px; height: 20px; }
.role-chain .ic.sadmin { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.role-chain .ic.admin { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue)); }
.role-chain .ic.washer { background: linear-gradient(135deg, #10B981, #059669); }
.role-chain .ic.cliente { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.role-chain .meta h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0 0 2px; font-size: 1rem; }
.role-chain .meta p { font-size: 13px; color: var(--muted); margin: 0; }
.role-chain .arrow { color: var(--muted-2); display: none; }
@media (min-width: 1024px) {
  .role-chain { flex-direction: row; align-items: stretch; }
  .role-chain .row { flex: 1; flex-direction: column; text-align: center; gap: 8px; padding: 18px 12px; }
  .role-chain .ic { margin: 0 auto; }
  .role-chain .arrow { display: block; align-self: center; font-size: 22px; }
}

.differentials { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .differentials { grid-template-columns: repeat(2, 1fr); } }
.diff {
  display: flex; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.diff .ic {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
  display: grid; place-items: center;
}
.diff .ic i { width: 18px; height: 18px; }
.diff h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0 0 4px; font-size: 0.98rem; }
.diff p { font-size: 13px; color: var(--muted); margin: 0; }

/* ================= CTA / FORMS ================= */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .cta-card { padding: 36px; } }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}
.form-success.show { display: flex; animation: fadeSlide .3s ease; }
.form-success i { width: 20px; height: 20px; }

/* Store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn i { width: 26px; height: 26px; }
.store-btn .meta { line-height: 1.1; }
.store-btn .meta .top { font-size: 10px; opacity: 0.8; }
.store-btn .meta .bot { font-size: 15px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }

/* ================= CONTACTO ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.contact-item:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.contact-item .ic {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
  display: grid; place-items: center;
}
.contact-item .ic i { width: 20px; height: 20px; }
.contact-item h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0 0 2px; font-size: 0.98rem; }
.contact-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ================= FOOTER ================= */
.footer {
  background: var(--brand-ink);
  color: rgba(255,255,255,0.8);
  padding: 60px 20px 28px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 0%, rgba(0,212,255,0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(14,165,233,0.08), transparent 60%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer ul a:hover { color: var(--brand-cyan); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.8);
  transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--brand-blue); color: #fff; transform: translateY(-2px); }
.footer-social i { width: 18px; height: 18px; }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  position: relative; z-index: 1;
}

/* ================= REVEAL ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubbles, .hero-mockup .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ================= UTILS ================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }