/* ==================================================================
   djborjarodriguez.es — hoja de estilos única.
   Diseño: tokens heredados del tema WordPress (theme.json): Poppins para el
   texto, Kanit para los títulos, azul #015AF2 de acento y azul noche #00092A.
   Móvil primero. Nada puede desbordar en horizontal: body{overflow-x:clip},
   imágenes fluidas, tablas dentro de .tabla-scroll y palabras largas partidas.
   ================================================================== */

/* ---------- Tipografías autoalojadas (licencia OFL) ---------- */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/poppins-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/poppins-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/poppins-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/poppins-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/poppins-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/poppins-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Kanit; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/kanit-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Kanit; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/kanit-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Kanit; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/kanit-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Kanit; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/kanit-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Kanit; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/kanit-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Kanit; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/kanit-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--base: #ffffff;
	--suave: #f5f5f5;
	--borde: #dfdfdf;
	--gris: #5e5e5e;
	--texto: #3e3e3e;
	--oscuro: #222222;
	--noche: #00092a;
	--acento: #015af2;
	--acento-oscuro: #0043b8;
	--violeta: #605be5;
	--rojo: #cb3030;
	--degradado-noche: linear-gradient(135deg, #00092a 0%, #1b1f5e 55%, #605be5 100%);

	--fuente-texto: Poppins, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fuente-titulo: Kanit, Poppins, Helvetica, Arial, sans-serif;

	--t-pequeno: 0.9rem;
	--t-normal: 1.0625rem;
	--t-grande: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
	--t-seccion: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
	--t-titular: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);

	--e-1: 0.5rem;
	--e-2: 1rem;
	--e-3: 1.5rem;
	--e-4: clamp(2rem, 4vw, 3rem);
	--e-5: clamp(3rem, 6vw, 5rem);
	--e-6: clamp(4rem, 9vw, 7rem);

	--ancho-texto: 44rem;
	--ancho-web: 75rem;
	--margen: 1.5rem; /* margen lateral mínimo en cualquier pantalla */

	--radio: 0.75rem;
	--sombra: 0 10px 30px rgba(0, 9, 42, 0.08);
	--transicion: 160ms ease;
}

@media (max-width: 480px) {
	:root { --margen: 1.1rem; }
}

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

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

body {
	margin: 0;
	font-family: var(--fuente-texto);
	font-size: var(--t-normal);
	line-height: 1.65;
	color: var(--texto);
	background: var(--base);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	min-width: 320px;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
iframe { max-width: 100%; }

h1, h2, h3, h4 {
	font-family: var(--fuente-titulo);
	font-weight: 600;
	line-height: 1.15;
	color: var(--oscuro);
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
}
h1 { font-size: var(--t-titular); font-weight: 700; }
h2 { font-size: var(--t-seccion); }
h3 { font-size: var(--t-grande); }
h4 { font-size: var(--t-normal); }

p { margin: 0 0 1.1em; }
a { color: var(--acento); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover, a:focus-visible { color: var(--acento-oscuro); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--borde); margin: var(--e-4) 0; }

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

.saltar {
	position: absolute; left: -999px; top: 0.5rem; z-index: 200;
	background: var(--base); color: var(--acento); padding: 0.75rem 1rem; border-radius: 0.4rem;
}
.saltar:focus { left: 0.5rem; }

/* Huecos pendientes: visibles en el borrador para no publicarlos por descuido */
mark.hueco { background: #fff3b0; color: #5a4a00; padding: 0 0.3em; border-radius: 0.25em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Contenedores ---------- */
.contenedor {
	width: 100%;
	max-width: calc(var(--ancho-web) + 2 * var(--margen));
	margin-inline: auto;
	padding-inline: var(--margen);
}
.contenedor--texto { max-width: calc(var(--ancho-texto) + 2 * var(--margen)); }
.contenedor--medio { max-width: calc(60rem + 2 * var(--margen)); }

.seccion { padding-block: var(--e-5); }
.seccion--compacta { padding-block: var(--e-4); }
.seccion--suave { background: var(--suave); }
.seccion--noche { background: var(--degradado-noche); color: var(--base); }
.seccion--noche :is(h1, h2, h3), .seccion--noche a:not(.boton) { color: var(--base); }
.seccion--noche a:not(.boton) { text-decoration-color: rgba(255, 255, 255, 0.5); }

.centrado { text-align: center; }
.texto-gris { color: var(--gris); }
.grande { font-size: var(--t-grande); }
.pequeno { font-size: var(--t-pequeno); }
.equilibrado { text-wrap: balance; }
.sin-margen { margin: 0 !important; }
.intro { font-size: var(--t-grande); color: var(--gris); max-width: 42ch; }
.centrado .intro, .intro.centrado { margin-inline: auto; }
.seccion > .contenedor > h2:first-child { margin-bottom: var(--e-3); }

/* ---------- Botones ---------- */
.boton, .botones button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-family: var(--fuente-texto); font-weight: 600; font-size: var(--t-normal);
	line-height: 1.2; text-decoration: none;
	padding: 0.85rem 1.6rem; border-radius: 0.5rem; border: 2px solid transparent;
	background: var(--acento); color: var(--base);
	cursor: pointer;
	transition: background-color var(--transicion), color var(--transicion), transform var(--transicion), border-color var(--transicion);
	max-width: 100%;
	text-align: center;
}
.boton:hover, .botones button:hover { background: var(--acento-oscuro); color: var(--base); transform: translateY(-1px); }
.boton--borde { background: transparent; color: var(--acento); border-color: currentColor; }
.boton--borde:hover { background: var(--acento); color: var(--base); border-color: var(--acento); }
.boton--claro { background: var(--base); color: var(--noche); }
.boton--claro:hover { background: var(--suave); color: var(--noche); }
.seccion--noche .boton--borde, .hero .boton--borde { color: var(--base); }
.seccion--noche .boton--borde:hover, .hero .boton--borde:hover { background: var(--base); color: var(--noche); border-color: var(--base); }
.boton--whatsapp { background: #25d366; color: #0b3d1e; }
.boton--whatsapp:hover { background: #1ebe5b; color: #0b3d1e; }
.boton--pequeno { padding: 0.55rem 1.1rem; font-size: var(--t-pequeno); }
.botones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: var(--e-3); }
.botones--centrado { justify-content: center; }
.enlace-flecha { font-weight: 500; text-decoration: none; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.cabecera {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	/* Sin backdrop-filter: convertía la cabecera en contenedor del menú fijo del móvil y lo recortaba. */
	border-bottom: 1px solid var(--borde);
}
.cabecera__fila {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-block: 0.7rem; min-height: 4rem;
}
.logo {
	display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
	color: var(--oscuro); font-family: var(--fuente-titulo); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
	letter-spacing: 0.01em; flex: 0 1 auto; min-width: 0;
}
.logo img { width: 46px; height: 46px; flex: 0 0 auto; }
.logo__texto { white-space: nowrap; }
.logo__texto small { display: block; font-family: var(--fuente-texto); font-weight: 400; font-size: 0.72rem; color: var(--gris); letter-spacing: 0; }
@media (max-width: 380px) { .logo__texto { font-size: 0.92rem; } .logo img { width: 40px; height: 40px; } }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__lista { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: nowrap; }
.nav__lista a { color: var(--oscuro); text-decoration: none; font-weight: 500; font-size: var(--t-pequeno); white-space: nowrap; padding: 0.25rem 0; }
.nav__lista a:hover, .nav__lista a:focus-visible, .nav__lista a[aria-current="page"] { color: var(--acento); }
.nav__cta { flex: 0 0 auto; }
.nav__boton {
	display: none; align-items: center; gap: 0.5rem;
	background: none; border: 0; padding: 0.5rem; margin: -0.5rem; cursor: pointer;
	font: inherit; font-weight: 500; color: var(--oscuro);
}
.nav__boton svg { width: 24px; height: 24px; }

/* Hasta 1023 px: menú plegado tras el botón, botón «¿Hablamos?» oculto (Contacto va en el menú) */
@media (max-width: 1023px) {
	.nav__cta { display: none; }
	.js .nav__boton { display: inline-flex; }
	.js .nav__lista {
		display: none;
		position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
		width: 100vw; height: 100dvh; min-height: 100vh;
		flex-direction: column; gap: 0;
		background: var(--base); padding: 5rem var(--margen) 2rem;
		overflow-y: auto; -webkit-overflow-scrolling: touch;
	}
	.js .nav--abierta .nav__lista { display: flex; }
	.js .nav__lista a { display: block; font-family: var(--fuente-titulo); font-weight: 500; font-size: 1.35rem; padding: 0.8rem 0; border-bottom: 1px solid var(--borde); white-space: normal; }
	.js .nav--abierta .nav__boton { position: fixed; top: 1.1rem; right: var(--margen); z-index: 70; margin: 0; }
	/* Sin JavaScript el menú se ve entero debajo del logo */
	html:not(.js) .cabecera__fila { flex-wrap: wrap; }
	html:not(.js) .nav__lista { flex-wrap: wrap; gap: 0.6rem 1.1rem; }
}
@media (min-width: 1024px) {
	.nav__lista .solo-movil { display: none; }
}
body.menu-abierto { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	min-height: min(82vh, 760px);
	display: flex; align-items: flex-end;
	color: var(--base);
	background: var(--noche);
	overflow: hidden;
}
.hero__fondo { position: absolute; inset: 0; z-index: -2; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 9, 42, 0.30) 0%, rgba(0, 9, 42, 0.88) 100%); }
.hero > .contenedor { padding-block: var(--e-5); }
.hero h1 { color: var(--base); max-width: 18ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 9, 42, 0.45); margin-bottom: 0.4em; }
.hero .subtitulo { font-size: var(--t-grande); max-width: 46ch; text-shadow: 0 1px 12px rgba(0, 9, 42, 0.6); margin-bottom: 0; }
.hero .botones { margin-top: 1.75rem; margin-bottom: 0; }
.hero--corto { min-height: 0; }
.hero--corto > .contenedor { padding-block: var(--e-4); }
.hero .sobretitulo { text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--t-pequeno); font-weight: 600; opacity: 0.85; margin-bottom: 0.75rem; }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3); text-align: center; }
@media (min-width: 782px) { .cifras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cifra { font-family: var(--fuente-titulo); font-weight: 700; font-size: var(--t-titular); line-height: 1; color: var(--acento); margin: 0 0 0.35rem; }
.cifras p:last-child { color: var(--gris); margin: 0; font-size: var(--t-pequeno); }

/* ---------- Rejillas y tarjetas ---------- */
.rejilla { display: grid; gap: var(--e-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rejilla--2, .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rejilla--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rejilla > * { min-width: 0; }

.tarjeta {
	background: var(--base); border: 1px solid var(--borde); border-radius: var(--radio);
	padding: 1.5rem; height: 100%;
	display: flex; flex-direction: column; gap: 0.4rem;
	color: var(--texto); text-decoration: none;
}
a.tarjeta:hover, a.tarjeta:focus-visible { color: var(--texto); }
a.tarjeta h3 { color: var(--oscuro); }
a.tarjeta:hover h3 { color: var(--acento); }
a.tarjeta .enlace-flecha { color: var(--acento); }
.seccion:not(.seccion--suave) .tarjeta { background: var(--suave); }
.tarjeta > :first-child { margin-top: 0; }
.tarjeta > :last-child { margin-bottom: 0; }
.tarjeta p { margin-bottom: 0.6em; }
.tarjeta h3 a { text-decoration: none; color: var(--oscuro); }
.tarjeta h3 a:hover { color: var(--acento); }
.tarjeta .enlace-flecha { margin-top: auto; }
.tarjeta--enlace { transition: transform var(--transicion), box-shadow var(--transicion); }
.tarjeta--enlace:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.tarjeta__etiqueta { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 600; color: var(--acento); margin-bottom: 0.2rem; }
.tarjeta--foto { padding: 0; overflow: hidden; }
.tarjeta--foto img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.tarjeta--foto .tarjeta__cuerpo { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.tarjeta--noche { background: var(--degradado-noche) !important; border: 0; color: var(--base); }
.tarjeta--noche :is(h2, h3), .tarjeta--noche a { color: var(--base); }

/* Tres frases (portada) */
.tres-frases { display: grid; gap: var(--e-3); grid-template-columns: 1fr; }
@media (min-width: 782px) { .tres-frases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tres-frases p { font-size: var(--t-grande); margin: 0; }

/* Lista numerada con el número grande */
.numerada-grande { list-style: none; counter-reset: motivo; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.numerada-grande > li { counter-increment: motivo; position: relative; padding-left: 3.4rem; min-height: 2.6rem; }
.numerada-grande > li::before {
	content: counter(motivo); position: absolute; left: 0; top: -0.1rem;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--acento); color: var(--base); font-family: var(--fuente-titulo); font-weight: 600; font-size: 1.1rem;
}
@media (min-width: 782px) { .numerada-grande { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }

/* Dos columnas texto + foto */
.dos-columnas { display: grid; gap: var(--e-4); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dos-columnas { grid-template-columns: 1.15fr 1fr; } .dos-columnas--invertida { grid-template-columns: 1fr 1.15fr; } .dos-columnas--invertida > :first-child { order: 2; } }
.dos-columnas img { border-radius: 1rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dos-columnas > * { min-width: 0; }

/* ---------- Testimonios ---------- */
.testimonios { max-width: 40rem; margin-inline: auto; }
.testimonio {
	margin: 0; padding: 1.75rem 1.75rem 1.5rem; background: var(--base); border-radius: var(--radio);
	box-shadow: var(--sombra); position: relative; font-size: var(--t-grande); line-height: 1.5;
}
.testimonio::before {
	content: "\201C"; position: absolute; top: -0.2rem; left: 1.1rem;
	font-family: var(--fuente-titulo); font-size: 4rem; line-height: 1; color: var(--acento); opacity: 0.35;
}
.testimonio p { margin: 0; }
.testimonio cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: var(--t-pequeno); color: var(--gris); }
.testimonios:not(.js-carrusel) .testimonio + .testimonio { margin-top: 1rem; }
.testimonios.js-carrusel { display: grid; gap: 1rem; }
.testimonios.js-carrusel .testimonio[hidden] { display: none; }
.carrusel__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.carrusel__boton {
	width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--acento);
	background: var(--base); color: var(--acento); font-size: 1.5rem; line-height: 1; cursor: pointer;
	transition: background-color var(--transicion), color var(--transicion);
}
.carrusel__boton:hover { background: var(--acento); color: var(--base); }
.carrusel__estado { font-size: var(--t-pequeno); color: var(--gris); min-width: 3.5rem; text-align: center; }

/* ---------- Contenido largo (Markdown) ---------- */
.prosa { overflow-wrap: break-word; }
.prosa > * { max-width: var(--ancho-texto); margin-inline: auto; }
.prosa > h2 { margin-top: 2.2em; }
.prosa > h3 { margin-top: 1.6em; }
.prosa > h2:first-child, .prosa > h3:first-child { margin-top: 0; }
.prosa ul, .prosa ol { padding-left: 1.4rem; margin: 0 auto 1.1em; }
.prosa li { margin-bottom: 0.45em; }
.prosa li > p { margin-bottom: 0.4em; }
.prosa blockquote {
	margin: 1.5em auto; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--acento);
	font-size: var(--t-grande); line-height: 1.5; color: var(--oscuro);
}
.prosa blockquote p:last-child { margin-bottom: 0; }
.prosa img, .prosa figure { border-radius: 1rem; }
.prosa figure { margin: 1.5em auto; max-width: var(--ancho-web); }
.prosa figure img { width: 100%; }
.prosa figcaption { color: var(--gris); font-size: var(--t-pequeno); margin-top: 0.5rem; }
.prosa .ancho { max-width: var(--ancho-web); }
.prosa .botones { justify-content: flex-start; }
.prosa .lead, .prosa > p.intro { font-size: var(--t-grande); color: var(--gris); max-width: var(--ancho-texto); }
.prosa hr { max-width: var(--ancho-texto); }
.prosa code { font-family: inherit; }

/* ---------- Tablas ---------- */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25em auto; max-width: var(--ancho-texto); border-radius: var(--radio); }
.prosa.ancha .tabla-scroll, .tabla-scroll.ancha { max-width: var(--ancho-web); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-pequeno); }
th { background: var(--suave); font-family: var(--fuente-titulo); font-weight: 500; text-align: left; }
td, th { border: 1px solid var(--borde); padding: 0.55rem 0.75rem; vertical-align: top; }
tr:nth-child(even) td { background: #fafafa; }
.tabla-playlist th:first-child, .tabla-playlist td:first-child { color: var(--gris); width: 3rem; white-space: nowrap; text-align: right; }
.tabla-playlist th:last-child, .tabla-playlist td:last-child { text-align: left; }
.tabla-datos td:last-child, .tabla-datos th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Preguntas frecuentes ---------- */
.faq details { border-bottom: 1px solid var(--borde); padding: 0.9rem 0; }
.faq summary {
	font-family: var(--fuente-titulo); font-weight: 500; font-size: var(--t-grande); color: var(--oscuro);
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--suave); color: var(--acento); font-weight: 600;
}
.faq details[open] > summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-top: 0.75rem; }
.faq h2 { margin-top: 2em; }
.faq h2:first-child { margin-top: 0; }

/* Fichas de fincas */
.fincas-lista h3 { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--borde); }
.fincas-lista h3:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- Formulario ---------- */
.formulario { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .formulario { grid-template-columns: 1fr 1fr; } .formulario .campo--ancho { grid-column: 1 / -1; } }
.formulario p, .formulario fieldset { margin: 0; min-width: 0; }
.formulario label { display: block; font-weight: 500; font-size: var(--t-pequeno); margin-bottom: 0.3rem; color: var(--oscuro); }
.formulario .ayuda { display: block; font-weight: 400; color: var(--gris); }
.formulario input:not([type="checkbox"]):not([type="radio"]), .formulario select, .formulario textarea {
	width: 100%; font: inherit; color: var(--texto); background: var(--base);
	border: 1px solid var(--gris); border-radius: 0.5rem; padding: 0.7rem 0.85rem; min-width: 0;
}
.formulario textarea { min-height: 8rem; resize: vertical; }
.formulario fieldset { border: 0; padding: 0; }
.formulario legend { font-weight: 500; font-size: var(--t-pequeno); margin-bottom: 0.3rem; padding: 0; }
.formulario .opciones { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.formulario .opciones label, .formulario .privacidad label { display: inline-flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; margin: 0; }
.formulario input[type="checkbox"], .formulario input[type="radio"] { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--acento); flex: 0 0 auto; }
.formulario .campo--trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario button { justify-self: start; }
.aviso { padding: 1rem 1.25rem; border-radius: var(--radio); border-left: 4px solid var(--acento); background: var(--suave); margin-bottom: 1.5rem; }
.aviso p { margin: 0; }
.aviso--error { border-left-color: var(--rojo); }
.aviso[hidden] { display: none; }

/* ---------- Blog ---------- */
.entradas { display: grid; gap: var(--e-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .entradas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .entradas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entrada-tarjeta { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.entrada-tarjeta__imagen { display: block; aspect-ratio: 3 / 2; border-radius: var(--radio); overflow: hidden; background: var(--degradado-noche); }
.entrada-tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transicion); }
.entrada-tarjeta:hover .entrada-tarjeta__imagen img { transform: scale(1.02); }
.entrada-tarjeta h2 { font-size: var(--t-grande); margin: 0; }
.entrada-tarjeta h2 a { color: var(--oscuro); text-decoration: none; }
.entrada-tarjeta h2 a:hover { color: var(--acento); }
.entrada-tarjeta p { margin: 0; }
.entrada-meta { color: var(--gris); font-size: var(--t-pequeno); display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.entrada-meta a { color: var(--gris); text-decoration: none; }
.entrada-meta a:hover { color: var(--acento); }
.articulo__cabecera { max-width: var(--ancho-texto); margin-inline: auto; }
.articulo__imagen { border-radius: 1rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-block: var(--e-3); }
.paginacion { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--e-4); }
.paginacion a, .paginacion span { text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 0.4rem; }
.paginacion .actual { background: var(--acento); color: var(--base); }
.nav-entradas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: var(--e-4); font-size: var(--t-pequeno); }
.nav-entradas a { text-decoration: none; max-width: 100%; }
.nav-entradas a span { display: block; color: var(--gris); }
.nav-entradas .siguiente { text-align: right; margin-left: auto; }
.caja-articulo { margin-top: var(--e-4); }
.caja-articulo .tarjeta { background: var(--suave); }

/* Vídeo con carga diferida */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--noche); max-width: 56rem; margin-inline: auto; }
.video iframe, .video img, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; }
.video button { background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--base); }
.video button::before { content: ""; width: 5rem; height: 5rem; border-radius: 50%; background: rgba(1, 90, 242, 0.9); box-shadow: var(--sombra); }
.video button::after { content: ""; position: absolute; border-style: solid; border-width: 1rem 0 1rem 1.7rem; border-color: transparent transparent transparent var(--base); margin-left: 0.4rem; }

/* ---------- Pie ---------- */
.pie { background: var(--noche); color: var(--borde); padding: var(--e-5) 0 var(--e-3); }
.pie h2 { color: var(--base); font-size: var(--t-normal); margin-bottom: 0.75rem; }
.pie h2.pie__marca { font-size: var(--t-grande); }
.pie a { color: var(--base); text-decoration-color: rgba(255, 255, 255, 0.35); }
.pie a:hover { text-decoration-color: currentColor; color: var(--base); }
.pie__columnas { display: grid; gap: var(--e-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .pie__columnas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pie__columnas { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pie ul { list-style: none; padding: 0; margin: 0; font-size: var(--t-pequeno); }
.pie li + li { margin-top: 0.4rem; }
.pie a[href^="tel:"], a[href^="tel:"] { white-space: nowrap; }
.pie li a[href^="tel:"], .pie li a[href^="mailto:"] { display: inline-block; overflow-wrap: anywhere; }
.pie hr { border-top-color: rgba(255, 255, 255, 0.25); margin: var(--e-4) 0 var(--e-3); }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; font-size: var(--t-pequeno); }
.pie__legal p { margin: 0; }

/* ---------- Página 404 ---------- */
.error404 { padding-block: var(--e-6); text-align: center; }
.error404 .cifra { font-size: clamp(4rem, 12vw, 8rem); }

/* Impresión */
@media print {
	.cabecera, .pie, .botones, .nav { display: none !important; }
	body { color: #000; }
}
