/* TripCompy — official website (Fase 10, rediseño premium). Lightweight, no dependencies. */

:root {
  --navy-900: #0a1930;
  --navy-800: #10203f;
  --navy-700: #16305c;
  --brand: #2f6fed;
  --brand-dark: #1f55c4;
  --accent: #34d1bf;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #16233b;
  --muted: #5c6b84;
  --line: #e2e8f3;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 25, 48, 0.05), 0 4px 14px rgba(10, 25, 48, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 25, 48, 0.12);
  --shadow-cta: 0 10px 24px rgba(47, 111, 237, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-head {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 14px 0 0;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.85rem;
  padding-bottom: 12px;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.72);
}

.lang-switch a:hover {
  color: #fff;
  text-decoration: none;
}

.lang-switch .current {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  display: block;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), var(--shadow-md);
  background: #fff;
  padding: 6px;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.brand-text .tagline {
  margin: 2px 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(52, 209, 191, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 209, 191, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: 2.4rem;
  line-height: 1.18;
  letter-spacing: -0.3px;
  font-weight: 800;
}

.hero .intro {
  margin: 0 0 26px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(47, 111, 237, 0.42);
}

.btn .arrow {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-hint {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-trust {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Teléfono / mockup ---------- */

.phone {
  max-width: 300px;
  width: 100%;
  justify-self: center;
  transform: rotate(1.5deg);
}

.phone-frame {
  background: linear-gradient(160deg, #1d2c4a 0%, #0b1a33 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #0b1a33;
  border-radius: 0 0 14px 14px;
  margin: -12px auto 10px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.phone-screen img {
  width: 100%;
  display: block;
}

.phone-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #eef4ff 0%, #f7f9fd 40%, #f4f6fb 100%);
}

.phone-ui-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-ui-head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.phone-ui-head .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.phone-ui-head .sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.phone-trip {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.phone-trip .dest {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.phone-trip .dates {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 12px;
}

.phone-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.phone-progress {
  height: 8px;
  background: #e4ebf5;
  border-radius: 999px;
  overflow: hidden;
}

.phone-progress > span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--brand), #5a9cff);
  border-radius: 999px;
}

.phone-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.phone-chip {
  background: #eef3fd;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.phone-chip.ok {
  background: #e6f9f5;
  color: #0e8f7c;
}

.phone-chip.pending {
  background: #fdf1e3;
  color: #b26a16;
}

.phone-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Secciones de contenido ---------- */

.section {
  padding: 44px 0 8px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  letter-spacing: -0.2px;
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(140deg, #eef3fd 0%, #dce9ff 100%);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Cómo funciona / offline ---------- */

.offline-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.offline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(140deg, #e6f9f5 0%, #ccf3ea 100%);
  color: #0e8f7c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-icon svg {
  width: 24px;
  height: 24px;
}

.offline-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
}

.offline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ---------- CTA final ---------- */

.cta-final {
  margin: 44px 0 8px;
  background: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.4) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
}

.cta-final p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 44ch;
  position: relative;
}

.cta-final .btn {
  position: relative;
}

/* ---------- Footer ---------- */

.site-foot {
  margin: 48px 0 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 2.1;
}

.site-foot a {
  margin: 0 6px;
  white-space: nowrap;
  color: var(--muted);
}

.site-foot a:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-foot .support {
  display: block;
  margin-top: 2px;
}

.site-foot .support a {
  color: var(--brand);
}

/* ---------- Documentos legales ---------- */

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px 48px;
}

.doc h2 {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 1.2rem;
}

.doc h3 {
  margin-top: 22px;
}

.doc .meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.doc p,
.doc li {
  font-size: 0.97rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.85rem;
  }

  .hero .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .phone {
    transform: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text h1 {
    font-size: 1.35rem;
  }

  .offline-card {
    grid-template-columns: 1fr;
  }

  .cta-final {
    padding: 34px 22px;
  }

  .site-foot a {
    white-space: normal;
  }
}
