/* ============================================
   MAINTENA — Estilos Globales
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* App-inspired palette */
  --bg: #EEF4F8;
  --bg-warm: #F0E8DE;
  --white: #FFFFFF;
  --deep: #07111F;
  --navy: #0D1B2A;
  --blue: #007AFF;
  --blue-light: #3395FF;
  --blue-glow: rgba(0, 122, 255, 0.12);
  --green: #34C759;
  --orange: #FF9500;
  --red: #FF3B30;
  --text: #1C1C1E;
  --muted: #6E6E73;
  --border: rgba(0,0,0,0.08);
  --card-bg: #FFFFFF;

  /* Hero gradient matches app background */
  --hero-gradient: linear-gradient(160deg, #C2DCF0 0%, #D4E8F2 40%, #E8D8C8 100%);
  --section-gradient: linear-gradient(180deg, #EEF4F8 0%, #F5EFEA 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.05);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a { color: var(--blue); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

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

/* ============================================
   NAVEGACIÓN
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(194, 220, 240, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--deep);
  letter-spacing: 0.01em;
}

.nav__logo span {
  color: var(--blue);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: rgba(7,17,31,0.6);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--deep);
  opacity: 1;
}

.lang-toggle {
  background: rgba(0, 122, 255, 0.1);
  border: 1.5px solid rgba(0, 122, 255, 0.25);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: var(--hero-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 50% 70%, rgba(0, 122, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 80% 20%, rgba(52, 199, 89, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero__title em {
  font-style: italic;
  color: var(--blue);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(7,17,31,0.55);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35);
}

.btn--primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.45);
  opacity: 1;
}

.btn--ghost {
  background: rgba(255,255,255,0.7);
  color: var(--blue);
  border: 1.5px solid rgba(0,122,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.9);
  opacity: 1;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
  padding: 100px 5%;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

.section__header {
  max-width: 680px;
}

.section__header--center {
  text-align: center;
  margin: 0 auto 4rem;
}

/* ============================================
   APP PREVIEW (Onboarding screens)
   ============================================ */

.app-preview {
  background: var(--white);
  overflow: hidden;
}

.preview__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: nowrap;
}

.preview__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex: 0 0 200px;
}

.preview__item--center .phone-frame {
  /* same size as others */
}

.phone-frame {
  width: 200px;
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.07);
  position: relative;
}

.phone-frame--teal   { background: #3D9EA8; }
.phone-frame--amber  { background: #C8922A; }
.phone-frame--purple { background: #7B5EA7; }

.phone-frame__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #eee;
  width: 100%;
  aspect-ratio: 9 / 19.5;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.preview__label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 220px;
  text-align: left;
}

.preview__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  margin-top: 5px;
}

.preview__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.25rem;
}

.preview__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   APP SCREENSHOTS (pantallas reales)
   ============================================ */

.app-screens {
  background: var(--section-gradient);
}

.screens__grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.screen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 210px;
}

.screen-item__frame {
  width: 210px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.05);
  background: #fff;
  aspect-ratio: 9 / 19.5;
}

.screen-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.screen-item__caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================
   BENEFICIOS
   ============================================ */

.benefits {
  background: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.benefit-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 122, 255, 0.18);
  background: var(--white);
}

.benefit-card:hover::before { opacity: 1; }

.benefit-card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   FUNCIONALIDADES
   ============================================ */

.features {
  background: var(--section-gradient);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,122,255,0.15);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--blue-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-card--premium .feature-card__icon {
  background: linear-gradient(135deg, rgba(255, 195, 0, 0.15), rgba(255, 149, 0, 0.15));
}

.feature-card__body {}

.feature-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.badge--premium {
  background: linear-gradient(135deg, #FFD60A, #FF9500);
  color: #7A4400;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: linear-gradient(135deg, #0D1B2A 0%, #0A2540 100%);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(0,122,255,0.15), transparent);
  pointer-events: none;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  position: relative;
}

.cta-band__sub {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

/* ============================================
   PÁGINAS INTERNAS (Privacidad, Términos, Soporte)
   ============================================ */

.page-hero {
  background: var(--hero-gradient);
  padding: 140px 5% 80px;
  text-align: center;
}

.page-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--deep);
  margin-bottom: 1rem;
}

.page-hero__date {
  font-size: 0.875rem;
  color: rgba(7,17,31,0.4);
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 5%;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--deep);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content ul {
  list-style: none;
  margin-bottom: 1.25rem;
}

.page-content ul li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.page-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
}

.contact-box {
  background: var(--blue-glow);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-box__icon { font-size: 1.5rem; }

.contact-box__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-box__email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
}

/* FAQs */
.faq-list {
  margin-top: 3rem;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-q:hover { background: var(--bg); }

.faq-q svg {
  min-width: 20px;
  transition: transform var(--transition);
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--deep);
  padding: 60px 5% 40px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.footer__logo span { color: var(--blue-light); }

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__links a:hover { color: #FFFFFF; opacity: 1; }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  text-align: center;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

@media (max-width: 768px) {
  section { padding: 72px 5%; }
  .nav__links { display: none; }
  .hero { padding: 100px 5% 80px; }
  .hero__cta { flex-direction: column; align-items: center; }
  .benefits__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; text-align: center; }
  .page-content h2 { font-size: 1.35rem; }
  .preview__grid { flex-direction: column; align-items: center; }
  .preview__item--center .phone-frame { transform: none; }
  .screens__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
