/* ============================================================
   Adapter — Landing (versión light)
   Estética: fondo luminoso, logo oscuro, acento indigo
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F7F8FC;
  --panel:     rgba(255, 255, 255, 0.62);
  --panel-2:   rgba(255, 255, 255, 0.82);
  --line:      rgba(10, 11, 20, 0.09);
  --line-2:    rgba(10, 11, 20, 0.17);

  --text:      #0A0B14;
  --muted:     #5B5F76;
  --faint:     #8A8FA3;

  --indigo:    #6366F1;
  --indigo-2:  #4F46E5;
  --violet:    #8B5CF6;

  --rb:        #059669;   /* acento Retailbase (ajustado para contraste en claro) */
  --dungo:     #7C3AED;   /* acento dungo (ajustado para contraste en claro) */

  --shadow:    0 1px 2px rgba(10, 11, 20, 0.04), 0 8px 24px rgba(10, 11, 20, 0.05);
  --shadow-lg: 0 2px 4px rgba(10, 11, 20, 0.04), 0 18px 44px rgba(10, 11, 20, 0.09);

  --maxw:      1140px;
  --radius:    18px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Sora", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: linear-gradient(100deg, var(--violet), var(--indigo-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   FONDO: luz difusa + auroras suaves
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #EEF0FF 0%, transparent 55%),
    radial-gradient(100% 100% at 50% 0%, #FBFBFE 0%, var(--bg) 60%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.aurora--1 {
  width: 720px; height: 720px;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99,102,241,.28), transparent 65%);
}
.aurora--2 {
  width: 560px; height: 560px;
  top: 120px; right: -140px;
  background: radial-gradient(circle, rgba(139,92,246,.2), transparent 65%);
  animation: float 18s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(40px); } }

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,11,20,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,11,20,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img { height: 24px; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: #fff !important;
  background: var(--indigo-2);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all .2s var(--ease) !important;
}
.nav-cta:hover { background: #4338CA; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 4px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border: 0; }
.nav-mobile .nav-cta { text-align: center; margin-top: 8px; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(79, 70, 229, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(79, 70, 229, .42); }
.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--text); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-inner { max-width: 860px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 10px 1px rgba(99, 102, 241, .8);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 38px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px;
  font-size: .82rem;
  color: var(--faint);
  letter-spacing: .01em;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 28px 0 80px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(180deg, #171930, #4C5170);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; display: block; }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 90px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(10,11,20,.018), transparent); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-family: "Sora", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo-2);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(99,102,241,.09), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.product:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.product:hover::before { opacity: 1; }
.product--featured::before { background: radial-gradient(120% 80% at 50% -20%, rgba(139,92,246,.12), transparent 60%); opacity: 1; }
.product--featured { border-color: rgba(139,92,246,.32); }

.product-top { position: relative; }
.product-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.product-badge--rb { color: var(--rb); background: rgba(5,150,105,.08); border: 1px solid rgba(5,150,105,.28); }
.product-badge--dungo { color: var(--dungo); background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.3); }

.product h3 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.product-tag { color: var(--text); font-weight: 500; font-size: 1.02rem; margin-bottom: 18px; }
.product-desc { color: var(--muted); position: relative; margin-bottom: 22px; }

.product-feats { list-style: none; position: relative; margin-bottom: 26px; display: grid; gap: 11px; }
.product-feats li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: .95rem;
}
.product-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--indigo-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.product--featured .product-feats li::before { background: var(--dungo); }

.product-link {
  position: relative;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  width: fit-content;
}
.product-link svg { transition: transform .25s var(--ease); }
.product-link:hover { color: var(--indigo-2); }
.product-link:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   CARDS (servicios)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s, box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); box-shadow: var(--shadow-lg); }
.card-ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--indigo-2);
  background: linear-gradient(140deg, rgba(99,102,241,.14), rgba(139,92,246,.1));
  border: 1px solid rgba(139,92,246,.24);
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 22px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy .btn { margin-top: 12px; }

.about-points { list-style: none; display: grid; gap: 14px; }
.about-points li {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .96rem;
  box-shadow: var(--shadow);
}
.about-points strong { color: var(--text); font-family: "Sora", sans-serif; font-weight: 600; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 40px 0 110px; }
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(99,102,241,.14), transparent 60%),
    #fff;
}
.emblem-bg {
  position: absolute;
  right: -60px; bottom: -80px;
  width: 360px;
  opacity: .05;
  pointer-events: none;
}
.emblem-bg img { width: 100%; }
.cta-inner .kicker, .cta-inner h2, .cta-inner .cta-sub, .cta-inner .hero-ctas, .cta-inner .cta-address { position: relative; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 18px; }
.cta-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.cta-address { margin-top: 28px; font-size: .85rem; color: var(--faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--bg-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 50px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { height: 26px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--muted); font-size: .94rem; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }

/* Información legal de la empresa (requerida para verificaciones de terceros) */
.footer-legal { padding-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.footer-legal h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.footer-legal-grid { display: grid; grid-template-columns: 1fr 1fr 1.9fr 1.2fr; gap: 18px 32px; }
.footer-legal-item dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 5px; }
.footer-legal-item dd { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.footer-legal strong { color: var(--text); font-weight: 600; }
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--text); }
.footer-domains { margin: 20px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: .85rem;
  color: var(--faint);
}

/* ============================================================
   REVEAL (animación al hacer scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .products { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-legal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 48px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-legal-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
