:root {
  --bg: #14151A;
  --surface: #1D1F26;
  --surface-alt: #262832;
  --border: #2E313C;
  --text: #F5F5F7;
  --text-secondary: #9A9DAA;
  --accent: #FF5A1F;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabecera del sitio: logo + navegación de páginas, igual en las tres */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 21, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand .mark-small {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand .mark-small svg {
  width: 62%;
  height: 62%;
}

.brand span {
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

nav.site-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover { color: var(--text); }

nav.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Cabecera / hero (solo Inicio) */
header.hero {
  padding: 64px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 22%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -14px rgba(255, 90, 31, 0.55);
}

.mark svg {
  width: 60%;
  height: 60%;
}

header.hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

header.hero .tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

header.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 17px;
}

/* Cabecera simple de página legal (Privacidad / Términos) */
header.page-header {
  padding: 48px 0 8px;
}

header.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
}

section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}

/* "Qué ofrece": tarjetas de funcionalidad */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card .icon { font-size: 24px; margin-bottom: 10px; }

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Contacto */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.contact-card a {
  font-weight: 700;
  font-size: 17px;
}

/* Bloques legales */
.legal-updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
}

tr:last-child td { border-bottom: none; }

ul, ol {
  padding-left: 22px;
  color: var(--text);
}

li { margin-bottom: 6px; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

footer.site-footer {
  padding: 40px 0 48px;
  color: var(--text-secondary);
  font-size: 13px;
}

footer.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

footer.site-footer nav {
  display: flex;
  gap: 18px;
}

footer.site-footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

footer.site-footer nav a:hover { color: var(--accent); }
