/* PerfiliaPro — Landing page */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-var.woff2') format('woff2-variations'), url('../fonts/manrope-var.woff2') format('woff2');
}

:root {
  --navy-900: #0A1830;
  --navy-800: #0F2748;
  --navy-700: #163B6E;
  --blue-600: #1E56A8;
  --blue-500: #2E7DD6;
  --blue-400: #5B9BE0;
  --gold-400: #E8B44B;
  --white: #FFFFFF;
  --gray-50: #F7F9FC;
  --gray-100: #EEF2F8;
  --gray-300: #D7DEE9;
  --gray-500: #64748B;
  --gray-700: #334155;
  --radius: 14px;
  --shadow-md: 0 10px 30px rgba(10, 24, 48, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 24, 48, 0.18);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Toggle bilingüe: por defecto se muestra español */
html:not([data-lang="en"]) .lang-en { display: none; }
html[data-lang="en"] .lang-es { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Utilidades mínimas (esta página no carga Bootstrap, a diferencia de la app) */
.d-none { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.55;
}

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

a { color: inherit; }

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

section { padding: 88px 0; }

h1, h2, h3 { color: var(--navy-900); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gold-400);
  background: rgba(232, 180, 75, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-400); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; color: var(--gray-700); }
.nav-links a:hover { color: var(--blue-600); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue-500); color: var(--blue-600); }

.header-cta { padding: 10px 20px; font-size: 0.9rem; }

.header-login {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  text-decoration: none;
  white-space: nowrap;
}
.header-login:hover { color: var(--blue-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-600) 130%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--blue-400); top: -140px; right: -100px; }
.hero::after { width: 320px; height: 320px; background: var(--gold-400); bottom: -160px; left: -80px; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  display: block;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Mockup de perfil (CSS puro, sin imágenes externas) */
.phone-frame {
  background: var(--navy-900);
  border-radius: 44px;
  padding: 16px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
}
.phone-mock {
  background: var(--white);
  border-radius: 28px;
  padding: 28px 22px 22px;
  max-width: 320px;
  margin: 0 auto;
  color: var(--gray-700);
}
.phone-mock .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
}
.phone-mock .name { text-align: center; font-weight: 800; color: var(--navy-900); font-size: 1.1rem; }
.phone-mock .role { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 18px; }
.phone-mock .link-pill {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 6px 10px;
  margin: 0 auto 18px;
  width: fit-content;
}
.phone-mock .action-row { display: flex; gap: 10px; margin-bottom: 10px; }
.phone-mock .action {
  flex: 1;
  text-align: center;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-800);
}
.phone-mock .action .ic { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.phone-mock .block {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 10px;
}

/* Problema */
.problem { background: var(--gray-50); text-align: center; }
.problem .container { max-width: 760px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.feature-card .ic { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 0.92rem; margin: 0; }

/* Cómo funciona */
.how {
  background: var(--navy-900);
  color: var(--white);
}
.how h2, .how .section-header p { color: var(--white); }
.how .section-header p { color: rgba(255,255,255,0.75); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(232,180,75,0.4);
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { color: var(--white); }
.step p { color: rgba(255,255,255,0.75); margin: 0; }

/* Precio */
.pricing { background: var(--gray-50); text-align: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.price-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-300);
  position: relative;
  text-align: left;
}
.price-card-featured { border-color: var(--gold-400); }
.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card .amount { font-size: 3rem; font-weight: 800; color: var(--navy-900); margin: 12px 0 0; }
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--gray-500); }
.price-card .plan-name { font-weight: 700; color: var(--blue-600); margin: 2px 0 0; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 8px 0; color: var(--gray-700); font-size: 0.95rem; }
.price-card li::before { content: "✓ "; color: var(--blue-600); font-weight: 800; }

/* Waitlist / formulario */
.waitlist {
  background: linear-gradient(160deg, var(--blue-600) 0%, var(--navy-900) 100%);
  color: var(--white);
}
.waitlist .container { max-width: 720px; }
.waitlist .section-header p { color: rgba(255,255,255,0.82); }
.waitlist h2 { color: var(--white); }

.contact-shortcuts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p { max-width: 320px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin: 0 0 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Animación al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .header-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .nav-toggle { display: flex; }
  nav { order: 3; width: 100%; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 10px 4px; font-size: 1rem; }
  .hero .container { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
