/*
Theme Name: Grupo RT
Theme URI: https://www.rtsl.es/
Description: Tema hijo de Astra para la web corporativa de Grupo RT (Restauradores Telemáticos SLU). Home corporativa, registro de participadas, páginas de sector y ficha de proyecto.
Author: RTechnology
Author URI: https://www.rtechnology.es/
Template: astra
Version: 1.0.2
Text Domain: rt-astra-child
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
	--rt-paper: #f3f2ed;
	--rt-surface: #fbfaf7;
	--rt-ink: #0b2b2a;
	--rt-ink-soft: #14403d;
	--rt-text: #15201e;
	--rt-muted: #5c6b67;
	--rt-brass: #8a6614;
	--rt-brass-bright: #a8802c;
	--rt-line: rgba(11, 43, 42, 0.16);
	--rt-line-soft: rgba(11, 43, 42, 0.08);
	--rt-on-ink: #edf1ee;
	--rt-on-ink-muted: #9db2ac;
	--rt-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rt-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--rt-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--rt-wrap: 1180px;
}

/* ============================================================
   2. Base y anulación del contenedor de Astra
   ============================================================ */
body.rt-full {
	background: var(--rt-paper);
	color: var(--rt-text);
	font-family: var(--rt-body);
	font-size: 17px;
	line-height: 1.62;
}

body.rt-full #content .ast-container,
body.rt-full .site-content > .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	display: block;
}

body.rt-full #primary,
body.rt-full .content-area {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
}

body.rt-full .ast-separate-container .ast-article-single,
body.rt-full .ast-separate-container #primary {
	background: transparent;
	padding: 0;
	border: 0;
	box-shadow: none;
}

body.rt-full .entry-content > :where(*) {
	margin-block-start: 0;
}

body.rt-full h1,
body.rt-full h2,
body.rt-full h3,
body.rt-full h4 {
	font-family: var(--rt-display);
	font-weight: 600;
	line-height: 1.1;
	text-wrap: balance;
	color: var(--rt-text);
	margin: 0;
}

body.rt-full p {
	margin: 0;
}

.rt-wrap {
	max-width: var(--rt-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.rt-lbl {
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rt-muted);
	font-weight: 500;
}

.rt-rule {
	height: 2px;
	width: 52px;
	background: var(--rt-brass);
	border: 0;
	margin: 0;
}

.rt-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--rt-display);
	font-weight: 600;
	font-size: 14px;
	background: var(--rt-ink);
	color: var(--rt-on-ink);
	border: 1px solid var(--rt-ink);
	padding: 12px 20px;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.rt-btn:hover,
.rt-btn:focus {
	background: var(--rt-ink-soft);
	color: var(--rt-on-ink);
}

.rt-btn.is-ghost {
	background: transparent;
	color: var(--rt-text);
	border-color: var(--rt-line);
}

.rt-btn.is-ghost:hover {
	background: transparent;
	border-color: var(--rt-brass);
	color: var(--rt-text);
}

body.rt-full :focus-visible {
	outline: 2px solid var(--rt-brass-bright);
	outline-offset: 3px;
}

/* ============================================================
   3. Cabecera y pie de Astra, vestidos de Grupo RT
   ============================================================ */
body.rt-full .ast-primary-header-bar,
body.rt-full .main-header-bar,
body.rt-full .site-header {
	background: var(--rt-surface);
	border-bottom: 1px solid var(--rt-line);
}

body.rt-full .main-header-menu a,
body.rt-full .ast-header-break-point .main-navigation a {
	font-family: var(--rt-display);
	font-size: 14px;
	font-weight: 500;
	color: var(--rt-text);
}

body.rt-full .main-header-menu > li > a:hover {
	color: var(--rt-brass);
}

body.rt-full .site-footer,
body.rt-full .ast-small-footer {
	background: var(--rt-ink-soft);
	color: var(--rt-on-ink-muted);
	font-family: var(--rt-body);
}

body.rt-full .site-footer a {
	color: var(--rt-on-ink);
}

body.rt-full .site-footer a:hover {
	color: var(--rt-brass-bright);
}

/* ============================================================
   4. Portada
   ============================================================ */
.rt-hero {
	padding: 88px 0 64px;
	border-bottom: 1px solid var(--rt-line);
}

.rt-hero-grid {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr;
	gap: 64px;
	align-items: end;
}

.rt-hero h1 {
	font-size: clamp(38px, 5.4vw, 66px);
	letter-spacing: -0.025em;
	margin: 18px 0 0;
}

.rt-hero h1 em {
	font-family: var(--rt-body);
	font-style: italic;
	font-weight: 400;
	color: var(--rt-brass);
}

.rt-lede {
	margin-top: 26px;
	font-size: 19px;
	max-width: 36em;
	color: var(--rt-muted);
}

.rt-acciones {
	display: flex;
	gap: 12px;
	margin-top: 34px;
	flex-wrap: wrap;
}

.rt-hero-side {
	border-left: 1px solid var(--rt-line);
	padding-left: 32px;
}

.rt-hero-side dl {
	margin: 0;
	display: grid;
	gap: 22px;
}

.rt-hero-side dt {
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rt-muted);
}

.rt-hero-side dd {
	margin: 4px 0 0;
	font-family: var(--rt-display);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--rt-text);
}

.rt-hero-side dd small {
	display: block;
	font-family: var(--rt-body);
	font-size: 14px;
	font-weight: 400;
	color: var(--rt-muted);
	letter-spacing: 0;
	margin-top: 2px;
}

.rt-band {
	padding: 72px 0;
	border-bottom: 1px solid var(--rt-line);
}

.rt-band-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 38px;
	flex-wrap: wrap;
}

.rt-band-head h2 {
	font-size: clamp(26px, 3.2vw, 36px);
	letter-spacing: -0.02em;
	margin-top: 12px;
}

.rt-band-head p {
	color: var(--rt-muted);
	max-width: 34em;
	margin-top: 10px;
}

.rt-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--rt-line-soft);
	border: 1px solid var(--rt-line-soft);
}

.rt-cols > div {
	background: var(--rt-paper);
	padding: 28px 24px;
}

.rt-cols h3 {
	font-size: 17px;
	margin-bottom: 10px;
}

.rt-cols p {
	font-size: 15.5px;
	color: var(--rt-muted);
}

.rt-cols .rt-lbl {
	display: block;
	margin-bottom: 14px;
	color: var(--rt-brass);
}

.rt-caps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 56px;
}

.rt-cap {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	padding: 26px 0;
	border-top: 1px solid var(--rt-line-soft);
}

.rt-cap .rt-idx {
	font-family: var(--rt-mono);
	font-size: 12px;
	color: var(--rt-brass);
	padding-top: 5px;
}

.rt-cap h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.rt-cap p {
	color: var(--rt-muted);
	font-size: 15.5px;
}

.rt-close {
	background: var(--rt-ink);
	padding: 76px 0;
}

.rt-close h2,
.rt-close .rt-lbl {
	color: var(--rt-on-ink);
}

.rt-close .rt-lbl {
	color: var(--rt-brass-bright);
}

.rt-close h2 {
	font-size: clamp(28px, 3.6vw, 42px);
	letter-spacing: -0.02em;
}

.rt-close p {
	color: var(--rt-on-ink-muted);
	margin-top: 16px;
	max-width: 34em;
}

.rt-close-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 56px;
	align-items: center;
}

.rt-close .rt-btn {
	background: var(--rt-brass-bright);
	border-color: var(--rt-brass-bright);
	color: #1a1204;
}

.rt-close .rt-btn:hover {
	background: var(--rt-brass);
	border-color: var(--rt-brass);
	color: #fff;
}

.rt-close .rt-btn.is-ghost {
	background: transparent;
	color: var(--rt-on-ink);
	border-color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   5. Registro de participadas
   ============================================================ */
.rt-filtros {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.rt-chip {
	font-family: var(--rt-mono);
	font-size: 11.5px;
	letter-spacing: 0.05em;
	background: transparent;
	color: var(--rt-muted);
	border: 1px solid var(--rt-line);
	padding: 7px 12px;
	border-radius: 2px;
	cursor: pointer;
	transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.rt-chip:hover {
	color: var(--rt-text);
	border-color: var(--rt-brass);
}

.rt-chip[aria-pressed="true"] {
	background: var(--rt-ink);
	border-color: var(--rt-ink);
	color: var(--rt-on-ink);
}

.rt-registro-cuenta {
	margin-bottom: 16px;
}

.rt-table-scroll {
	overflow-x: auto;
}

.rt-tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	margin: 0;
}

.rt-tabla th {
	text-align: left;
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rt-muted);
	font-weight: 500;
	padding: 0 14px 12px 0;
	border-bottom: 1px solid var(--rt-line);
	background: transparent;
}

.rt-tabla td {
	padding: 16px 14px 16px 0;
	border-bottom: 1px solid var(--rt-line-soft);
	vertical-align: top;
	background: transparent;
}

.rt-tabla tr:hover td {
	background: var(--rt-surface);
}

.rt-tabla .rt-anio {
	font-family: var(--rt-mono);
	font-size: 13.5px;
	color: var(--rt-muted);
	font-variant-numeric: tabular-nums;
	width: 66px;
	white-space: nowrap;
}

.rt-tabla .rt-nombre {
	font-family: var(--rt-display);
	font-weight: 600;
	font-size: 16.5px;
	letter-spacing: -0.01em;
}

.rt-tabla .rt-nombre a {
	text-decoration: none;
	color: var(--rt-text);
	border-bottom: 1.5px solid transparent;
}

.rt-tabla .rt-nombre a:hover {
	border-bottom-color: var(--rt-brass);
}

.rt-desc {
	display: block;
	margin-top: 3px;
	color: var(--rt-muted);
	font-size: 15px;
	font-family: var(--rt-body);
	font-weight: 400;
	letter-spacing: 0;
}

.rt-tag {
	display: inline-block;
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	border: 1px solid var(--rt-line);
	color: var(--rt-muted);
	padding: 3px 8px;
	border-radius: 2px;
	white-space: nowrap;
}

.rt-col-sector {
	width: 172px;
}

.rt-col-web {
	width: 52px;
	text-align: right;
}

.rt-col-web a {
	color: var(--rt-brass);
	text-decoration: none;
	font-family: var(--rt-mono);
	font-size: 15px;
}

/* ============================================================
   6. Sector y ficha
   ============================================================ */
.rt-page-head {
	padding: 60px 0 40px;
	border-bottom: 1px solid var(--rt-line);
	background: var(--rt-surface);
}

.rt-page-head h1 {
	font-size: clamp(32px, 4.4vw, 52px);
	letter-spacing: -0.025em;
	margin-top: 14px;
}

.rt-page-head p {
	color: var(--rt-muted);
	margin-top: 16px;
	max-width: 38em;
}

.rt-crumbs {
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rt-muted);
}

.rt-crumbs a {
	color: var(--rt-brass);
	text-decoration: none;
}

.rt-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.rt-card {
	border: 1px solid var(--rt-line);
	background: var(--rt-surface);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rt-card h3 {
	font-size: 19px;
}

.rt-card h3 a {
	color: var(--rt-text);
	text-decoration: none;
}

.rt-card h3 a:hover {
	color: var(--rt-brass);
}

.rt-card p {
	color: var(--rt-muted);
	font-size: 15.5px;
	flex: 1;
}

.rt-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--rt-line-soft);
}

.rt-card-meta a {
	font-family: var(--rt-mono);
	font-size: 12px;
	color: var(--rt-brass);
	text-decoration: none;
}

.rt-ficha {
	display: grid;
	grid-template-columns: 1.5fr 0.8fr;
	gap: 56px;
	padding: 56px 0;
}

.rt-ficha .entry-content h2 {
	font-size: 24px;
	margin: 34px 0 14px;
}

.rt-ficha .entry-content p {
	margin-bottom: 14px;
}

.rt-ficha .entry-content img {
	height: auto;
	max-width: 100%;
	margin: 22px 0;
}

.rt-datos {
	border: 1px solid var(--rt-line);
	background: var(--rt-surface);
	padding: 26px;
	align-self: start;
	position: sticky;
	top: 96px;
}

.rt-datos dl {
	margin: 18px 0 0;
	display: grid;
	gap: 18px;
}

.rt-datos dt {
	font-family: var(--rt-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rt-muted);
}

.rt-datos dd {
	margin: 3px 0 0;
	font-family: var(--rt-display);
	font-size: 16px;
	font-weight: 500;
	color: var(--rt-text);
}

.rt-datos dd a {
	color: var(--rt-brass);
	text-decoration: none;
}

/* ============================================================
   7. Contacto
   ============================================================ */
.rt-contacto {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	padding: 56px 0;
}

.rt-wa {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: 1px solid var(--rt-line);
	background: var(--rt-surface);
	padding: 24px;
	margin-bottom: 24px;
}

.rt-wa .rt-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rt-brass);
	margin-top: 9px;
	flex: none;
}

.rt-wa h3 {
	font-size: 18px;
	margin-bottom: 6px;
}

.rt-wa p {
	color: var(--rt-muted);
	font-size: 15.5px;
}

.rt-contacto input[type="text"],
.rt-contacto input[type="email"],
.rt-contacto textarea,
.rt-contacto .wpcf7 input,
.rt-contacto .wpcf7 textarea {
	font-family: var(--rt-body);
	font-size: 16px;
	color: var(--rt-text);
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 2px;
	padding: 12px 14px;
	width: 100%;
}

.rt-contacto input:focus,
.rt-contacto textarea:focus {
	border-color: var(--rt-brass);
	outline: none;
}

.rt-contacto label {
	font-family: var(--rt-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rt-muted);
	display: block;
	margin-bottom: 7px;
}

.rt-contacto input[type="submit"],
.rt-contacto button[type="submit"] {
	width: auto;
	font-family: var(--rt-display);
	font-weight: 600;
	font-size: 14px;
	background: var(--rt-ink);
	color: var(--rt-on-ink);
	border: 1px solid var(--rt-ink);
	padding: 12px 20px;
	border-radius: 2px;
	cursor: pointer;
}

/* ============================================================
   8. Responsive
   ============================================================ */
@media (max-width: 900px) {
	.rt-hero {
		padding: 52px 0 44px;
	}
	.rt-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.rt-hero-side {
		border-left: 0;
		border-top: 1px solid var(--rt-line);
		padding-left: 0;
		padding-top: 28px;
	}
	.rt-hero-side dl {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
	.rt-cols {
		grid-template-columns: 1fr 1fr;
	}
	.rt-cards {
		grid-template-columns: 1fr 1fr;
	}
	.rt-ficha {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 36px 0;
	}
	.rt-datos {
		position: static;
	}
}

@media (max-width: 820px) {
	.rt-caps {
		grid-template-columns: 1fr;
	}
	.rt-close-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.rt-contacto {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.rt-col-sector,
	.rt-col-web {
		display: none;
	}
	.rt-desc {
		font-size: 14.5px;
	}
}

@media (max-width: 600px) {
	.rt-cols,
	.rt-cards {
		grid-template-columns: 1fr;
	}
	.rt-band {
		padding: 48px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.rt-full * {
		transition: none !important;
		animation: none !important;
	}
}


/* ============================================================
   9. Ajustes sobre los estilos base de Astra
   ============================================================ */
body.rt-full .rt-tabla,
body.rt-full .rt-tabla th,
body.rt-full .rt-tabla td {
	border-left: 0;
	border-right: 0;
	border-top: 0;
}

body.rt-full .rt-tabla th {
	border-bottom: 1px solid var(--rt-line);
}

body.rt-full .rt-tabla td {
	border-bottom: 1px solid var(--rt-line-soft);
}

body.rt-full table {
	background: transparent;
	margin: 0;
}

/* ============================================================
   10. Cabecera: identidad tipográfica
   ============================================================ */
body.rt-full .site-title,
body.rt-full .site-title a {
	font-family: var(--rt-display);
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--rt-text);
}

body.rt-full .site-description {
	font-family: var(--rt-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rt-muted);
}

body.rt-full .ast-footer-copyright,
body.rt-full .site-footer p {
	font-family: var(--rt-body);
	font-size: 14.5px;
	line-height: 1.7;
}

body.rt-full .rt-datos dt {
	margin-bottom: 2px;
}
