@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*
	Rhin29 — Capa de rediseño "Corporativo limpio" (blanco y negro).
	Se carga DESPUÉS de main.css y refina la plantilla Stellar:
	tipografía sans-serif sobria (Inter), líneas finas, navegación superior fija,
	botones de contorno fino, imágenes discretas y tablas profesionales.
*/

:root {
	--ink:        #141414;   /* texto principal / negro suave   */
	--ink-soft:   #3d3d3d;   /* cuerpo de texto                 */
	--muted:      #777777;   /* texto secundario / etiquetas    */
	--line:       #e6e6e6;   /* líneas finas (hairlines)        */
	--line-mid:   #cfcfcf;   /* bordes de botones / inputs      */
	--line-strong:#141414;   /* líneas de énfasis               */
	--paper:      #ffffff;   /* fondo                           */
	--paper-soft: #f6f6f6;   /* hover / zonas suaves            */
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--maxw: 64rem;
	--bar-h: 3.75rem;
}

/* ---------------------------------------------------------------- Base */

html { font-size: 16px; }

body,
body input, body select, body textarea {
	font-family: var(--sans);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--ink-soft);
	background: var(--paper);
}

body { padding-top: var(--bar-h); }

#wrapper { padding: 0; }

#main {
	border-radius: 0;
	color: var(--ink-soft);
}

/* Contenedor centrado para todas las secciones */
#main > section,
#main > section.main {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 3rem 2rem;
	border-bottom: 1px solid var(--line);
}
#main > section:last-child { border-bottom: 0; }

@media screen and (max-width: 736px) {
	#main > section,
	#main > section.main { padding: 2.25rem 1.25rem; }
}

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

#main h1, #main h2, #main h3, #main h4, #main h5, #main h6,
#header h1, #header h2, #footer h2 {
	font-family: var(--sans);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

#main h1 { font-size: 1.9rem; margin: 0 0 1rem; }
#main h2 {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--line);
}
#main h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 0.6rem; }

#main p {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 1.1rem;
}

#main strong, #main b { color: var(--ink); font-weight: 600; }

#main a {
	color: var(--ink);
	border-bottom: 1px solid var(--line-mid);
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
#main a:hover { color: #000; border-bottom-color: #000; }

#main hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2rem 0;
}

/* Subtítulo / etiqueta superior discreta */
.eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.6rem;
}

/* ------------------------------------------------------- Barra superior */

#sitebar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--bar-h);
	background: rgba(255,255,255,0.96);
	-webkit-backdrop-filter: saturate(180%) blur(6px);
	backdrop-filter: saturate(180%) blur(6px);
	border-bottom: 1px solid var(--line);
	z-index: 11000;
}
.sitebar__inner {
	max-width: 72rem;
	height: 100%;
	margin: 0 auto;
	padding: 0 1.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.sitebar__brand {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ink) !important;
	text-decoration: none;
	white-space: nowrap;
	border: 0 !important;
}
.sitebar__links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin: 0; padding: 0;
}
.sitebar__links a {
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted) !important;
	text-decoration: none;
	border: 0 !important;
	padding: 0.3rem 0;
	transition: color .15s ease;
}
.sitebar__links a:hover { color: var(--ink) !important; }
.sitebar__cta {
	color: var(--ink) !important;
	border: 1px solid var(--line-mid) !important;
	border-radius: 4px;
	padding: 0.4rem 0.9rem !important;
	transition: border-color .15s ease, background .15s ease;
}
.sitebar__cta:hover { border-color: var(--ink) !important; background: var(--paper-soft); }

@media screen and (max-width: 820px) {
	#sitebar { height: auto; position: sticky; }
	body { padding-top: 0; }
	.sitebar__inner {
		flex-direction: column;
		gap: 0.6rem;
		padding: 0.8rem 1.1rem;
	}
	.sitebar__links { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
}

/* ------------------------------------------------------------- Encabezado */

#header {
	background: var(--paper);
	color: var(--ink);
	text-align: center;
	padding: 3rem 2rem 2.5rem;
	border-bottom: 1px solid var(--line);
}
#header.alt { padding: 3.5rem 2rem 3rem; }
#header .logo img {
	width: 48px; height: 48px;
	object-fit: contain;
	margin-bottom: 0.9rem;
}
#header h1 {
	font-size: 2.1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}
#header.alt h1 { font-size: 2.4rem; }
#header p {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

@media screen and (max-width: 736px) {
	#header h1, #header.alt h1 { font-size: 1.75rem; }
	#header, #header.alt { padding: 2.25rem 1.25rem 2rem; }
}

/* La navegación de anclas original de la portada se reemplaza por #sitebar */
#nav { display: none !important; }

/* ----------------------------------------------------------- Spotlight/Home */

.spotlight {
	display: flex;
	align-items: center;
	gap: 2.25rem;
}
.spotlight .content { flex: 1; }
/* Quitamos el contenedor circular original de la plantilla (el "aro" ovalado) */
.spotlight .image,
#main .spotlight .image {
	display: block;
	flex: 0 0 38%;
	max-width: 360px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px;
}
.spotlight .image img,
#main .spotlight .image img {
	display: block;
	width: 100% !important;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--line);
}

@media screen and (max-width: 736px) {
	.spotlight { flex-direction: column; gap: 1.25rem; }
	.spotlight .image, #main .spotlight .image { flex: none; max-width: 280px; }
}

#main .major { margin-bottom: 0.8rem; }

/* ----------------------------------------------------------------- Botones */
/* Contorno fino, texto normal (sin mayúsculas forzadas) */

#main .button,
#main input[type="submit"],
#main input[type="button"],
#main button {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	height: auto;
	line-height: 1.2;
	padding: 0.62em 1.4em;
	border: 1px solid var(--line-mid) !important;
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink) !important;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
#main .button:hover,
#main button:hover {
	border-color: var(--ink) !important;
	background: var(--ink);
	color: #fff !important;
}
/* El texto interno (a veces va dentro de <strong>/<i>) sigue el color del botón */
#main .button strong, #main .button b, #main .button i,
#main button strong, #main button b, #main button i,
#main input[type="submit"] strong, #main input[type="submit"] i {
	color: inherit !important;
	font-style: normal;
}
/* Acción principal (p. ej. "Entrar"): mismo contorno fino, un poco más marcado */
#main .button.primary,
#main button.primary,
#main input[type="submit"].primary {
	font-weight: 600;
	border-color: var(--ink) !important;
	background: var(--paper);
	color: var(--ink) !important;
}
#main .button.primary:hover,
#main button.primary:hover {
	background: var(--ink);
	color: #fff !important;
}

.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0 0; }
.actions.special { justify-content: center; }
.actions li { padding: 0 !important; }

/* ----------------------------------------------------------------- Formulario */

#main label {
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-soft);
}
#main input[type="text"],
#main input[type="password"],
#main input[type="email"],
#main select,
#main textarea {
	background: var(--paper);
	border: 1px solid var(--line-mid);
	border-radius: 4px;
	color: var(--ink);
	height: 2.9em;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#main textarea { height: auto; }
#main input:focus,
#main select:focus,
#main textarea:focus {
	border-color: var(--ink);
	box-shadow: 0 0 0 1px var(--ink);
}
#main ::-webkit-input-placeholder { color: var(--muted) !important; }
#main ::placeholder { color: var(--muted) !important; }

/* Caja de "Ayuda" / citas */
#main blockquote {
	font-style: normal;
	font-size: 0.95rem;
	color: var(--ink-soft);
	background: var(--paper-soft);
	border: 0;
	border-left: 3px solid var(--ink);
	margin: 1.2rem 0;
	padding: 0.9rem 1.1rem;
	border-radius: 0 4px 4px 0;
}

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

#main .table-card {
	overflow-x: auto;
	margin: 1.2rem 0 1.6rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	-webkit-overflow-scrolling: touch;
}
#main table {
	width: 100%;
	margin: 1.2rem 0 1.6rem;
	border-collapse: collapse;
	font-size: 0.92rem;
}
#main .table-card table { margin: 0; }
#main table thead th {
	background: var(--paper-soft);
	color: var(--ink);
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	padding: 0.7rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--line-mid);
	white-space: nowrap;
}
#main table tbody td {
	padding: 0.7rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink-soft);
	vertical-align: top;
}
#main table tbody tr { background: transparent !important; }
#main table tbody tr:last-child td { border-bottom: 0; }
#main table tbody tr:hover { background: var(--paper-soft) !important; }
#main table tbody td:first-child { color: var(--ink); font-weight: 500; }

/* Calendario de terrazas */
.cal-table td .cal-when {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 600;
	color: var(--ink);
}
.cal-table td .cal-suite { font-weight: 600; color: var(--ink); }

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

#main .myChart {
	max-width: 480px;
	margin: 1.2rem auto 1.6rem;
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: 6px;
}

/* --------------------------------------------------- Imágenes de contenido */
/* Más pequeñas y discretas; sin filtros de color */

#main .image.left img,
#main .image.right img {
	max-width: 150px;
	height: auto;
	border-radius: 4px;
	border: 1px solid var(--line);
}
#main .image.left { margin: 0 1.25rem 0.5rem 0; }
#main .image.right { margin: 0 0 0.5rem 1.25rem; }

#main .image.main img {
	max-width: 420px;
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 1.5rem;
	border-radius: 4px;
	border: 1px solid var(--line);
}

@media screen and (max-width: 480px) {
	#main .image.left img,
	#main .image.right img { max-width: 110px; }
}

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

#footer {
	background: #111111;
	color: rgba(255,255,255,0.72);
	max-width: none;
	margin-top: 0;
	padding: 3rem 2rem 2rem;
	border-top: 0;
}
#footer > section {
	max-width: var(--maxw);
	margin-left: auto;
	margin-right: auto;
}
#footer h2 {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 0.8rem;
}
#footer p, #footer dd { color: rgba(255,255,255,0.72); }
#footer dt { color: #fff; font-weight: 600; }
#footer a { color: #fff; }
#footer .copyright {
	max-width: var(--maxw);
	margin: 2rem auto 0;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255,255,255,0.16);
	font-size: 0.82rem;
	color: rgba(255,255,255,0.5);
}
