/* TRUFER GROUP · estilos compartidos */
:root {
  --navy: #0b1f4d;
  --navy-2: #102a66;
  --blue: #1f4fd8;
  --sky: #5bb8ff;
  --yellow: #ffcc00;
  --yellow-ink: #3d3100;

  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #eef2fb;
  --text: #0a1330;
  --muted: #4a5578;
  --line: #dbe2f1;
  --link: #1f4fd8;

  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(11, 31, 77, 0.06), 0 12px 32px -12px rgba(11, 31, 77, 0.18);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #070f26;
    --surface: #0d1a3d;
    --surface-2: #11214b;
    --text: #eef2ff;
    --muted: #a7b3d6;
    --line: #1f2f5e;
    --link: #8fcbff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #070f26;
  --surface: #0d1a3d;
  --surface-2: #11214b;
  --text: #eef2ff;
  --muted: #a7b3d6;
  --line: #1f2f5e;
  --link: #8fcbff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus {
  left: 16px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-name span {
  font-weight: 500;
  color: var(--yellow);
  margin-left: 4px;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 77, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: #d9e3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.nav ul a:hover {
  color: #fff;
}
.nav .cta-mini {
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 9px 16px;
  border-radius: 999px;
}
.nav .cta-mini:hover {
  color: var(--yellow-ink);
  filter: brightness(1.05);
}
.menu-btn {
  display: none;
}
@media (max-width: 760px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
    gap: 5px;
    align-content: center;
    width: 48px;
    height: 48px;
    margin-right: -6px;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-btn span:nth-child(2) {
    width: 18px;
    justify-self: end;
    background: var(--yellow);
  }
  .menu-open .menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav ul {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .menu-open .nav ul {
    display: flex;
  }
  .nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav ul li:last-child {
    border-bottom: 0;
    padding-top: 16px;
  }
  .nav ul a {
    display: block;
    padding: 16px 4px;
    font-size: 20px;
  }
  .nav ul a.cta-mini {
    text-align: center;
    padding: 14px 16px;
    font-size: 18px;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: #fff;
}
.btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, #1d3f99 0%, transparent 60%), var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap {
  position: relative;
  padding-top: 96px;
  padding-bottom: 120px;
}
.livery {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.livery i {
  position: absolute;
  right: -10%;
  height: 26px;
  width: 70%;
  transform: skewX(-28deg);
  border-radius: 4px;
}
.livery i:nth-child(1) {
  bottom: 120px;
  background: var(--yellow);
  width: 58%;
}
.livery i:nth-child(2) {
  bottom: 82px;
  background: var(--sky);
  width: 46%;
  opacity: 0.9;
}
.livery i:nth-child(3) {
  bottom: 56px;
  height: 10px;
  background: #fff;
  width: 34%;
  opacity: 0.85;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 4px;
  background: var(--yellow);
  transform: skewX(-28deg);
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 18px 0 22px;
  max-width: 14ch;
  text-transform: uppercase;
}
.hero h1 em {
  color: var(--yellow);
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #cfdbff;
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Secciones ---------- */
section {
  padding: 96px 0;
}
[id] {
  scroll-margin-top: 76px;
}
@media (max-width: 560px) {
  section {
    padding: 72px 0;
  }
  .hero .wrap {
    padding-top: 64px;
    padding-bottom: 150px;
  }
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  color: var(--blue);
}
.section-head .eyebrow::before {
  background: var(--blue);
}
:root[data-theme='dark'] .section-head .eyebrow,
:root[data-theme='dark'] .section-head .eyebrow::before {
  color: var(--sky);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .section-head .eyebrow {
    color: var(--sky);
  }
  :root:not([data-theme='light']) .section-head .eyebrow::before {
    background: var(--sky);
  }
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin: 14px 0 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

/* Pilares */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 56px;
  height: 5px;
  background: var(--yellow);
  transform: skewX(-28deg);
}
.pillar .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 18px;
}
:root[data-theme='dark'] .pillar .ico {
  color: var(--sky);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pillar .ico {
    color: var(--sky);
  }
}
.pillar .ico svg {
  width: 28px;
  height: 28px;
}
.pillar p {
  color: var(--muted);
  margin: 0;
}

/* Negocios */
.alt {
  background: var(--surface-2);
}
.ventures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .ventures {
    grid-template-columns: 1fr;
  }
}
.venture {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.venture .top {
  position: relative;
  min-height: 200px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.venture .top .tag {
  position: absolute;
  top: 22px;
  left: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
}
.venture .top .name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  text-transform: uppercase;
}
.venture.evalun .top {
  background: linear-gradient(135deg, #102a66 0%, #1f4fd8 100%);
}
.venture.evalun .top::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 40px;
  width: 260px;
  height: 22px;
  background: var(--yellow);
  transform: skewX(-28deg);
  box-shadow: 0 34px 0 -4px var(--sky);
}
.venture.remedios .top {
  background: linear-gradient(135deg, #07513b 0%, #0b6b4e 60%, #12916a 100%);
  justify-content: space-between;
}
.venture.remedios .top img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.venture .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.venture .body p {
  margin: 0;
  color: var(--muted);
}
.venture ul.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.venture ul.feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.venture ul.feats li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 6px;
  margin-top: 11px;
  background: var(--yellow);
  transform: skewX(-28deg);
}
.venture .more {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.venture .more:hover {
  text-decoration: underline;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.25);
}

/* Principios */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .principles {
    grid-template-columns: 1fr;
  }
}
.principle {
  padding: 32px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}
.principle .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--navy);
  margin-bottom: 10px;
}
:root[data-theme='dark'] .principle .num {
  -webkit-text-stroke: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .principle .num {
    -webkit-text-stroke: 0;
  }
}
.principle p {
  color: var(--muted);
  margin: 0;
}

/* Contacto */
.contact {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}
.contact h2 {
  color: #fff;
}
.contact p {
  color: #cfdbff;
  font-size: 20px;
  margin: 0;
}
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 18px;
}
.contact-card .row {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #fff;
}
.contact-card .row svg {
  width: 24px;
  height: 24px;
  color: var(--yellow);
  flex: none;
}
.contact-card a {
  color: #fff;
  font-weight: 700;
  word-break: break-all;
}
.contact .livery i {
  right: auto;
  left: -6%;
}
.contact .livery i:nth-child(1) {
  bottom: 52px;
  width: 26%;
  height: 16px;
}
.contact .livery i:nth-child(2) {
  bottom: 26px;
  width: 18%;
  height: 12px;
}
.contact .livery i:nth-child(3) {
  display: none;
}
@media (max-width: 900px) {
  .contact .livery {
    display: none;
  }
}

/* Pie */
footer {
  background: #050c22;
  color: #9fb0db;
  padding: 40px 0;
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
footer a {
  color: #d9e3ff;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- Páginas de texto (privacidad, términos, soporte) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  margin: 14px 0 12px;
}
.page-hero p {
  color: #cfdbff;
  margin: 0;
  max-width: 60ch;
}
.page-hero .livery i:nth-child(1) {
  bottom: 30px;
  width: 30%;
  height: 16px;
}
.page-hero .livery i:nth-child(2) {
  bottom: 8px;
  width: 22%;
  height: 12px;
}
.page-hero .livery i:nth-child(3) {
  display: none;
}
.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-id img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.prose {
  max-width: 760px;
  padding: 56px 0 88px;
}
.prose h2 {
  font-size: 30px;
  margin: 48px 0 12px;
}
.prose h3 {
  margin-top: 28px;
}
.prose p,
.prose li {
  color: var(--text);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose .updated {
  color: var(--muted);
  font-size: 15px;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.callout p {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  min-width: 520px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  margin: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 16px;
}
