/* ============================================================
   Cor3Center Landing — Design System
   Extraído del CSS de cor3center.com (Tailwind v4, tema claro)
   ============================================================ */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3080ff;
  --blue-600: #155dfc;
  --blue-700: #1447e6;
  --blue-800: #193cb8;
  --blue-900: #1c398e;
  --indigo-500: #625fff;
  --indigo-600: #4f46e6;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #111827;

  --emerald-500: #00bb7f;
  --red-500: #fb2c36;
  --amber-500: #f99c00;
  --violet-500: #8b5cf6;
  --teal-500: #14b8a6;
  --sky-500: #0ea5e9;
  --pink-500: #ec4899;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-card: 32px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 40px -12px rgb(0 0 0 / 0.08);
  --shadow-card-hover: 0 32px 64px -16px rgb(0 0 0 / 0.14);
  --shadow-btn: 0 8px 20px -6px rgb(21 93 252 / 0.45);

  --container: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgb(21 93 252 / 0.15); }

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

.grad {
  background: linear-gradient(to right, var(--blue-600), var(--indigo-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(to right, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: linear-gradient(to right, var(--blue-700), var(--blue-800));
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgb(21 93 252 / 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.btn-white {
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 12px 32px -10px rgb(0 0 0 / 0.35);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.45); }

.btn-arrow { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--blue-500);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-400);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue-600); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lang-toggle:hover { background: var(--blue-100); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--blue-50), #ffffff 60%);
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(closest-side, rgb(21 93 252 / 0.14), rgb(98 95 255 / 0.08) 55%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-600);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 760px;
}

.hero-sub {
  font-size: 17.5px;
  color: var(--gray-500);
  max-width: 640px;
}
.hero-sub strong { color: var(--gray-900); font-weight: 700; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--gray-400);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 36px;
}
.stat {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.02);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-600);
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-500);
}

/* ---------- Steps (Cómo funciona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(to right, var(--blue-600), var(--indigo-600));
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -6px rgb(21 93 252 / 0.4);
}
.step-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14.5px; color: var(--gray-500); }

/* ---------- Marketplace / App cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.app-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}
.app-card-featured {
  border: 1.5px solid var(--indigo-500);
  background: linear-gradient(to bottom, #fff, #f5f4ff);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.app-icon svg { width: 26px; height: 26px; }

.icon-blue { background: var(--blue-50); color: var(--blue-600); }
.icon-blue-soft { background: #e0ecff; color: #1c63d5; }
.icon-amber { background: #fef3e2; color: var(--amber-500); }
.icon-amber-soft { background: #fff4e5; color: #d97706; }
.icon-red { background: #fdecec; color: var(--red-500); }
.icon-red-soft { background: #fdecec; color: #dc2626; }
.icon-violet { background: #f3f0ff; color: var(--violet-500); }
.icon-emerald { background: #e2f7ef; color: var(--emerald-500); }
.icon-emerald-soft { background: #e2f7ef; color: #059669; }
.icon-teal { background: #e6faf7; color: var(--teal-500); }
.icon-sky { background: #e8f6ff; color: var(--sky-500); }
.icon-pink { background: #fdeef5; color: var(--pink-500); }
.icon-gray { background: var(--gray-100); color: var(--gray-500); }

.app-name { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.app-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.5; }

.app-card-more {
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  border-style: dashed;
  border-color: var(--gray-200);
  background: var(--gray-50);
  text-align: left;
}
.app-card-more:hover { border-color: var(--blue-500); background: var(--blue-50); }
.more-plus {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 500;
  color: var(--blue-600);
  background: var(--blue-50);
}

/* ---------- Features (Seguridad) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14.5px; color: var(--gray-500); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 6px 24px;
  transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-card); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: 14.5px;
  color: var(--gray-500);
  padding-bottom: 20px;
}

/* ---------- CTA Final ---------- */
.cta-final { padding: 88px 0; }
.cta-card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--blue-900), var(--blue-700) 45%, var(--indigo-600));
}
.cta-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(84 162 255 / 0.35), transparent);
  pointer-events: none;
}
.badge-light {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.22);
  color: #fff;
}
.badge-light .badge-dot { background: #7ef0c3; }
.cta-title {
  position: relative;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 640px;
  line-height: 1.15;
}
.cta-title .grad {
  background: linear-gradient(to right, #a5c8ff, #b9b6ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.cta-sub {
  position: relative;
  font-size: 16.5px;
  color: rgb(255 255 255 / 0.85);
  max-width: 520px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 48px 0 28px;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand { max-width: 340px; }
.footer-desc { font-size: 13.5px; color: var(--gray-500); margin-top: 12px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--blue-600); }
.footer-copy {
  border-top: 1px solid var(--gray-100);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--gray-100); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-burger { display: flex; }

  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cta-card { padding: 48px 24px; }
}
