/* Kuota · páginas legales (términos y privacidad) */
:root {
  --crema: #F3F7FA;
  --tinta: #211D1A;
  --arcilla: #97F211;
  --arcilla-texto: #4A7D00;
  --petroleo: #211D1A;
  --ocre: #F2B33D;
  --noche: #141210;
  --blanco: #FFFFFF;
  --menta: #E4F7C8;
  --gris: #5C5F66;
  --linea: #E1E6EC;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.cabecera, .legal, .pie {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Cabecera */
.cabecera { padding-top: 12px; padding-bottom: 4px; }

.volver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--petroleo);
  font-weight: 700;
  text-decoration: none;
}
.volver img { flex: none; border-radius: 7px; }
.volver:hover { text-decoration: underline; }

/* Títulos */
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

h1 {
  margin: 12px 0 4px;
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2.125rem, 9vw, 3rem);
  font-weight: 400;
  color: var(--noche);
}

h2 {
  margin: 0 0 10px;
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--noche);
}

h3 {
  margin: 22px 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--arcilla-texto);
}

.version { margin: 0 0 22px; color: var(--gris); font-size: .9375rem; }

/* Texto */
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.25rem; }
li { margin-bottom: 7px; }
li::marker { color: var(--arcilla-texto); }

a { color: var(--petroleo); text-underline-offset: 2px; }
a:hover { color: var(--arcilla-texto); }
a:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; border-radius: 3px; }

strong { font-weight: 700; }

/* Datos por completar: deben verse a simple vista */
mark {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ocre);
  color: var(--tinta);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Resumen */
.corto {
  margin: 0 0 20px;
  padding: 18px 16px 8px;
  border-radius: 14px;
  background: var(--noche);
  color: var(--blanco);
}
.corto h2 { color: var(--blanco); }
.corto li::marker { color: var(--ocre); }
.corto a { color: var(--blanco); }
.corto a:hover { color: var(--ocre); }

/* Índice */
.indice {
  margin: 0 0 8px;
  padding: 16px;
  border: 1px solid var(--linea);
  border-radius: 14px;
  background: var(--blanco);
}
.indice h2 { font-size: 1.0625rem; }
.indice ol { margin: 0; padding-left: 1.75rem; }
.indice li { margin-bottom: 2px; }
.indice a { display: inline-block; padding: 5px 0; }

/* Secciones */
section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
}
section > :last-child { margin-bottom: 0; }

/* Planes y proveedores */
dl { display: grid; gap: 10px; margin: 0 0 14px; }

dl > div {
  padding: 13px 14px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--blanco);
}
dt { font-weight: 700; color: var(--petroleo); }
dd { margin: 3px 0 0; }

/* Normas citadas */
.normas {
  margin-top: 32px;
  padding: 18px 16px 8px;
  border: 0;
  border-radius: 14px;
  background: var(--menta);
  font-size: .9375rem;
}
.normas h2 { font-size: 1.0625rem; }
.normas > :last-child { margin-bottom: 8px; }

/* Pie */
.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  margin-top: 16px;
  padding-top: 12px;
  padding-bottom: 32px;
}
.pie p { margin: 0; }
.pie a { display: inline-block; padding: 8px 0; }

@media (min-width: 600px) {
  .planes { grid-template-columns: 1fr 1fr; }
  .corto, .normas { padding: 22px 24px 12px; }
  .indice { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .cabecera, .indice, .pie { display: none; }
  .corto, .normas { background: none; color: inherit; border: 1px solid #999; }
  .corto h2 { color: inherit; }
  .corto a { color: inherit; }
  section { break-inside: avoid-page; }
}

/* Sin el resaltado azul de Android al tocar; el borde de foco queda solo para teclado */
html{-webkit-tap-highlight-color:transparent}
:focus:not(:focus-visible){outline:none}
