:root {
  --grad-start: #4EE1E0;
  --grad-mid:   #0C0D5F;
  --grad-end:   #EC008C;

  --primary: #0052cc;
  --primary-light: #00c2ff;

  --bg-body: #f5f7fb;
  --text-main: #121826;
  --text-muted: #6b7280;
  --surface: #ffffff;
  --accent: #2563eb;
  --danger: #ef4444;
  --border-soft: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.15);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
}

/* Helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.main-header {
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  color: #e5f0ff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: #ffffff;
}

/* HERO */
.hero-section {
  background: radial-gradient(circle at top left, #e0f2ff 0, #f5f7fb 45%, #ffffff 100%);
  padding: 48px 0 52px;
}


.hero-logo {
  display: block;
  margin: 0 auto 16px;             /* centrado + espacio con el título */
  width: clamp(220px, 26vw, 260px);  /* 🔹 más grande */
  height: auto;
}


.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* PHONE MOCKUP */
.hero-phone {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(145deg, #111827, #0f172a);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 18px;
  border-radius: 0 0 18px 18px;
  background: #020617;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #f9fafb;    /* fondo neutro detrás de la lista */
  padding: 26px 10px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 🔹 Header interno con el mismo degradé que AppBarMain */
.phone-header {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ⬅️ centra horizontalmente */
  text-align: center;    /* ⬅️ centra el texto */
  gap: 2px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
}


/* Textos en blanco para contraste sobre el degradé */
.phone-app-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.phone-location {
  font-size: 11px;
  color: #e5f0ff;
}

 

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.phone-card {
  display: flex;
  gap: 6px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid #e5e7eb;
}

.phone-card.destacado {
  border-color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.card-image {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa, #22c55e);
  flex-shrink: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-body h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.card-body p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
}

.card-price {
  font-size: 11px;
  color: #2563eb;
  font-weight: 500;
}

.phone-caption {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* SECCIONES GENERALES */
.section {
  padding: 48px 0;
}

.section-light {
  background: #ffffff;
}

.section-muted {
  background: #f3f4f6;
}

.section h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.section-text {
  max-width: 640px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.feature-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 14px 12px;
}

.feature-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CONTACTO */
.contact-box {
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-main);
}

/* FOOTER */
.main-footer {
  background: #020617;
  color: #9ca3af;
  padding: 18px 0;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .main-nav {
    display: none; /* para simplificar; podrías agregar menú hamburguesa luego */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    justify-content: center;
  }
}  /* ⬅️ AQUÍ cerramos el @media */

/* SECCIÓN LEGAL / POLÍTICA DE PRIVACIDAD */
.section-legal {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}

.legal-container {
  max-width: 820px;        /* más estrecho para texto largo */
}

.section-legal h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-legal h3 {
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.section-legal p,
.section-legal ul {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-legal p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* En pantallas muy angostas, dejamos alineado a la izquierda
   para evitar espacios enormes entre palabras. */
@media (max-width: 480px) {
  .section-legal p {
    text-align: left;
  }
}

.section-legal ul {
  padding-left: 18px;
}

.legal-intro {
  font-size: 13px;
  color: #4b5563;
}