/* ============================================================
   Río Rhin 29 — Rediseño 2026
   Fondo blanco, alta legibilidad, pensado para móvil y para
   personas mayores: letra grande, alto contraste, botones amplios.
   ============================================================ */

:root {
	--tinta:        #1d2733;   /* texto principal */
	--tinta-suave:  #46566a;   /* texto secundario */
	--azul:         #0b4f8a;   /* acento principal */
	--azul-oscuro:  #083a66;
	--azul-claro:   #eaf2fa;
	--fondo:        #ffffff;
	--fondo-suave:  #f5f8fb;
	--borde:        #d7e1ec;
	--rojo:         #b3261e;   /* adeudos */
	--verde:        #1e6f3e;
	--radio:        12px;
	--sombra:       0 2px 10px rgba(16, 42, 67, 0.08);
}

* { box-sizing: border-box; }

html {
	font-size: 112.5%;              /* 18px base: cómodo para la vista */
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--fondo);
	color: var(--tinta);
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.65;
}

/* ---------- Tipografía ---------- */

h1, h2, h3 {
	color: var(--azul-oscuro);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }

p  { margin: 0 0 1em; }

a  { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--azul-oscuro); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
	outline: 3px solid #4d9de0;
	outline-offset: 2px;
}

hr {
	border: none;
	border-top: 2px solid var(--borde);
	margin: 2.5rem 0;
}

/* Enlace "saltar al contenido" (accesibilidad) */
.saltar {
	position: absolute;
	left: -9999px;
	background: var(--azul);
	color: #fff;
	padding: 0.6em 1em;
}
.saltar:focus { left: 0; top: 0; z-index: 100; }

/* ---------- Contenedor ---------- */

.contenedor {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.1rem;
}

/* ---------- Barra de navegación ---------- */

.barra {
	background: var(--azul-oscuro);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.barra__interior {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	min-height: 62px;
}

.barra__marca {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
	padding: 0.5rem 0;
}
.barra__marca:hover, .barra__marca:focus { color: #cfe3f7; }

.barra__caja { display: none; }

.barra__boton {
	display: none;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	padding: 0.55rem 0.9rem;
	border: 2px solid rgba(255,255,255,0.55);
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
}

.barra__enlaces {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}

.barra__enlaces a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 0.9rem 0.8rem;
	border-radius: 8px;
}

.barra__enlaces a:hover,
.barra__enlaces a:focus,
.barra__enlaces a.activo {
	background: rgba(255,255,255,0.14);
	color: #fff;
}

.barra__cta {
	background: #fff;
	color: var(--azul-oscuro) !important;
	margin-left: 0.4rem;
}
.barra__cta:hover, .barra__cta:focus { background: #dcebf9 !important; }

/* Menú en pantallas chicas */
@media (max-width: 820px) {
	.barra__boton { display: inline-block; }
	.barra__enlaces {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding-bottom: 0.8rem;
	}
	.barra__caja:checked ~ .barra__enlaces { display: flex; }
	.barra__enlaces a { padding: 0.95rem 0.9rem; font-size: 1.1rem; }
	.barra__cta { margin-left: 0; text-align: center; }
}

/* ---------- Portada de página ---------- */

.portada {
	background: linear-gradient(180deg, var(--azul-claro) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--borde);
	padding: 2.2rem 0 1.8rem;
	text-align: center;
}

.portada--grande { padding: 3.2rem 0 2.6rem; }

.portada__ceja {
	color: var(--tinta-suave);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.portada h1 { margin-bottom: 0.3rem; }

.portada__sub {
	color: var(--tinta-suave);
	font-size: 1.1rem;
	max-width: 620px;
	margin: 0 auto;
}

/* ---------- Contenido principal ---------- */

main { padding: 1.8rem 1.1rem 3rem; }

.seccion { margin-bottom: 2.4rem; }

/* Tarjetas */
.tarjeta {
	background: var(--fondo-suave);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 1.4rem 1.5rem;
	margin: 1.2rem 0;
	box-shadow: var(--sombra);
}

.tarjeta--blanca { background: #fff; }

.rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.2rem;
	margin: 1.4rem 0;
}

.rejilla .tarjeta { margin: 0; display: flex; flex-direction: column; }
.rejilla .tarjeta p { flex-grow: 1; }
.rejilla .tarjeta h2, .rejilla .tarjeta h3 { margin-top: 0; }

/* Avisos */
.aviso {
	background: var(--azul-claro);
	border-left: 6px solid var(--azul);
	border-radius: 8px;
	padding: 1rem 1.2rem;
	margin: 1.3rem 0;
}

.aviso--alerta {
	background: #fdf0ef;
	border-left-color: var(--rojo);
}

.aviso p:last-child { margin-bottom: 0; }

/* ---------- Botones ---------- */

.boton {
	display: inline-block;
	background: var(--azul);
	color: #fff !important;
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 0.85rem 1.7rem;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	min-height: 48px;
	text-align: center;
}

.boton:hover, .boton:focus { background: var(--azul-oscuro); }

.boton--verde {
	background: var(--verde);
}
.boton--verde:hover, .boton--verde:focus { background: #14512c; }

.boton--secundario {
	background: #fff;
	color: var(--azul-oscuro) !important;
	border: 2px solid var(--azul);
}
.boton--secundario:hover, .boton--secundario:focus {
	background: var(--azul-claro);
	color: var(--azul-oscuro) !important;
}

.boton--ancho { display: block; width: 100%; }

/* ---------- Formularios ---------- */

label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
	color: var(--azul-oscuro);
}

input[type="text"],
input[type="password"],
select {
	width: 100%;
	font-size: 1.1rem;
	font-family: inherit;
	color: var(--tinta);
	background: #fff;
	border: 2px solid var(--borde);
	border-radius: 10px;
	padding: 0.8rem 0.9rem;
	margin-bottom: 1.1rem;
	min-height: 52px;
}

input:focus, select:focus { border-color: var(--azul); }

select { max-width: 26rem; }

.formulario-acceso { max-width: 26rem; }

/* ---------- Tablas ---------- */

.tabla-envoltura {
	overflow-x: auto;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	box-shadow: var(--sombra);
	margin: 1.3rem 0;
	background: #fff;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

thead th {
	background: var(--azul-oscuro);
	color: #fff;
	text-align: left;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.85rem 1rem;
	white-space: nowrap;
}

tbody td {
	padding: 0.8rem 1rem;
	border-top: 1px solid var(--borde);
	vertical-align: top;
}

tbody tr:nth-child(even) { background: var(--fondo-suave); }

td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.rojo { color: var(--rojo); font-weight: 700; }

/* Fila de total al final de una tabla */
tr.fila-total td {
	background: var(--azul-oscuro);
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	border-top: 3px solid var(--azul);
}

/* ---------- Gráficas ---------- */

.grafica {
	max-width: 640px;
	margin: 1.4rem auto;
	background: #fff;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 1.2rem;
	box-shadow: var(--sombra);
}

/* ---------- Visor PDF (CFE) ---------- */

.visor-pdf {
	width: 100%;
	height: 75vh;
	min-height: 420px;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	box-shadow: var(--sombra);
	margin: 1.3rem 0;
}

@media (max-width: 700px) {
	.visor-pdf { height: 60vh; }
}

.acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 1.2rem 0;
}

/* ---------- Listas de precios / cuotas ---------- */

.cuotas {
	list-style: none;
	padding: 0;
	margin: 1.2rem 0;
}

.cuotas li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	background: #fff;
	border: 1px solid var(--borde);
	border-radius: 10px;
	padding: 0.9rem 1.2rem;
	margin-bottom: 0.7rem;
	flex-wrap: wrap;
}

.cuotas .monto {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--azul-oscuro);
	white-space: nowrap;
}

/* ---------- Reglamento ---------- */

.indice {
	background: var(--fondo-suave);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 1.1rem 1.4rem;
	margin: 1.4rem 0;
}

.indice ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.indice li { margin-bottom: 0.35rem; }

.regla-lista { padding-left: 1.3rem; }
.regla-lista li { margin-bottom: 0.9rem; }

/* ---------- Pie de página ---------- */

.pie {
	background: var(--azul-oscuro);
	color: #e8eef5;
	margin-top: 3rem;
	padding: 2.4rem 0 1.4rem;
}

.pie h2 {
	color: #fff;
	font-size: 1.15rem;
	margin-top: 0;
}

.pie a { color: #bcd9f5; font-weight: 600; }
.pie a:hover, .pie a:focus { color: #ffffff; }

.pie__rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.6rem;
}

.pie__copy {
	text-align: center;
	color: #9fb6cd;
	font-size: 0.9rem;
	margin: 2rem 0 0;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255,255,255,0.18);
}

/* ---------- Utilidades ---------- */

.centrado { text-align: center; }
.texto-suave { color: var(--tinta-suave); }
.sin-margen-sup { margin-top: 0; }
