/* ==========================================================
   Administración Carné — v4
   Una sola familia (Archivo) jugando con el ancho. Fondos
   planos: blanco y un verde muy claro que se alternan, una
   sola franja verde de marca (propietarios) y el pie.
   Naranja solo para la acción principal. Un solo estilo de
   botón, de tarjeta y de radio. Lugares reservados para fotos.
   ========================================================== */

:root {
	--green-950: #082a17;
	--green-900: #0b3b21;
	--green-800: #11502d;
	--green: #037027;
	--green-soft: #e9f1eb;
	--orange: #ff7423;
	--orange-deep: #d9560c;
	--orange-soft: #fff1e7;

	--ink: #121a15;
	--muted: #4f5b54;
	--line: #d9e1dc;
	--line-strong: #b9c6be;
	--bg: #ffffff;
	--tint: #f3f6f2;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--space: clamp(72px, 9vw, 120px);
	--header-h: 72px;
	--radius: 8px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--green-900);
}

:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-family: var(--font);
	font-stretch: 112%;
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

[hidden] {
	display: none !important;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
}

/* ---------- Botones: un solo estilo ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.85em 1.4em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 600 0.9375rem/1.2 var(--font);
	letter-spacing: 0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(1px) scale(0.985);
}

.btn--primary,
.btn--owners {
	background: var(--green);
	color: #fff;
}

.btn--primary:hover,
.btn--owners:hover {
	background: var(--green-900);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line-strong);
	color: var(--ink);
	background: #fff;
}

.btn--ghost:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--small {
	padding: 0.6em 1em;
	font-size: 0.875rem;
}

.btn--large {
	padding: 1.05em 1.6em;
	font-size: 1rem;
	white-space: normal;
	text-align: left;
}

.btn--light {
	flex-shrink: 0;
	background: #fff;
	color: var(--green-900);
}

.btn--light:hover {
	background: var(--orange);
	color: #fff;
}

.btn--wa {
	background: #1f8f4e;
	color: #fff;
}

.btn--wa:hover {
	background: #16733e;
	color: #fff;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand__logo {
	display: block;
	width: auto;
	height: 38px;
	max-width: 190px;
	object-fit: contain;
}

.brand__tagline {
	padding-left: 14px;
	border-left: 1px solid var(--line);
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--muted);
	max-width: 10em;
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav__list,
.footer-menu {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.nav__list a {
	position: relative;
	white-space: nowrap;
	padding: 6px 0;
	color: var(--ink);
	text-decoration: none;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.nav__list a:hover::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	font: 600 0.875rem var(--font);
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Secciones ---------- */

.section {
	padding: var(--space) 0;
}

.section__title {
	font-size: clamp(2rem, 3.8vw, 3.25rem);
	font-stretch: 116%;
	letter-spacing: -0.03em;
	max-width: 20ch;
}

.section__title--wide {
	max-width: 26ch;
}

/* ---------- Lugar reservado para fotos ---------- */

.photo {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--green-900);
}

.photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.photo:hover img {
	transform: scale(1.02);
}

.photo--about {
	aspect-ratio: 4 / 3;
	margin-top: 40px;
	max-width: 420px;
}

/* ---------- Portada: una pantalla ---------- */

.hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: calc(100svh - var(--header-h));
	padding: clamp(40px, 6vw, 72px) 0;
	background: var(--green-900);
	color: #fff;
}

/* El arco de la "C" del isotipo */
.hero::before {
	content: "";
	position: absolute;
	right: -18vw;
	bottom: -38vw;
	width: 78vw;
	height: 78vw;
	max-width: 1100px;
	max-height: 1100px;
	border: clamp(48px, 7vw, 110px) solid rgba(255, 255, 255, 0.045);
	border-left-color: transparent;
	border-radius: 50%;
	transform: rotate(-30deg);
	pointer-events: none;
}

.hero > .wrap {
	position: relative;
	width: 100%;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.hero__title {
	margin-bottom: 0.45em;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-stretch: 120%;
	font-weight: 650;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #fff;
	max-width: 14ch;
}

.hero__text {
	max-width: 32em;
	margin-bottom: 0;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
	color: #c9dccf;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 36px 0 0;
}

.hero .btn--primary {
	background: var(--orange);
	color: #fff;
}

.hero .btn--primary:hover {
	background: #fff;
	color: var(--green-900);
}

.hero__side {
	display: grid;
	gap: 20px;
	min-width: 0;
}

/* Valores (en "Sobre nosotros") */

.values {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.values__title {
	margin: 0 0 14px !important;
	font-size: 0.875rem !important;
	font-weight: 600;
	color: var(--orange-deep) !important;
}

.values__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.values__list li {
	padding: 8px 14px;
	background: var(--green-soft);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--green-900);
}

/* Accesos rápidos */

.quick-card {
	padding: 8px 28px 12px;
	background: #fff;
	color: var(--ink);
	border-radius: var(--radius);
}

.quick-card__title {
	margin: 16px 0 12px;
	font-size: 0.8125rem;
	font-stretch: 100%;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.quick-card__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 -12px 4px;
	padding: 14px 16px;
	background: var(--orange);
	color: #fff;
	border-radius: var(--radius);
	font-weight: 650;
	font-stretch: 108%;
	font-size: 1.0625rem;
	text-decoration: none;
	transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.quick-card__main:hover {
	background: var(--orange-deep);
	color: #fff;
	transform: translateY(-2px);
}

.quick-card__main:active {
	transform: translateY(1px) scale(0.99);
}

.quick-card__arrow,
.quick__arrow {
	flex-shrink: 0;
	line-height: 1;
	transition: transform 0.2s var(--ease);
}

.quick-card__main:hover .quick-card__arrow,
.quick__link:hover .quick__arrow {
	transform: translateX(4px);
}

.quick {
	list-style: none;
	margin: 0;
	padding: 0;
}

.quick li {
	border-bottom: 1px solid var(--line);
}

.quick__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 2px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.quick__link:hover {
	color: var(--green);
}

.quick__arrow {
	color: var(--green);
}

/* Cifras */

.stats {
	background: var(--tint);
}

.stats__list {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	margin: 0;
}

.stats__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 10px;
	padding: 56px 32px 56px 0;
}

.stats__item + .stats__item {
	padding-left: 32px;
	border-left: 1px solid var(--line-strong);
}

.stats__item dd {
	margin: 0;
	font-size: clamp(2.25rem, 4.4vw, 3.5rem);
	font-stretch: 120%;
	font-weight: 650;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--green);
}

.stats__item dt {
	max-width: 30ch;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--muted);
}

/* Nosotros */

.about {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
	gap: 24px 88px;
	align-items: start;
}

.about__text {
	max-width: 44em;
}

.about__text p:first-child {
	margin-bottom: 1.2em;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	font-stretch: 104%;
	line-height: 1.38;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.about__text p + p {
	color: var(--muted);
}

/* Servicios */

.section--services {
	background: var(--tint);
}

.services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.service {
	display: flex;
	flex-direction: column;
	padding: 32px 30px 30px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.service__head {
	display: contents;
}

.service__area {
	order: 0;
	margin: 0 0 18px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--orange-deep);
}

.service__title {
	order: 1;
	margin: 0 0 12px;
	font-size: 1.3125rem;
	line-height: 1.2;
}

.service__text {
	order: 2;
	flex: 1;
	margin: 0 0 20px;
	font-size: 1rem;
	color: var(--muted);
}

.service__ref {
	order: 3;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--green);
}

/* Transparencia documental */

.section--tr {
	background: var(--bg);
}

.tr__kicker {
	margin: 0 0 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--orange-deep);
}

.tr__lead {
	max-width: 46em;
	font-size: 1.125rem;
	color: var(--muted);
}

.tr__highlight {
	max-width: 52em;
	margin: 0 0 48px;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--green-900);
}

.tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 32px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--line-strong);
}

.tabs__tab {
	margin-bottom: -1px;
	padding: 14px 0;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	font: 600 1rem var(--font);
	color: var(--muted);
	cursor: pointer;
	transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tabs__tab:hover {
	color: var(--ink);
}

.tabs__tab[aria-selected="true"] {
	color: var(--ink);
	border-bottom-color: var(--green);
}

.tabs__panel {
	padding-top: 8px;
}

.tr-table {
	width: 100%;
	border-collapse: collapse;
}

.tr-table th,
.tr-table td {
	padding: 22px 24px 22px 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.tr-table thead th {
	padding-top: 18px;
	padding-bottom: 14px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted);
}

.tr-table__note {
	font-weight: 400;
}

.tr-table tbody th {
	width: 36%;
	font-size: 1.0625rem;
	font-stretch: 106%;
	font-weight: 600;
	color: var(--ink);
}

.tr-table__n {
	display: inline-block;
	min-width: 1.6em;
	color: var(--green);
}

.tr-table td {
	color: var(--muted);
}

.funds {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.fund {
	padding: 28px;
	background: var(--tint);
	border-radius: var(--radius);
}

.fund__n {
	margin: 0 0 20px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted);
}

.fund__name {
	margin: 0 0 10px;
	font-size: 1.25rem;
	font-stretch: 110%;
	font-weight: 650;
	line-height: 1.2;
	color: var(--ink);
}

.fund__text {
	margin: 0;
	font-size: 1rem;
	color: var(--muted);
}

/* Ciclo mensual (secuencia real: numerado) */

.section--steps {
	background: var(--tint);
}

.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}

.steps__item {
	counter-increment: step;
	padding: 0 24px 0 0;
	font-size: 1rem;
	color: var(--muted);
}

.steps__item::before {
	content: counter(step);
	display: block;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--line-strong);
	font-size: 3.5rem;
	font-stretch: 120%;
	font-weight: 300;
	line-height: 1;
	color: var(--green);
}

.steps__item:first-child::before {
	border-bottom-color: var(--green);
}

.steps__title {
	margin-bottom: 8px;
	font-size: 1.0625rem;
	font-stretch: 106%;
	line-height: 1.25;
}

.steps__item p {
	margin: 0;
}

/* Credenciales */

.section--law {
	background: var(--bg);
}

.law {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 40px 80px;
	align-items: start;
}

.law__intro p {
	max-width: 30em;
	color: var(--muted);
}

.law__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line-strong);
}

.law__list li {
	padding: 24px 24px 24px 0;
	border-bottom: 1px solid var(--line);
}

.law__list li:nth-child(even) {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}

.law__list strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.0625rem;
	font-stretch: 106%;
	font-weight: 650;
	line-height: 1.3;
	color: var(--ink);
}

.law__list span {
	font-size: 1rem;
	color: var(--muted);
}

/* Franja de propietarios: la franja verde de marca */

.section--owners {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 8vw, 104px) 0;
	background: var(--green-900);
	color: #fff;
}

.section--owners::before {
	content: "";
	position: absolute;
	right: -10vw;
	bottom: -30vw;
	width: 60vw;
	height: 60vw;
	max-width: 820px;
	max-height: 820px;
	border: clamp(40px, 6vw, 90px) solid rgba(255, 255, 255, 0.05);
	border-left-color: transparent;
	border-radius: 50%;
	transform: rotate(-30deg);
	pointer-events: none;
}

.owners {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px 64px;
}

.owners .section__title {
	color: #fff;
	margin-bottom: 0.35em;
}

.owners p {
	max-width: 44em;
	margin: 0;
	color: #c9dccf;
}

/* Contacto */

.section--contact {
	background: var(--bg);
}

.contact {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 56px 88px;
	align-items: start;
}

.contact__intro > p {
	max-width: 34em;
	font-size: 1.125rem;
	color: var(--muted);
}

.contact__data {
	margin: 36px 0 0;
	border-top: 1px solid var(--line-strong);
}

.contact__data > div {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.contact__data dt {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
}

.contact__data dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Enlaces con subrayado que se dibuja */
.contact__data a,
.news-head__all {
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.3s var(--ease), color 0.18s var(--ease);
}

.contact__data a:hover,
.news-head__all:hover {
	color: var(--green);
	background-size: 100% 2px;
}

.contact__map {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.875rem;
}

.contact__side {
	display: grid;
	gap: 24px;
}

.hours {
	padding: 30px 32px 10px;
	background: var(--tint);
	border-radius: var(--radius);
}

.hours__title,
.urgent__title {
	margin: 0 0 18px;
	font-size: 1.1875rem;
	font-stretch: 108%;
}

.hours__days {
	margin: -12px 0 16px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--green);
}

.hours__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hours__item {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 4px 20px;
	padding: 18px 0;
	border-top: 1px solid var(--line-strong);
}

.hours__item p {
	margin: 0;
}

.hours__time {
	font-size: 1.0625rem;
	font-stretch: 112%;
	font-weight: 650;
	color: var(--green);
	white-space: nowrap;
}

.hours__mode {
	font-weight: 600;
	color: var(--ink);
}

.hours__detail {
	font-size: 1rem;
	color: var(--muted);
}

.urgent {
	padding: 26px 32px;
	background: var(--orange-soft);
	border-radius: var(--radius);
	color: #5a2f08;
}

.urgent__title {
	color: #7a3a07;
	font-size: 1.0625rem;
}

.urgent p {
	margin: 0;
	font-size: 1rem;
}

.urgent__when {
	margin-top: 14px;
}

.urgent__when summary {
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #7a3a07;
}

.urgent__when p {
	margin-top: 8px;
}

/* ---------- Medios de pago ---------- */

.section--pay {
	background: var(--tint);
}

.pay-head {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 16px 80px;
	align-items: end;
	margin-bottom: 44px;
}

.pay-head .section__title {
	margin: 0;
}

.pay-head__text {
	margin: 0;
	max-width: 34em;
	color: var(--muted);
}

.pay-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pay {
	padding: 26px 22px 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.pay__icon {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 18px;
	color: var(--green);
}

.pay__icon svg {
	width: 100%;
	height: 100%;
}

.pay__name {
	margin: 0 0 8px;
	font-size: 1.0625rem;
	font-stretch: 106%;
	font-weight: 650;
	line-height: 1.25;
	color: var(--ink);
}

.pay__text {
	margin: 0;
	font-size: 1rem;
	color: var(--muted);
}

.pay-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 16px;
	padding: 24px 28px;
	background: var(--green-soft);
	border-radius: var(--radius);
}

.pay-note p {
	margin: 0;
	max-width: 52em;
	color: var(--green-900);
}

.pay-note__title {
	margin-bottom: 4px !important;
	font-weight: 700;
}

.pay-note .btn {
	flex-shrink: 0;
}

/* ---------- Noticias ---------- */

.section--news {
	background: var(--tint);
}

.section--news + .section--about {
	padding-top: calc(var(--space) * 0.8);
}

.news-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.news-head .section__title {
	margin: 0;
}

.news-head__all {
	font-weight: 600;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 40px;
}

.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s var(--ease);
}

.news-card:hover {
	transform: translateY(-2px);
}

.news-card__image {
	display: block;
	margin-bottom: 20px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--tint);
	border-radius: var(--radius);
}

.news-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.news-card__image--empty {
	position: relative;
	background: var(--green-900);
}

.news-card__image--empty::before {
	content: "";
	position: absolute;
	right: -30%;
	bottom: -55%;
	width: 90%;
	aspect-ratio: 1;
	border: 28px solid rgba(255, 255, 255, 0.07);
	border-left-color: transparent;
	border-radius: 50%;
	transform: rotate(-30deg);
}

.news-card__image--empty::after {
	content: "";
	position: absolute;
	left: 22px;
	bottom: 22px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--orange);
}

.news-card:hover .news-card__image img {
	transform: scale(1.03);
}

.news-card__date {
	margin: 0 0 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted);
}

.news-card__title {
	margin: 0 0 10px;
	font-size: 1.3125rem;
	line-height: 1.22;
}

.news-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.news-card__title a:hover {
	color: var(--green);
}

.news-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.news-card__excerpt {
	margin: 0;
	font-size: 1rem;
	color: var(--muted);
}

.page-head--news {
	margin-bottom: 48px;
}

.page-head__lead {
	max-width: 40em;
	margin: 14px 0 0;
	font-size: 1.125rem;
	color: var(--muted);
}

.news-pagination {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.news-pagination .page-numbers {
	display: inline-block;
	min-width: 2.4em;
	margin-right: 6px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.news-pagination .page-numbers:hover {
	border-color: var(--ink);
}

.news-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.news-empty {
	color: var(--muted);
}

.news-single__back {
	margin-bottom: 28px;
	font-size: 0.9375rem;
}

.news-single__back a {
	color: var(--muted);
	text-decoration: none;
}

.news-single__back a:hover {
	color: var(--green);
}

.news-single__head {
	max-width: 44em;
	margin-bottom: 32px;
}

.news-single__title {
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
}

.news-single__image {
	max-width: 900px;
	margin: 0 0 40px;
}

.news-single__image img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.section--news-more {
	background: var(--tint);
	border-bottom: 0;
}

/* Libre deuda: partes intervinientes */

.form__required-note {
	margin: -8px 0 24px;
	font-size: 0.875rem;
	color: var(--muted);
}

.parties {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.party {
	display: grid;
	gap: 16px;
	align-content: start;
	min-width: 0;
	margin: 0;
	padding: 22px;
	background: var(--tint);
	border: 0;
	border-radius: var(--radius);
}

.party--new {
	background: var(--green-soft);
}

.party__title {
	float: left;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 650;
	color: var(--ink);
}

.party__title + * {
	clear: left;
}

/* ---------- Páginas internas ---------- */

.section--inner {
	padding-top: clamp(40px, 6vw, 80px);
}

.page-head {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.page-head__title {
	margin: 0;
	font-size: clamp(2.25rem, 4.8vw, 3.75rem);
	font-stretch: 118%;
	letter-spacing: -0.035em;
	max-width: 24ch;
}

.entry-content {
	max-width: 44em;
}

.entry-content--wide {
	max-width: 900px;
}

.entry-content h2 {
	font-size: 1.75rem;
	margin-top: 1.8em;
}

.entry-content h3 {
	font-size: 1.375rem;
	margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.post-card {
	padding: 26px 0;
	border-top: 1px solid var(--line);
}

.post-card__date {
	margin-bottom: 0.3em;
	font-size: 0.875rem;
	color: var(--muted);
}

.post-card__title {
	margin-bottom: 0.3em;
	font-size: 1.5rem;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--green);
}

.back-link {
	margin-top: 3rem;
}

.navigation.pagination .nav-links {
	display: flex;
	gap: 12px;
	margin-top: 2rem;
}

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

.form-carne__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px 24px;
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--line);
}

.form-carne__head p {
	max-width: 42em;
	margin: 0;
	color: var(--muted);
}

.form-carne__title {
	margin: 0 0 12px;
	font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.form-carne__badge {
	margin: 0 0 12px !important;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--orange-deep) !important;
}

.form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 22px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.form__field--full {
	grid-column: 1 / -1;
}

.form__field label,
.yesno__q {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
}

.form__req {
	color: var(--orange-deep);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea {
	width: 100%;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	font: 400 1rem var(--font);
	color: var(--ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.form textarea {
	min-height: 120px;
	resize: vertical;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
	border-color: var(--muted);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(3, 112, 39, 0.15);
}

.form ::placeholder {
	color: #9aa69f;
}

.form__hint {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted);
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
	border-color: #c0392b;
}

.form__check.is-invalid {
	color: #c0392b;
}

.form__group {
	min-width: 0;
	margin: 0 0 40px;
	padding: 0;
	border: 0;
}

.form__group > legend,
.form__sub > legend {
	width: 100%;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	font-size: 1.0625rem;
	font-stretch: 108%;
	font-weight: 650;
	color: var(--ink);
}

.form__group--box {
	padding: 26px 28px;
	background: var(--tint);
	border-radius: var(--radius);
}

.form__group--box > legend {
	float: left;
	padding: 0;
	border: 0;
	margin-bottom: 10px;
}

.form__group--box > legend + * {
	clear: left;
}

.form__declaration {
	font-size: 0.9875rem;
	color: var(--muted);
}

.form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
	cursor: pointer;
}

.form__check input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--green);
}

.form__check--toggle {
	display: inline-flex;
	margin: 8px 0 18px;
	padding: 12px 16px;
	background: var(--tint);
	border-radius: var(--radius);
}

.form__sub {
	min-width: 0;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

.form__sub[data-toggled] {
	padding: 22px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
}

.form__notice {
	margin: 0 0 28px;
	padding: 20px 24px;
	background: var(--orange-soft);
	border-radius: var(--radius);
	font-size: 0.9375rem;
	color: #5a2f08;
}

.form__notice p {
	margin: 0;
}

.form__notice-title {
	margin-bottom: 6px !important;
	font-weight: 700;
	color: #7a3a07;
}

.form__error {
	margin: 0 0 18px;
	padding: 14px 18px;
	background: #fdecea;
	border-radius: var(--radius);
	color: #922b21;
	font-weight: 600;
}

.form__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-result {
	margin-top: 40px;
	padding: 30px;
	background: var(--green-soft);
	border-radius: var(--radius);
}

.form-result:focus {
	outline: none;
}

.form-result__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
}

.form-result__summary {
	max-height: 340px;
	margin: 18px 0;
	padding: 18px;
	overflow: auto;
	background: #fff;
	border-radius: var(--radius);
	font: 400 0.9375rem/1.55 var(--font);
	white-space: pre-wrap;
	word-break: break-word;
}

.form-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.form-result__status {
	margin: 12px 0 0;
	font-size: 0.9375rem;
	color: var(--green);
}

/* Presupuesto / libre deuda */

.consulta__form {
	padding: 0;
}

.consulta__form .form__grid + .form__sub,
.consulta__form .form__sub + .form__grid,
.consulta__form .form__sub + .form__sub {
	margin-top: 28px;
}

.consulta__estructura {
	padding: 26px 28px;
	background: var(--tint);
	border-radius: var(--radius);
}

.consulta__estructura > legend {
	float: left;
	padding: 0;
	border: 0;
}

.consulta__estructura > legend + * {
	clear: left;
}

.yesno {
	margin: 20px 0;
}

.yesno__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px 20px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.yesno__q {
	font-weight: 500;
}

.yesno__opts {
	display: flex;
	flex-shrink: 0;
	gap: 18px;
	font-weight: 600;
}

.yesno__opts input {
	accent-color: var(--green);
}

.upload input[type="file"] {
	padding: 12px;
	background: #fff;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	font: 500 0.9375rem var(--font);
}

.consulta__ok,
.consulta__fail {
	margin-bottom: 28px;
	padding: 18px 22px;
	border-radius: var(--radius);
}

.consulta__ok {
	background: var(--green-soft);
}

.consulta__ok-title {
	margin: 0 0 4px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--green-900);
}

.consulta__fail {
	background: #fdecea;
	color: #7b241c;
}

.consulta__ok p,
.consulta__fail p {
	margin: 0;
}

/* ---------- Pie ---------- */

.site-footer {
	/* Abajo deja lugar para el botón flotante de WhatsApp. */
	padding: 64px 0 104px;
	background: var(--green-950);
	color: #a9bfb1;
	font-size: 0.9375rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px 48px;
	align-items: start;
}

.site-footer p {
	margin: 0 0 0.35em;
}

.site-footer a {
	color: #dbe7df;
	text-decoration-color: rgba(219, 231, 223, 0.35);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__brand {
	display: inline-block;
	margin-bottom: 20px;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-footer__brand:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.site-footer__brand img {
	display: block;
	width: auto;
	height: 44px;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.footer-menu a {
	color: #dbe7df;
}

.site-footer .btn--owners {
	background: var(--orange);
	color: #fff;
}

.site-footer .btn--owners:hover {
	background: #fff;
	color: var(--green-900);
}

.footer-datafiscal {
	font-weight: 600;
}

.site-footer__legal {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	margin-top: 16px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #7f988a;
}

.site-footer__legal-id {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-footer__legal p {
	margin: 0;
}

.site-footer__legal {
	align-items: center;
}

.datafiscal {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-decoration: none;
}

.datafiscal img {
	display: block;
	width: 52px;
	height: 52px;
	padding: 3px;
	background: #fff;
	border-radius: 2px;
}

.datafiscal span {
	font-size: 0.625rem;
	color: #7f988a;
}

.site-footer__credit a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.site-footer__credit a:hover {
	color: var(--orange);
}

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px 12px 14px;
	background: #1f8f4e;
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.wa-float:hover {
	background: #16733e;
	color: #fff;
}

.wa-float svg {
	width: 24px;
	height: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
	.brand__tagline {
		display: none;
	}
}

@media (max-width: 1080px) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 12px var(--gutter) 24px;
		background: #fff;
		border-bottom: 1px solid var(--line);
	}

	.nav-open .nav {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		gap: 0;
	}

	.nav__list a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
		font-size: 1.0625rem;
	}

	.nav__list a::after {
		display: none;
	}

	.nav__owners {
		justify-content: center;
	}

	.hero {
		min-height: 0;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.hero__title {
		max-width: 16ch;
	}

	.hero__side {
		max-width: 620px;
	}

	.services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pay-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pay-head {
		grid-template-columns: minmax(0, 1fr);
	}

	.owners {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 980px) {
	.about,
	.law,
	.contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.photo--about {
		max-width: 520px;
		aspect-ratio: 16 / 10;
		margin-top: 28px;
	}

	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.steps__item {
		display: grid;
		grid-template-columns: 4.5rem minmax(0, 1fr);
		column-gap: 16px;
		padding: 20px 0;
		border-top: 1px solid var(--line);
	}

	.steps__item::before {
		grid-row: span 2;
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 2.5rem;
	}

	.steps__title,
	.steps__item p {
		grid-column: 2;
	}
}

@media (max-width: 760px) {
	.stats__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.stats__item,
	.stats__item + .stats__item {
		padding: 26px 0;
		border-left: 0;
		border-top: 1px solid var(--line-strong);
	}

	.stats__item:first-child {
		border-top: 0;
	}

	.services {
		grid-template-columns: minmax(0, 1fr);
	}

	.law__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-grid,
	.parties,
	.pay-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.pay-note {
		flex-direction: column;
		align-items: flex-start;
	}

	.law__list li:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}

	.form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.form-carne__head {
		flex-direction: column;
	}

	.tr-table thead {
		display: none;
	}

	.tr-table,
	.tr-table tbody,
	.tr-table tr,
	.tr-table th,
	.tr-table td {
		display: block;
		width: 100%;
	}

	.tr-table tbody th {
		width: 100%;
		padding: 20px 0 6px;
		border-bottom: 0;
	}

	.tr-table td {
		padding: 0 0 20px;
	}

	.yesno__row {
		flex-direction: column;
		align-items: flex-start;
	}

	.hours,
	.urgent,
	.consulta__estructura,
	.form__group--box {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hours__item {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 1rem;
	}

	.brand__logo {
		height: 34px;
	}

	.contact__data > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.form__actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.wa-float {
		padding: 14px;
	}

	.wa-float span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}
}

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

	* {
		transition: none !important;
	}
}

/* ---------- Impresión (formularios) ---------- */

@media print {
	.site-header,
	.site-footer,
	.wa-float,
	.form-carne__head .btn,
	.form__actions,
	.form-result,
	.skip-link,
	#wpadminbar {
		display: none !important;
	}

	body {
		font-size: 11pt;
		background: #fff;
	}

	.section--inner {
		padding: 0;
	}

	.form__group--box {
		border: 1px solid #999;
		background: #fff;
	}

	.form input,
	.form select,
	.form textarea {
		border: 1px solid #999 !important;
	}

	.form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
