/* CITROSURESTE, S.L. · hoja de estilos única (adaptada de la de MEDICI BUILDING SL).
   Sin fuentes externas, sin imágenes de terceros, sin JavaScript y sin cookies. */

:root {
  --tinta: #1c2430;
  --tinta-suave: #4a5565;
  --fondo: #ffffff;
  --fondo-alterno: #f3f5ee;
  --acento: #2e6436;        /* verde hoja; contraste 7,0:1 sobre blanco y 6,3:1 sobre el fondo alterno */
  --borde: #dcd7cf;
  --pendiente-fondo: #fff3b0;
  --pendiente-tinta: #5c4500;
  --ancho: 68rem;
  --radio: 0.5rem;
  font-size: 100%;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
}

a { color: var(--acento); text-underline-offset: 0.15em; }
a:hover, a:focus-visible { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.saltar {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tinta);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.saltar:focus { left: 1rem; top: 1rem; color: #fff; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Cabecera */
.cabecera {
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
}
.cabecera .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.marca {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  min-height: 48px;
  align-items: center;
}
.marca span { color: var(--acento); font-weight: 700; }
.navegacion ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.navegacion a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--tinta-suave);
  font-weight: 500;
}
.navegacion a:hover,
.navegacion a:focus-visible,
.navegacion a[aria-current="page"] { color: var(--acento); text-decoration: underline; }

/* Portada */
.portada {
  background: var(--fondo-alterno);
  border-bottom: 1px solid var(--borde);
}
.portada .contenedor { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.portada h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
.portada .entradilla {
  font-size: 1.2rem;
  color: var(--tinta-suave);
  max-width: 40rem;
  margin: 0;
}

/* Secciones */
main { display: block; }
.seccion { padding: 3rem 0; }
.seccion + .seccion { border-top: 1px solid var(--borde); }
h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; max-width: 46rem; }

.rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .rejilla { grid-template-columns: repeat(2, 1fr); }
}

.tarjeta {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.25rem 1.5rem;
  background: var(--fondo);
}
.tarjeta h3 { margin-top: 0; }

/* Lista de datos (definiciones) */
.datos { margin: 0; }
.datos div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--borde);
}
.datos div:last-child { border-bottom: 0; }
.datos dt { font-weight: 600; color: var(--tinta-suave); font-size: 0.95rem; }
.datos dd { margin: 0; }
@media (min-width: 40rem) {
  .datos div { grid-template-columns: 14rem 1fr; gap: 1rem; }
}

.sin-corte { white-space: nowrap; }

/* Marcadores de datos pendientes de aprobación: deben verse a simple vista. */
.pendiente {
  background: var(--pendiente-fondo);
  color: var(--pendiente-tinta);
  border: 1px dashed var(--pendiente-tinta);
  border-radius: 0.25rem;
  padding: 0 0.3rem;
  font-weight: 600;
  white-space: normal;
}

.texto-legal h2 { margin-top: 2.5rem; }
.texto-legal h2:first-of-type { margin-top: 0; }
.texto-legal ul { max-width: 46rem; padding-left: 1.25rem; }
.texto-legal li { margin-bottom: 0.4rem; }
.nota { font-size: 0.95rem; color: var(--tinta-suave); }

/* Pie */
.pie {
  background: var(--tinta);
  color: #e8e6e1;
  padding: 2rem 0;
  font-size: 0.95rem;
}
.pie a { color: #f6d58a; }
.pie a:hover, .pie a:focus-visible { color: #fff; }
.pie ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.pie li a { display: inline-flex; align-items: center; min-height: 48px; }
.pie p { margin: 0 0 0.4rem; max-width: none; }
.pie .pendiente { background: #fff3b0; color: #5c4500; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .cabecera nav, .saltar { display: none; }
  .pie { background: none; color: #000; }
  .pie a { color: #000; }
}
