/*
Theme Name: Cerrajeros Legazpi FSE
Theme URI: https://cerrajeroslegazpi.com/
Description: Tema hijo de bloques (Full Site Editing) para Cerrajeros Legazpi (Madrid), con estética de «forja moderna» inspirada en los pegasos de la plaza de Legazpi: azul cielo profundo, terracota de ladrillo y mármol. Tipografías Zilla Slab y Outfit autoalojadas, animaciones CSS sin JavaScript, patrones para portada, servicios, quiénes somos, contacto y textos legales, y preguntas frecuentes con microdata schema.org.
Author: Cerrajeros Legazpi
Template: prime-fse
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cerrajeros-legazpi-fse
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, one-column, wide-blocks
*/

/* ==========================================================================
   Índice
   0. Tokens                     10. Barrio (radar)
   1. Base                       11. Preguntas frecuentes
   2. Botones                    12. Llamada a la acción
   3. Estilos de bloque          13. Páginas interiores
   4. Cabecera                   14. Blog
   5. Marca (logotipo)           15. Pie de página
   6. Hero                       16. 404
   7. Franja de confianza        17. Animaciones al hacer scroll
   8. Servicios                  18. Ajustes móviles
   9. Cómo te ayudamos (pernos)  19. Editor
   ========================================================================== */

/* ==========================================================================
   0. Tokens
   ========================================================================== */

@property --cl-barra {
	syntax: "<color>";
	inherits: false;
	initial-value: #94a3b8;
}

:root {
	--cl-cel: var(--wp--preset--color--blau-cel, #1e3a8a);
	--cl-cel-nit: var(--wp--preset--color--cel-nit, #172554);
	--cl-terracota: var(--wp--preset--color--terracota, #c84b31);
	--cl-forja: var(--wp--preset--color--terracota-forja, #a8381f);
	--cl-terracota-suave: var(--wp--preset--color--terracota-suave, #f2a48e);
	--cl-marbre: var(--wp--preset--color--marbre-claro, #f8fafc);
	--cl-marbre-medio: var(--wp--preset--color--marbre-medio, #e2e8f0);
	--cl-nit: var(--wp--preset--color--gris-nit, #0f172a);
	--cl-acero: var(--wp--preset--color--acero, #475569);
	--cl-blanco: #fff;
	--cl-linea: #cbd5e1;
	--cl-linea-oscura: rgba(248, 250, 252, 0.16);
	--cl-r-s: var(--wp--custom--radius--small, 6px);
	--cl-r-m: var(--wp--custom--radius--medium, 14px);
	--cl-r-l: var(--wp--custom--radius--large, 28px);
	--cl-strip-h: var(--wp--custom--header--strip-height, 2.25rem);
	--cl-sticky-offset: 0px;
	--cl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	/*
	 * El tema padre usa estos colores en su style.css. Se redirigen a la
	 * paleta de Legazpi para que cualquier estilo heredado encaje.
	 */
	--wp--preset--color--color-1: var(--cl-terracota);
	--wp--preset--color--color-2: var(--cl-forja);
	--wp--preset--color--color-4: var(--cl-cel);
	--wp--preset--color--color-6: var(--cl-marbre-medio);
	--wp--preset--color--color-7: var(--cl-linea);
	--wp--preset--color--color-9: var(--cl-marbre);

	/* Iconos, llave, perfil de llave, ladrillo y vetas de mármol (SVG en línea, sin peticiones externas). */
	--cl-svg-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.5L4.4 2.9C3.4 3.1 2.7 4 2.8 5C3.4 13.8 10.2 20.6 19 21.2C20 21.3 20.9 20.6 21.1 19.6L21.5 17.4C21.6 16.8 21.3 16.2 20.7 16L17 14.4C16.5 14.2 15.9 14.3 15.5 14.7L13.9 16.4C11 15 9 13 7.6 10.1L9.3 8.5C9.7 8.1 9.8 7.5 9.6 7L8 3.3C7.8 2.7 7.2 2.4 6.6 2.5Z'/%3E%3C/svg%3E");
	--cl-svg-reloj: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3Cpath d='M12 3v1.2M21 12h-1.2M12 21v-1.2M3 12h1.2'/%3E%3C/svg%3E");
	--cl-svg-telefono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.2 4.6 3.6c-.9.2-1.5 1-1.4 1.9.6 8.3 7 14.7 15.3 15.3.9.1 1.7-.5 1.9-1.4l.4-2a1.3 1.3 0 0 0-.8-1.5l-3.4-1.4a1.3 1.3 0 0 0-1.4.3l-1.4 1.5c-2.7-1.3-4.6-3.2-5.9-5.9l1.5-1.4c.4-.4.5-.9.3-1.4L8.3 4a1.3 1.3 0 0 0-1.7-.8z'/%3E%3Cpath d='M15 3.5a6 6 0 0 1 5.5 5.5M14.6 6.6a3 3 0 0 1 2.8 2.8'/%3E%3C/svg%3E");
	--cl-svg-escudo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.2c0 4.6-3.1 8.3-7.5 9.8-4.4-1.5-7.5-5.2-7.5-9.8V6z'/%3E%3Cpath d='m8.8 12.2 2.2 2.2 4.3-4.4'/%3E%3C/svg%3E");
	--cl-svg-edificio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V6.5L12 4v17M12 9h7v12'/%3E%3Cpath d='M8.5 9v.01M8.5 12.5v.01M8.5 16v.01M15.5 12.5v.01M15.5 16v.01'/%3E%3C/svg%3E");
	--cl-svg-bombin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='5.5'/%3E%3Cpath d='M8.2 12.5 7 21h10l-1.2-8.5'/%3E%3Cpath d='M12 6.5v4'/%3E%3C/svg%3E");
	--cl-svg-cerrojo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='12' height='11' rx='2'/%3E%3Cpath d='M14.5 10h7v4h-7'/%3E%3Ccircle cx='8.5' cy='12' r='2.2'/%3E%3Cpath d='M8.5 14.2v1.6'/%3E%3C/svg%3E");
	--cl-svg-cierre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h19M4 4v16.5M20 4v16.5M4 7.6h16M4 10.8h16M4 14h16M4 17.2h16'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E");
	--cl-svg-ubicacion: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.6A7 7 0 0 0 5 9.4C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.6'/%3E%3C/svg%3E");
	--cl-svg-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--cl-svg-llave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cdefs%3E%3Cmask id='h'%3E%3Crect width='120' height='40' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='20' cy='14.4' r='4.6'/%3E%3Ccircle cx='20' cy='25.6' r='4.6'/%3E%3Ccircle cx='14.4' cy='20' r='4.6'/%3E%3Ccircle cx='25.6' cy='20' r='4.6'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cg fill='black' mask='url(%23h)'%3E%3Ccircle cx='20' cy='20' r='16'/%3E%3C/g%3E%3Crect x='35' y='16.6' width='83' height='6.8' rx='1.5'/%3E%3Crect x='37' y='12.5' width='5' height='15' rx='1.2'/%3E%3Cpath d='M92 23h26v13h-8v-6.5h-6V36h-12z'/%3E%3C/svg%3E");
	--cl-svg-perfil-arriba: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath fill='%231E3A8A' d='M0 20V12H18L24 6H40L46 12H58L66 3H84L90 9H104L112 14H128L134 8H150L156 2H172L180 10H196L202 5H216L224 12H240V20Z'/%3E%3C/svg%3E");
	--cl-svg-perfil-abajo-marmol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath fill='%23F8FAFC' d='M0 20V12H18L24 6H40L46 12H58L66 3H84L90 9H104L112 14H128L134 8H150L156 2H172L180 10H196L202 5H216L224 12H240V20Z'/%3E%3C/svg%3E");
	--cl-svg-trazo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 9H40L46 4H70L76 12H104L110 6H140L146 11H198' fill='none' stroke='%23C84B31' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	--cl-svg-ladrillo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cg fill='none' stroke='%230F172A' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M0 .7H64M0 16.7H64M32 .7V16.7M16 16.7V32M48 16.7V32'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M1 2.2H31M33 2.2H63M1 18.2H15M17 18.2H47M49 18.2H63'/%3E%3C/g%3E%3C/svg%3E");
	--cl-svg-vetas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.0028 .0075' numOctaves='3' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .52 0 0 0 0 .58 0 0 0 0 .68 -5.5 0 0 0 .62'/%3E%3C/filter%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.006 .013' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .58 0 0 0 0 .64 0 0 0 0 .74 -7 0 0 0 .34'/%3E%3C/filter%3E%3Crect width='640' height='640' filter='url(%23v)'/%3E%3Crect width='640' height='640' filter='url(%23w)'/%3E%3C/svg%3E");
	--cl-svg-llave-v-azul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120' fill='%231E3A8A'%3E%3Cdefs%3E%3Cmask id='h'%3E%3Crect width='40' height='120' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='14.4' cy='20' r='4.6'/%3E%3Ccircle cx='25.6' cy='20' r='4.6'/%3E%3Ccircle cx='20' cy='14.4' r='4.6'/%3E%3Ccircle cx='20' cy='25.6' r='4.6'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cg fill='%231E3A8A' mask='url(%23h)'%3E%3Ccircle cx='20' cy='20' r='16'/%3E%3C/g%3E%3Crect x='16.6' y='35' width='6.8' height='83' rx='1.5'/%3E%3Crect x='12.5' y='37' width='15' height='5' rx='1.2'/%3E%3Cpath d='M23 92v26h13v-8h-6.5v-6H36v-12z'/%3E%3C/svg%3E");
	--cl-svg-llave-v-blanca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120' fill='%23FFFFFF'%3E%3Cdefs%3E%3Cmask id='h'%3E%3Crect width='40' height='120' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='14.4' cy='20' r='4.6'/%3E%3Ccircle cx='25.6' cy='20' r='4.6'/%3E%3Ccircle cx='20' cy='14.4' r='4.6'/%3E%3Ccircle cx='20' cy='25.6' r='4.6'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cg fill='%23FFFFFF' mask='url(%23h)'%3E%3Ccircle cx='20' cy='20' r='16'/%3E%3C/g%3E%3Crect x='16.6' y='35' width='6.8' height='83' rx='1.5'/%3E%3Crect x='12.5' y='37' width='15' height='5' rx='1.2'/%3E%3Cpath d='M23 92v26h13v-8h-6.5v-6H36v-12z'/%3E%3C/svg%3E");
	--cl-svg-perfil-abajo-medio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath fill='%23E2E8F0' transform='matrix(1 0 0 -1 0 20)' d='M0 20V12H18L24 6H40L46 12H58L66 3H84L90 9H104L112 14H128L134 8H150L156 2H172L180 10H196L202 5H216L224 12H240V20Z'/%3E%3C/svg%3E");
}

.admin-bar {
	--cl-sticky-offset: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--cl-sticky-offset: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar {
		--cl-sticky-offset: 0px;
	}
}

/* ==========================================================================
   1. Base
   ========================================================================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--cl-sticky-offset) + 6rem);
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01" 0;
}

::selection {
	background: var(--cl-terracota);
	color: var(--cl-blanco);
}

.wp-site-blocks > * + *,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

:where(.wp-site-blocks) a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.22em;
	text-decoration-color: color-mix(in srgb, var(--cl-terracota) 70%, transparent);
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

:where(.wp-site-blocks) a:where(:not(.wp-element-button)):hover {
	text-decoration-color: currentColor;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 3px solid var(--cl-terracota);
	outline-offset: 3px;
	border-radius: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

h1,
h2,
h3,
h4,
.wp-block-post-title {
	overflow-wrap: break-word;
	hyphens: manual;
	text-wrap: balance;
}

img {
	height: auto;
}

strong {
	font-weight: 600;
}

/* Números de teléfono con cifras alineadas */
a[href^="tel:"] {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Secciones oscuras: titulares en blanco */
.cl-oscuro :where(h1, h2, h3, h4) {
	color: var(--cl-blanco);
}

/* ==========================================================================
   2. Botones
   ========================================================================== */

.wp-element-button,
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, translate 0.2s ease;
}

/* Botones de una misma fila con la misma altura, con o sin icono */
.wp-block-buttons > .wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	box-sizing: border-box;
}

/* Destello de metal pulido al pasar el ratón */
.wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 48%, transparent 62%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--cl-ease);
	pointer-events: none;
}

.wp-block-button__link:hover::after,
.wp-block-button__link:focus-visible::after {
	transform: translateX(120%);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 10px 24px -12px rgba(200, 75, 49, 0.85), 0 0 0 4px rgba(200, 75, 49, 0.14);
}

.wp-block-button__link:active {
	translate: 0 1px;
}

/* Botón de llamada con icono de teléfono que «suena» de vez en cuando */
.wp-block-button.is-style-telefono .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65em;
	font-variant-numeric: tabular-nums;
}

.wp-block-button.is-style-telefono .wp-block-button__link::before {
	content: "";
	flex: 0 0 auto;
	width: 1.2em;
	height: 1.2em;
	background-color: currentColor;
	-webkit-mask: var(--cl-svg-phone) center / contain no-repeat;
	mask: var(--cl-svg-phone) center / contain no-repeat;
	transform-origin: 50% 60%;
	animation: cl-suena 5s ease-in-out 2s infinite;
}

@keyframes cl-suena {
	0%, 82%, 100% { transform: rotate(0); }
	84% { transform: rotate(-14deg); }
	86% { transform: rotate(12deg); }
	88% { transform: rotate(-10deg); }
	90% { transform: rotate(8deg); }
	92% { transform: rotate(-4deg); }
	94% { transform: rotate(0); }
}

.wp-block-button.cl-boton-grande .wp-block-button__link {
	font-size: 1.125rem;
	padding: 1.05em 1.7em;
}

/* Contorno: azul sobre fondos claros, mármol sobre fondos oscuros */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border-color: currentColor;
	color: var(--cl-cel);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background-color: var(--cl-cel);
	border-color: var(--cl-cel);
	color: var(--cl-marbre) !important;
}

.cl-oscuro .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-cielo .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-ladrillo .wp-block-button.is-style-outline .wp-block-button__link,
.cl-cabecera-pagina .wp-block-button.is-style-outline .wp-block-button__link,
.cl-footer .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--cl-marbre);
}

.cl-oscuro .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-cielo .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-ladrillo .wp-block-button.is-style-outline .wp-block-button__link:hover,
.cl-cabecera-pagina .wp-block-button.is-style-outline .wp-block-button__link:hover,
.cl-footer .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--cl-marbre);
	border-color: var(--cl-marbre);
	color: var(--cl-cel) !important;
}

/* Sobre ladrillo, el botón principal pasa a azul para no fundirse con el fondo */
.is-style-ladrillo .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--cl-cel);
	border-color: var(--cl-cel);
	color: var(--cl-blanco);
}

.is-style-ladrillo .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--cl-nit);
	border-color: var(--cl-nit);
	box-shadow: 0 12px 26px -12px rgba(15, 23, 42, 0.8);
}

/* ==========================================================================
   3. Estilos de bloque
   ========================================================================== */

/* 3.1 Etiqueta (párrafo): rótulo en mayúsculas con filetes, como el logotipo */
p.is-style-etiqueta,
.wp-block-post-terms.is-style-etiqueta {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-block-end: 0;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--cl-forja);
}

p.is-style-etiqueta::before,
p.is-style-etiqueta.has-text-align-center::after {
	content: "";
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

p.is-style-etiqueta.has-text-align-center {
	justify-content: center;
}

.cl-oscuro p.is-style-etiqueta,
.cl-oscuro .wp-block-post-terms.is-style-etiqueta,
.is-style-cielo p.is-style-etiqueta,
.cl-cabecera-pagina p.is-style-etiqueta,
.cl-footer p.is-style-etiqueta,
.cl-confianza p.is-style-etiqueta {
	color: var(--cl-terracota-suave);
}

.is-style-ladrillo p.is-style-etiqueta {
	color: var(--cl-blanco);
}

.wp-block-post-terms.is-style-etiqueta a {
	text-decoration: none;
	color: inherit;
}

/* 3.2 Mármol (grupo): placa de piedra clara con vetas */
.wp-block-group.is-style-marmol {
	position: relative;
	isolation: isolate;
	background-image: var(--cl-svg-vetas);
	background-size: 640px 640px;
}

/* 3.3 Cielo (grupo): azul profundo con anillos, como el disco del emblema */
.wp-block-group.is-style-cielo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-image:
		radial-gradient(circle at 105% -10%, transparent 0 8.5rem, rgba(248, 250, 252, 0.09) 8.5rem calc(8.5rem + 1.5px), transparent calc(8.5rem + 1.5px) 11.5rem, rgba(248, 250, 252, 0.06) 11.5rem calc(11.5rem + 1.5px), transparent calc(11.5rem + 1.5px)),
		linear-gradient(165deg, var(--cl-cel) 0%, var(--cl-cel-nit) 100%);
}

/* 3.4 Ladrillo (grupo): terracota con aparejo de ladrillo madrileño */
.wp-block-group.is-style-ladrillo {
	position: relative;
	isolation: isolate;
	background-image:
		radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
		linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.18) 100%),
		var(--cl-svg-ladrillo);
	background-size: auto, auto, 64px 32px;
}

/* 3.5 Placa remachada (grupo): chapa con cuatro remaches */
.wp-block-group.is-style-placa {
	position: relative;
	--cl-remache: radial-gradient(circle at 35% 35%, #fff 0 1px, #cbd5e1 1.6px 2.6px, #64748b 3.4px, transparent 4px);
	background-image:
		var(--cl-remache), var(--cl-remache), var(--cl-remache), var(--cl-remache),
		linear-gradient(180deg, #fff 0%, var(--cl-marbre) 100%);
	background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, auto;
	background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px), 0 0;
	background-repeat: no-repeat;
}

/* 3.6 Separador con la llave del logotipo: filete – llave – filete */
.wp-block-separator.is-style-llave {
	position: relative;
	overflow: visible;
	height: 28px !important;
	width: min(100%, 26rem) !important;
	margin-inline: auto;
	border: 0 !important;
	opacity: 1;
	color: var(--cl-terracota) !important;
	background: linear-gradient(90deg, currentColor 0 calc(50% - 58px), transparent calc(50% - 58px) calc(50% + 58px), currentColor calc(50% + 58px)) center / 100% 2px no-repeat !important;
}

.wp-block-separator.is-style-llave::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 84px;
	height: 28px;
	transform: translateX(-50%);
	background: currentColor;
	-webkit-mask: var(--cl-svg-llave) center / contain no-repeat;
	mask: var(--cl-svg-llave) center / contain no-repeat;
}

.wp-block-separator.is-style-llave.alignwide,
.wp-block-separator.is-style-llave.alignfull {
	width: 100% !important;
}

.cl-oscuro .wp-block-separator.is-style-llave,
.cl-footer .wp-block-separator.is-style-llave {
	color: var(--cl-terracota-suave) !important;
}

/* 3.7 Medallón (imagen y destacada): marco redondo como el disco del emblema */
.wp-block-image.is-style-medallon img,
.wp-block-post-featured-image.is-style-medallon img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--cl-marbre);
	outline: 2px solid var(--cl-terracota);
	outline-offset: 6px;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.6);
}

.wp-block-post-featured-image.is-style-medallon {
	overflow: visible;
}

/* Imagen por defecto: el emblema recortado, sin marco extra */
.cl-foto-pagina--por-defecto img {
	aspect-ratio: auto !important;
	object-fit: contain;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	filter: drop-shadow(0 26px 30px rgba(15, 23, 42, 0.45));
}

.cl-foto-pagina--por-defecto {
	max-width: 21rem;
	margin-inline: auto;
}

/* 3.8 Listas: remaches y pernos */
.wp-block-list.is-style-remaches {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-list.is-style-remaches > li {
	position: relative;
	padding-inline-start: 1.7em;
	margin-block: 0.4em;
}

.wp-block-list.is-style-remaches > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.15em;
	top: 0.42em;
	width: 0.72em;
	height: 0.72em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--cl-terracota-suave) 22%, var(--cl-terracota) 60%, var(--cl-forja) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(15, 23, 42, 0.35);
}

/*
 * Pernos (lista numerada): cada paso es un perno de un cilindro de seguridad.
 * Arriba, el perno superior (terracota); abajo, el inferior (azul). Cuando la
 * sección entra en pantalla, todos se alinean en la «línea de corte».
 */
.wp-block-list.is-style-pernos {
	--cl-perno-h: 5.5rem;
	list-style: none;
	counter-reset: cl-perno;
	padding: calc(var(--cl-perno-h) + 1.75rem) 0 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
	gap: 2rem 1.75rem;
	position: relative;
	view-timeline: --cl-pernos block;
}

.wp-block-list.is-style-pernos::before {
	content: "Línea de corte";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--cl-perno-h) / 2);
	border-top: 2px dashed var(--cl-terracota);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: right;
	color: var(--cl-forja);
	line-height: 1.8;
}

.wp-block-list.is-style-pernos > li {
	counter-increment: cl-perno;
	position: relative;
	padding: 0;
	margin: 0;
}

.wp-block-list.is-style-pernos > li::before {
	content: counter(cl-perno, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: calc(-1 * (var(--cl-perno-h) + 1.75rem));
	width: 3.1rem;
	height: var(--cl-perno-h);
	display: grid;
	place-items: start center;
	padding-top: 0.55rem;
	box-sizing: border-box;
	border-radius: 9px 9px 4px 4px;
	clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
	background:
		linear-gradient(180deg, transparent calc(50% - 1px), rgba(15, 23, 42, 0.5) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
		linear-gradient(180deg, var(--cl-terracota) 0 50%, var(--cl-cel) 50% 100%);
	color: var(--cl-blanco);
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 1.1rem;
	font-weight: 700;
	box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.25);
}

.wp-block-list.is-style-pernos > li strong:first-child {
	display: block;
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cl-cel);
}

.cl-oscuro .wp-block-list.is-style-pernos > li strong:first-child {
	color: var(--cl-blanco);
}

/*
 * 3.9 Enlace con flecha. La flecha se pinta con máscara sobre espacios de no
 * separación, así nunca se queda sola en otra línea.
 */
p.cl-enlace-flecha a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--cl-terracota);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.32em;
}

p.cl-enlace-flecha a::after {
	content: "\00a0\00a0\00a0\00a0\00a0\00a0";
	background-color: currentColor;
	-webkit-mask: var(--cl-svg-flecha) 72% 52% / 1em 1em no-repeat;
	mask: var(--cl-svg-flecha) 72% 52% / 1em 1em no-repeat;
	transition: -webkit-mask-position 0.25s var(--cl-ease), mask-position 0.25s var(--cl-ease);
}

p.cl-enlace-flecha a:hover::after {
	-webkit-mask-position: 100% 52%;
	mask-position: 100% 52%;
}

.is-style-cielo p.cl-enlace-flecha a,
.cl-oscuro p.cl-enlace-flecha a {
	text-decoration-color: var(--cl-terracota-suave);
}

/* 3.10 Numeral romano grabado (servicios) */
p.cl-numeral {
	margin: 0;
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.04em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--cl-cel);
	paint-order: stroke fill;
}

.is-style-cielo p.cl-numeral {
	-webkit-text-stroke-color: var(--cl-terracota-suave);
}

/* 3.11 Insignia */
p.cl-insignia {
	align-self: flex-start;
	margin: 0;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--cl-terracota);
	color: var(--cl-blanco);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* 3.12 Teléfono grande */
p.cl-telefono-grande {
	margin: 0;
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
}

p.cl-telefono-grande a {
	text-decoration: none;
	color: inherit;
}

p.cl-telefono-grande a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.12em;
}

/* 3.13 Iconos sobre tarjetas, puntos de confianza y datos */
[class*="cl-icono--"] {
	--cl-icono: var(--cl-svg-llave);
}

.cl-icono--reloj { --cl-icono: var(--cl-svg-reloj); }
.cl-icono--telefono { --cl-icono: var(--cl-svg-telefono); }
.cl-icono--escudo { --cl-icono: var(--cl-svg-escudo); }
.cl-icono--edificio { --cl-icono: var(--cl-svg-edificio); }
.cl-icono--bombin { --cl-icono: var(--cl-svg-bombin); }
.cl-icono--cerrojo { --cl-icono: var(--cl-svg-cerrojo); }
.cl-icono--cierre { --cl-icono: var(--cl-svg-cierre); }
.cl-icono--ubicacion { --cl-icono: var(--cl-svg-ubicacion); }

/* ==========================================================================
   4. Cabecera
   ========================================================================== */

header.wp-block-template-part {
	position: sticky;
	top: calc(var(--cl-sticky-offset) - var(--cl-strip-h));
	z-index: 100;
}

.cl-topbar {
	height: var(--cl-strip-h);
	display: flex;
	align-items: center;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	overflow: hidden;
	background-image: linear-gradient(90deg, var(--cl-cel-nit), var(--cl-cel) 40%, var(--cl-cel) 60%, var(--cl-cel-nit));
}

.cl-topbar__inner {
	width: 100%;
}

.cl-topbar p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cl-topbar a {
	text-decoration: none;
}

.cl-topbar__lema {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* Piloto encendido: servicio de urgencias activo */
.cl-topbar__lema::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--cl-terracota-suave);
	box-shadow: 0 0 0 0 rgba(242, 164, 142, 0.7);
	animation: cl-piloto 2.4s ease-out infinite;
}

@keyframes cl-piloto {
	0% { box-shadow: 0 0 0 0 rgba(242, 164, 142, 0.7); }
	70%, 100% { box-shadow: 0 0 0 0.6rem rgba(242, 164, 142, 0); }
}

.cl-topbar__tel a strong {
	color: var(--cl-blanco);
	font-weight: 700;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--cl-terracota-suave);
}

.cl-header__bar {
	position: relative;
	background-color: rgba(255, 255, 255, 0.9) !important;
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--cl-linea);
	box-shadow: 0 14px 30px -26px rgba(15, 23, 42, 0.6);
}

/* Barra de progreso de lectura en terracota (solo navegadores con animaciones ligadas al scroll) */
.cl-header__bar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--cl-terracota), var(--cl-terracota-suave));
	transform-origin: left center;
	transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.cl-header__bar::after {
			animation: cl-progreso linear both;
			animation-timeline: scroll(root block);
		}

		.cl-marca__emblema img {
			animation: cl-encoge linear both;
			animation-timeline: scroll(root block);
			animation-range: 0 260px;
		}
	}
}

@keyframes cl-progreso {
	to { transform: scaleX(1); }
}

@keyframes cl-encoge {
	to { height: 46px; }
}

.cl-header__acciones {
	flex-shrink: 1;
	min-width: 0;
}

.cl-header__llamar {
	flex-shrink: 0;
	gap: 0.5rem;
}

.cl-header__llamar .wp-block-button__link {
	white-space: nowrap;
	font-size: 0.95rem;
	padding: 0.8em 1.15em;
}

/* Navegación */
.cl-nav .wp-block-navigation-item__content {
	padding: 0.5rem 0.2rem;
	position: relative;
}

@media (min-width: 1080px) {
	.cl-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
		content: "";
		position: absolute;
		left: 50%;
		right: 50%;
		bottom: 0.15rem;
		height: 2px;
		background: var(--cl-terracota);
		transition: left 0.3s var(--cl-ease), right 0.3s var(--cl-ease);
	}

	.cl-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
	.cl-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"]::after {
		left: 0.2rem;
		right: 0.2rem;
	}

	.cl-nav .wp-block-navigation__submenu-container {
		background: var(--cl-blanco) !important;
		border: 1px solid var(--cl-linea) !important;
		border-top: 3px solid var(--cl-terracota) !important;
		border-radius: 0 0 var(--cl-r-m) var(--cl-r-m) !important;
		box-shadow: 0 24px 40px -22px rgba(15, 23, 42, 0.5) !important;
		min-width: 20rem !important;
		padding: 0.45rem !important;
		font-size: 0.975rem;
	}

	.cl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 0.7rem 0.85rem !important;
		border-radius: var(--cl-r-s);
		color: var(--cl-nit);
	}

	.cl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background: var(--cl-marbre-medio);
		color: var(--cl-forja);
	}

	.cl-nav .has-child li::after {
		display: none !important;
	}
}

/* Menú desplegable (móvil y tableta) */
.cl-nav .wp-block-navigation__responsive-container-open {
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border: 2px solid var(--cl-cel);
	border-radius: var(--cl-r-s);
	color: var(--cl-cel);
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-image:
		radial-gradient(circle at 110% 0, transparent 0 11rem, rgba(248, 250, 252, 0.08) 11rem calc(11rem + 1.5px), transparent calc(11rem + 1.5px)),
		linear-gradient(165deg, var(--cl-cel), var(--cl-cel-nit)) !important;
	padding: calc(var(--cl-sticky-offset) + 1.5rem) 1.5rem 2rem;
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 1.25rem;
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 1.75rem;
	font-weight: 700;
	padding: 0.15rem 0;
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0.5rem 0 0 1rem !important;
	margin: 0 !important;
	border-left: 2px solid var(--cl-terracota-suave) !important;
	gap: 0.6rem;
}

.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 1.1rem;
	font-weight: 500;
}

.cl-nav .wp-block-navigation__responsive-container-close {
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border: 2px solid var(--cl-marbre);
	border-radius: var(--cl-r-s);
}

/* El menú completo solo cabe a partir de 1080 px: por debajo, botón de menú */
@media (max-width: 599px) {
	.cl-nav .wp-block-navigation__responsive-container-open {
		display: grid;
	}
}

@media (min-width: 600px) and (max-width: 1079px) {
	.cl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: grid;
	}

	.cl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.cl-solo-movil {
	display: none !important;
}

@media (max-width: 1079px) {
	.cl-solo-escritorio {
		display: none !important;
	}

	.cl-solo-movil {
		display: block !important;
	}

	.cl-header__acciones .cl-nav {
		order: 2;
	}
}

@media (max-width: 782px) {
	.cl-topbar__lema {
		display: none !important;
	}

	.cl-topbar__inner {
		justify-content: center !important;
	}
}

/* ==========================================================================
   5. Marca (logotipo en HTML: emblema + «CERRAJEROS / LEGAZPI»)
   ========================================================================== */

.cl-marca {
	flex-shrink: 0;
}

.cl-marca .wp-block-image {
	margin: 0;
}

.cl-marca__emblema img {
	display: block;
	width: auto !important;
	height: 62px;
	filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.2));
	transition: transform 0.4s var(--cl-ease);
}

.cl-marca__emblema a:hover img {
	transform: rotate(-4deg) scale(1.04);
}

p.cl-marca__nombre {
	margin: 0;
	font-family: var(--wp--preset--font-family--zilla-slab);
	line-height: 1;
	text-transform: uppercase;
}

p.cl-marca__nombre a {
	display: inline-grid;
	justify-items: center;
	color: var(--cl-cel);
	text-decoration: none;
}

p.cl-marca__nombre span {
	display: flex;
	align-items: center;
	gap: 0.45em;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	margin-right: -0.32em;
}

p.cl-marca__nombre span::before,
p.cl-marca__nombre span::after {
	content: "";
	width: 1.1em;
	height: 1.5px;
	background: var(--cl-terracota);
}

p.cl-marca__nombre strong {
	display: block;
	margin-top: 0.12rem;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

p.cl-marca__nombre a:hover strong {
	color: var(--cl-forja);
}

/* Variante clara para el pie */
.cl-footer p.cl-marca__nombre a {
	color: var(--cl-blanco);
}

.cl-footer p.cl-marca__nombre span::before,
.cl-footer p.cl-marca__nombre span::after {
	background: var(--cl-terracota-suave);
}

.cl-footer p.cl-marca__nombre strong {
	font-size: 2.4rem;
}

@media (max-width: 599px) {
	.cl-marca__emblema img {
		height: 46px;
	}

	.cl-header .cl-marca {
		gap: 0.45rem !important;
	}

	.cl-header__inner,
	.cl-header__acciones {
		gap: 0.5rem !important;
	}

	.cl-header p.cl-marca__nombre span {
		gap: 0.3em;
		font-size: 0.5rem;
		letter-spacing: 0.2em;
		margin-right: -0.2em;
	}

	.cl-header p.cl-marca__nombre span::before,
	.cl-header p.cl-marca__nombre span::after {
		width: 0.6em;
	}

	.cl-header p.cl-marca__nombre strong {
		font-size: 1.12rem;
	}

	.cl-header__llamar .wp-block-button__link {
		padding: 0.75em 0.8em;
		font-size: 0.88rem;
		gap: 0.45em;
	}

	@supports (animation-timeline: scroll()) {
		@keyframes cl-encoge {
			to { height: 40px; }
		}
	}
}

@media (max-width: 339px) {
	.cl-header p.cl-marca__nombre {
		display: none;
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.cl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-image:
		radial-gradient(ellipse at 78% 40%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
		var(--cl-svg-vetas);
	background-size: auto, 640px 640px;
}

/* Anillos concéntricos gigantes detrás del monumento (eco del anillo del logotipo) */
.cl-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -14rem;
	top: 50%;
	width: 62rem;
	aspect-ratio: 1;
	transform: translateY(-50%);
	border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 4.4rem, rgba(30, 58, 138, 0.07) 4.4rem calc(4.4rem + 1.5px));
	-webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
	mask: radial-gradient(circle, #000 30%, transparent 70%);
	pointer-events: none;
}

.cl-hero__titulo {
	font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.6rem);
	line-height: 1;
	letter-spacing: -0.012em;
	text-wrap: balance;
	/* Letras «acuñadas»: un filo de luz bajo cada trazo */
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 rgba(30, 58, 138, 0.08);
}

/* Palabra subrayada con el perfil dentado de una llave, que se dibuja al cargar */
mark.cl-trazo,
.cl-trazo {
	background-color: transparent;
	color: inherit;
	background-image: var(--cl-svg-trazo);
	background-repeat: no-repeat;
	background-position: 0 96%;
	background-size: 100% 0.32em;
	padding-bottom: 0.08em;
}

@media (prefers-reduced-motion: no-preference) {
	mark.cl-trazo,
	.cl-trazo {
		background-size: 0% 0.32em;
		animation: cl-trazo 1.1s 0.5s var(--cl-ease) forwards;
	}
}

@keyframes cl-trazo {
	to { background-size: 100% 0.32em; }
}

.cl-hero__nota {
	color: var(--cl-acero);
}

.cl-hero__nota strong {
	color: var(--cl-nit);
}

/* Monumento: hornacina de mármol, emblema y pedestal */
.cl-monumento {
	position: relative;
	max-width: 33rem;
	margin-inline: auto;
	padding-top: 2.5rem;
}

.cl-hornacina {
	position: relative;
	isolation: isolate;
	aspect-ratio: 5 / 5.6;
	border-radius: 999px 999px var(--cl-r-m) var(--cl-r-m);
	background:
		radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
		var(--cl-svg-vetas),
		linear-gradient(180deg, #eef2f7, var(--cl-marbre-medio));
	background-size: auto, 640px 640px, auto;
	box-shadow:
		inset 0 18px 30px -10px rgba(15, 23, 42, 0.22),
		inset 0 -2px 0 rgba(255, 255, 255, 0.8),
		0 0 0 10px rgba(255, 255, 255, 0.75),
		0 0 0 11px var(--cl-linea),
		0 40px 70px -40px rgba(23, 37, 84, 0.55);
}

/* Molduras de la hornacina */
.cl-hornacina::before {
	content: "";
	position: absolute;
	inset: 1.1rem;
	z-index: -1;
	border-radius: inherit;
	border: 1.5px solid rgba(30, 58, 138, 0.18);
}

.cl-hornacina > * {
	margin: 0 !important;
}

.cl-hero__emblema {
	position: absolute !important;
	left: 6%;
	right: 6%;
	bottom: 3%;
	margin: 0 !important;
}

.cl-hero__emblema img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 22px 22px rgba(15, 23, 42, 0.3));
}

/* Brillo que recorre el mármol del pegaso (máscara con la propia silueta) */
.cl-hero__emblema::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
	background-size: 260% 100%;
	background-position: 130% 0;
	-webkit-mask: url("assets/images/emblema-1000.webp") center / 100% 100% no-repeat;
	mask: url("assets/images/emblema-1000.webp") center / 100% 100% no-repeat;
	mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: no-preference) {
	.cl-hero__emblema {
		animation: cl-eleva 1.3s 0.15s var(--cl-ease) both;
	}

	.cl-hero__emblema::after {
		animation: cl-brillo 7s 1.8s ease-in-out infinite;
	}
}

@keyframes cl-eleva {
	from {
		opacity: 0;
		transform: translateY(2.5rem) scale(0.97);
	}
}

@keyframes cl-brillo {
	0% { background-position: 130% 0; }
	35%, 100% { background-position: -30% 0; }
}

/* Pedestal con inscripción grabada */
p.cl-pedestal {
	position: relative;
	margin: 0 auto !important;
	width: 86%;
	padding: 0.8rem 1rem 0.85rem;
	text-align: center;
	border-radius: 0 0 var(--cl-r-s) var(--cl-r-s);
	background: linear-gradient(180deg, var(--cl-cel) 0%, var(--cl-cel-nit) 100%);
	color: rgba(248, 250, 252, 0.92);
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 34px -24px rgba(15, 23, 42, 0.7);
}

p.cl-pedestal::before {
	content: "";
	position: absolute;
	left: -4%;
	right: -4%;
	top: -6px;
	height: 6px;
	border-radius: 3px 3px 0 0;
	background: var(--cl-nit);
}

/* Sello giratorio de 24 dientes (uno por hora) */
.cl-hero__sello {
	position: absolute !important;
	left: -1.5rem;
	top: 0.5rem;
	width: clamp(6.5rem, 9vw, 8.75rem);
	margin: 0 !important;
	z-index: 2;
	filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.3));
}

.cl-hero__sello img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   7. Franja de confianza: el borde superior es el perfil de una llave
   ========================================================================== */

.cl-confianza {
	position: relative;
	background-image: linear-gradient(180deg, var(--cl-cel) 0%, var(--cl-cel-nit) 100%);
}

.cl-confianza::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -17px;
	height: 18px;
	background: var(--cl-svg-perfil-arriba) repeat-x 0 0 / 240px 18px;
	pointer-events: none;
}

.cl-confianza__item {
	position: relative;
	padding-inline-start: 4.1rem;
	min-height: 3.2rem;
}

.cl-confianza__item::before,
.cl-confianza__item::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
}

.cl-confianza__item::before {
	border: 1.5px solid rgba(242, 164, 142, 0.55);
	background: rgba(248, 250, 252, 0.06);
}

.cl-confianza__item::after {
	background: var(--cl-terracota-suave);
	-webkit-mask: var(--cl-icono) center / 1.45rem 1.45rem no-repeat;
	mask: var(--cl-icono) center / 1.45rem 1.45rem no-repeat;
	transition: transform 0.4s var(--cl-ease);
}

.cl-confianza__item:hover::after {
	transform: rotate(-12deg) scale(1.08);
}

.cl-confianza__item p {
	margin: 0;
}

p.cl-confianza__titulo {
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cl-blanco);
}

.cl-confianza__item a {
	color: var(--cl-blanco);
	font-weight: 600;
}

/* ==========================================================================
   8. Servicios: tarjetas que «se calientan» al pasar el ratón
   ========================================================================== */

.cl-tarjeta {
	--cl-barra: #94a3b8;
	overflow: hidden;
	transition: translate 0.35s var(--cl-ease), box-shadow 0.35s var(--cl-ease), --cl-barra 0.45s ease;
}

.cl-tarjeta > * {
	margin-block: 0;
}

/* Barra superior de metal: gris acero en reposo, al rojo al pasar el ratón */
.cl-tarjeta::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--cl-barra), color-mix(in srgb, var(--cl-barra) 55%, #fff), var(--cl-barra));
	transition: box-shadow 0.45s ease;
}

.cl-tarjeta:hover {
	--cl-barra: var(--cl-terracota);
	translate: 0 -6px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 34px 50px -30px rgba(15, 23, 42, 0.5);
}

.cl-tarjeta:hover::before {
	box-shadow: 0 0 18px 2px rgba(200, 75, 49, 0.55);
}

/* Icono del servicio en un medallón, arriba a la derecha */
.cl-tarjeta[class*="cl-icono--"]::after {
	content: "";
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	background:
		radial-gradient(circle, transparent 58%, rgba(30, 58, 138, 0.18) 59% 61%, transparent 62%),
		var(--cl-marbre);
	box-shadow: inset 0 0 0 1.5px var(--cl-linea), 0 8px 14px -10px rgba(15, 23, 42, 0.5);
	transition: transform 0.6s var(--cl-ease);
}

.cl-tarjeta[class*="cl-icono--"] > .wp-block-heading::before {
	content: "";
	position: absolute;
	top: calc(1.5rem + 1.05rem);
	right: calc(1.5rem + 1.05rem);
	width: 1.5rem;
	height: 1.5rem;
	background: var(--cl-cel);
	-webkit-mask: var(--cl-icono) center / contain no-repeat;
	mask: var(--cl-icono) center / contain no-repeat;
	transition: transform 0.6s var(--cl-ease);
	z-index: 1;
}

.cl-tarjeta:hover[class*="cl-icono--"]::after,
.cl-tarjeta:hover[class*="cl-icono--"] > .wp-block-heading::before {
	transform: rotate(-30deg);
}

.is-style-cielo.cl-tarjeta[class*="cl-icono--"]::after {
	background:
		radial-gradient(circle, transparent 58%, rgba(242, 164, 142, 0.4) 59% 61%, transparent 62%),
		rgba(248, 250, 252, 0.08);
	box-shadow: inset 0 0 0 1.5px rgba(248, 250, 252, 0.25);
}

.is-style-cielo.cl-tarjeta[class*="cl-icono--"] > .wp-block-heading::before {
	background: var(--cl-terracota-suave);
}

.cl-tarjeta h3 {
	font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.75rem);
	padding-right: 4.25rem;
}

.cl-tarjeta .cl-enlace-flecha {
	margin-top: auto !important;
	padding-top: 0.5rem;
}

.is-style-cielo.cl-tarjeta .wp-block-list.is-style-remaches > li::before {
	box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.15);
}

@media (min-width: 782px) {
	.cl-servicio--destacado {
		margin-top: -1.25rem !important;
	}
}

/* ==========================================================================
   9. Cómo te ayudamos
   ========================================================================== */

.cl-ayuda {
	background-image: var(--cl-svg-vetas);
	background-size: 640px 640px;
}

/* Animación de los pernos: desalineados → alineados al entrar en pantalla */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.wp-block-list.is-style-pernos > li::before {
			animation: cl-perno linear both;
			animation-timeline: --cl-pernos;
			animation-range: entry 15% cover 45%;
		}

		.wp-block-list.is-style-pernos > li:nth-child(4n + 1)::before { --cl-desfase: 1.6rem; }
		.wp-block-list.is-style-pernos > li:nth-child(4n + 2)::before { --cl-desfase: -1.4rem; }
		.wp-block-list.is-style-pernos > li:nth-child(4n + 3)::before { --cl-desfase: 2.2rem; }
		.wp-block-list.is-style-pernos > li:nth-child(4n + 4)::before { --cl-desfase: -0.9rem; }
	}
}

@keyframes cl-perno {
	from { transform: translateY(var(--cl-desfase, 1rem)); }
	70% { transform: translateY(calc(var(--cl-desfase, 1rem) * -0.12)); }
	to { transform: none; }
}

.cl-ayuda__cilindro {
	margin: 0;
}

.cl-ayuda__cilindro img {
	width: 100%;
	height: auto;
}

/* ==========================================================================
   10. Barrio: radar sobre la plaza de Legazpi
   ========================================================================== */

.cl-barrio {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(ellipse at 75% 50%, rgba(30, 58, 138, 0.65), transparent 60%),
		linear-gradient(180deg, var(--cl-cel-nit) 0%, var(--cl-nit) 100%);
}

.cl-barrio::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 18px;
	background: var(--cl-svg-perfil-abajo-medio) repeat-x 0 0 / 240px 18px;
	pointer-events: none;
}

.cl-radar {
	position: relative;
	width: min(100%, 31rem);
	aspect-ratio: 1;
	margin-inline: auto;
	border-radius: 50%;
	isolation: isolate;
	background:
		radial-gradient(circle, transparent 0 22%, rgba(248, 250, 252, 0.16) 22% calc(22% + 1px), transparent calc(22% + 1px) 47%, rgba(248, 250, 252, 0.14) 47% calc(47% + 1px), transparent calc(47% + 1px) 70%, rgba(248, 250, 252, 0.12) 70% calc(70% + 1px), transparent calc(70% + 1px) 99%, rgba(242, 164, 142, 0.5) 99%),
		conic-gradient(from 0deg, rgba(248, 250, 252, 0.07) 0 0.4deg, transparent 0.4deg 45deg, rgba(248, 250, 252, 0.07) 45deg 45.4deg, transparent 45.4deg 90deg, rgba(248, 250, 252, 0.07) 90deg 90.4deg, transparent 90.4deg 135deg, rgba(248, 250, 252, 0.07) 135deg 135.4deg, transparent 135.4deg 180deg, rgba(248, 250, 252, 0.07) 180deg 180.4deg, transparent 180.4deg 225deg, rgba(248, 250, 252, 0.07) 225deg 225.4deg, transparent 225.4deg 270deg, rgba(248, 250, 252, 0.07) 270deg 270.4deg, transparent 270.4deg 315deg, rgba(248, 250, 252, 0.07) 315deg 315.4deg, transparent 315.4deg);
}

/* Haz de barrido */
.cl-radar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(200, 75, 49, 0) 0deg, rgba(200, 75, 49, 0) 300deg, rgba(242, 164, 142, 0.38) 359deg, rgba(242, 164, 142, 0) 360deg);
}

@media (prefers-reduced-motion: no-preference) {
	.cl-radar::before {
		animation: cl-barrido 6s linear infinite;
	}
}

@keyframes cl-barrido {
	to { transform: rotate(1turn); }
}

.cl-radar > * {
	margin: 0 !important;
}

.cl-radar__centro {
	position: absolute !important;
	left: 50%;
	top: 50%;
	width: 30%;
	transform: translate(-50%, -54%);
}

.cl-radar__centro img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

/* Placas de barrio alrededor del radar */
p.cl-radar__barrio {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 0.4em 0.8em;
	border-radius: var(--cl-r-s);
	background: var(--cl-marbre);
	color: var(--cl-cel);
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: clamp(0.8rem, 0.7rem + 0.35vw, 0.98rem);
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6), inset 0 -2px 0 var(--cl-marbre-medio);
}

p.cl-radar__barrio::before {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-right: 0.45em;
	border-radius: 50%;
	vertical-align: 0.12em;
	background: var(--cl-terracota);
}

p.cl-radar__barrio--centro {
	left: 50%;
	top: 72%;
	background: var(--cl-terracota);
	color: var(--cl-blanco);
	font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
}

p.cl-radar__barrio--centro::before {
	background: var(--cl-blanco);
}

/* Seis posiciones en el anillo exterior (ángulos de 60°) */
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(2) { left: 50%; top: 9%; }
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(3) { left: 86%; top: 29%; }
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(4) { left: 86%; top: 71%; }
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(5) { left: 50%; top: 92%; }
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(6) { left: 14%; top: 71%; }
.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(7) { left: 14%; top: 29%; }

@media (prefers-reduced-motion: no-preference) {
	p.cl-radar__barrio:not(.cl-radar__barrio--centro) {
		animation: cl-flota 6s ease-in-out infinite;
	}

	.cl-radar > p.cl-radar__barrio:nth-of-type(odd) {
		animation-delay: -3s;
	}
}

@keyframes cl-flota {
	50% { translate: 0 -5px; }
}

p.cl-radar__pie {
	margin-top: var(--wp--preset--spacing--30);
	color: rgba(248, 250, 252, 0.62);
	letter-spacing: 0.04em;
}

.cl-barrio .wp-block-list.is-style-remaches > li::before {
	box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.12);
}

/* ==========================================================================
   11. Preguntas frecuentes (microdata en bloque HTML)
   ========================================================================== */

@media (min-width: 782px) {
	.cl-faq-intro {
		position: sticky;
		top: calc(var(--cl-sticky-offset) + 7rem);
	}
}

.cl-faq {
	display: grid;
	gap: 0.75rem;
}

.cl-faq__item {
	border: 1px solid var(--cl-linea);
	border-radius: var(--cl-r-m);
	background: var(--cl-blanco);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 26px -24px rgba(15, 23, 42, 0.5);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cl-faq__item[open] {
	border-color: rgba(200, 75, 49, 0.45);
	box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.08), 0 20px 34px -26px rgba(15, 23, 42, 0.55);
}

.cl-faq__pregunta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	cursor: pointer;
	list-style: none;
}

.cl-faq__pregunta::-webkit-details-marker {
	display: none;
}

.cl-faq__pregunta h3 {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.2s ease;
}

/* La llave gira 90° al abrir, como al abrir una cerradura */
.cl-faq__pregunta::after {
	content: "";
	flex: 0 0 auto;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--cl-svg-llave-v-azul) center / auto 64% no-repeat, var(--cl-marbre-medio);
	box-shadow: inset 0 0 0 1.5px var(--cl-linea);
	transition: transform 0.5s var(--cl-ease), box-shadow 0.3s ease;
}

.cl-faq__item[open] > .cl-faq__pregunta::after {
	transform: rotate(90deg);
	background: var(--cl-svg-llave-v-blanca) center / auto 64% no-repeat, var(--cl-terracota);
	box-shadow: 0 6px 14px -6px rgba(200, 75, 49, 0.8);
}

.cl-faq__pregunta:hover h3 {
	color: var(--cl-forja);
}

.cl-faq__respuesta {
	padding: 0 4.75rem 1.3rem 1.25rem;
}

.cl-faq__respuesta p {
	margin: 0;
}

.cl-faq__respuesta p + p {
	margin-top: 0.75em;
}

/* Apertura suave en los navegadores que lo permiten */
@supports (interpolate-size: allow-keywords) {
	@media (prefers-reduced-motion: no-preference) {
		.cl-faq {
			interpolate-size: allow-keywords;
		}

		.cl-faq__item::details-content {
			block-size: 0;
			overflow: clip;
			transition: block-size 0.4s var(--cl-ease), content-visibility 0.4s allow-discrete;
		}

		.cl-faq__item[open]::details-content {
			block-size: auto;
		}
	}
}

/* ==========================================================================
   12. Llamada a la acción
   ========================================================================== */

.cl-cta {
	position: relative;
	overflow: hidden;
}

.cl-cta h2 {
	text-wrap: balance;
	color: var(--cl-blanco);
}

.cl-cta__sello {
	margin: 0 auto !important;
	width: clamp(9rem, 16vw, 13rem);
	filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.35));
}

.cl-cta__sello img {
	display: block;
	width: 100%;
	height: auto;
}

.cl-cta p.cl-telefono-grande {
	text-shadow: 0 2px 0 rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   13. Páginas interiores
   ========================================================================== */

.cl-cabecera-pagina {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-image:
		radial-gradient(circle at 88% 50%, transparent 0 9rem, rgba(248, 250, 252, 0.08) 9rem calc(9rem + 1.5px), transparent calc(9rem + 1.5px) 14rem, rgba(248, 250, 252, 0.06) 14rem calc(14rem + 1.5px), transparent calc(14rem + 1.5px) 19rem, rgba(248, 250, 252, 0.04) 19rem calc(19rem + 1.5px), transparent calc(19rem + 1.5px)),
		linear-gradient(165deg, var(--cl-cel) 0%, var(--cl-cel-nit) 100%);
	color: var(--cl-marbre);
}

/* Borde inferior con el perfil de una llave */
.cl-cabecera-pagina::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 18px;
	background: var(--cl-svg-perfil-abajo-marmol) repeat-x 0 0 / 240px 18px;
	pointer-events: none;
}

.cl-cabecera-pagina h1,
.cl-cabecera-pagina .wp-block-post-title,
.cl-cabecera-pagina .wp-block-query-title {
	color: var(--cl-blanco);
}

.cl-cabecera-pagina .wp-block-post-title {
	font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem);
	line-height: 1.04;
	text-wrap: balance;
}

.cl-cabecera-pagina--sencilla .wp-block-post-title,
.cl-cabecera-pagina--sencilla .wp-block-query-title,
.cl-cabecera-pagina--sencilla h1 {
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.cl-cabecera-pagina a:where(:not(.wp-element-button)) {
	color: var(--cl-marbre);
}

.cl-cabecera-pagina .wp-block-post-date {
	color: rgba(248, 250, 252, 0.8);
}

.cl-cabecera-pagina__lema {
	margin-top: 0.75rem;
	color: rgba(248, 250, 252, 0.88);
}

.cl-cabecera-pagina__lema strong {
	color: var(--cl-blanco);
}

.cl-foto-pagina img {
	width: 100%;
}

.cl-contenido > .wp-block-group:first-child {
	margin-top: 0;
}

.cl-contenido--legal h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: var(--wp--preset--spacing--50);
}

.cl-contenido--legal h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* Bloque de datos (aviso legal, contacto) */
.wp-block-list.cl-datos {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--cl-linea);
}

.wp-block-list.cl-datos > li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--cl-linea);
}

.wp-block-list.cl-datos strong {
	color: var(--cl-cel);
}

.is-style-cielo .wp-block-list.cl-datos,
.is-style-cielo .wp-block-list.cl-datos > li {
	border-color: var(--cl-linea-oscura);
}

.is-style-cielo .wp-block-list.cl-datos strong {
	color: var(--cl-blanco);
}

/* Aviso destacado */
.cl-aviso {
	border-left: 4px solid var(--cl-terracota);
}

/* ==========================================================================
   14. Blog
   ========================================================================== */

.cl-tarjeta-entrada {
	transition: translate 0.35s var(--cl-ease), box-shadow 0.35s var(--cl-ease);
}

.cl-tarjeta-entrada:hover {
	translate: 0 -4px;
	box-shadow: 0 30px 44px -30px rgba(15, 23, 42, 0.45);
}

.cl-tarjeta-entrada .wp-block-post-featured-image {
	margin: 0;
}

.cl-tarjeta-entrada .wp-block-post-featured-image img {
	border-radius: var(--cl-r-s);
}

.cl-tarjeta-entrada .wp-block-post-title a {
	color: var(--cl-cel);
}

.cl-tarjeta-entrada .wp-block-post-excerpt__more-link {
	font-weight: 600;
}

.cl-navegacion-entradas a {
	font-weight: 600;
}

/* ==========================================================================
   15. Pie de página
   ========================================================================== */

.cl-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image:
		radial-gradient(circle at 0% 0%, transparent 0 12rem, rgba(248, 250, 252, 0.06) 12rem calc(12rem + 1.5px), transparent calc(12rem + 1.5px) 17rem, rgba(248, 250, 252, 0.04) 17rem calc(17rem + 1.5px), transparent calc(17rem + 1.5px)),
		linear-gradient(180deg, var(--cl-cel) 0%, var(--cl-cel-nit) 100%);
}

/* Inscripción monumental de fondo */
.cl-footer::after {
	content: "LEGAZPI" / "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -0.16em;
	transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: clamp(5rem, 21vw, 19rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(248, 250, 252, 0.1);
	pointer-events: none;
}

.cl-footer__cta h2 {
	margin: 0;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
	max-width: 22ch;
	text-wrap: balance;
}

.cl-footer h2.cl-footer__titulo {
	font-family: var(--wp--preset--font-family--outfit);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cl-terracota-suave);
	margin-bottom: 0.9rem;
}

.cl-footer .wp-block-list.cl-footer__lista,
.cl-footer .wp-block-list.cl-footer__legal {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cl-footer__lista > li {
	margin-block: 0.5rem;
}

.cl-footer__lista a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size 0.3s var(--cl-ease);
}

.cl-footer__lista a:hover {
	background-size: 100% 1.5px;
}

.cl-footer__legal > li {
	margin-block: 0.35rem;
	line-height: 1.5;
}

.cl-footer__legal strong {
	color: var(--cl-blanco);
}

.cl-footer__marca .wp-block-image {
	margin: 0;
}

.cl-footer__marca .cl-marca__emblema img {
	height: 96px;
	animation: none !important;
}

.cl-footer__base {
	border-top: 1px solid var(--cl-linea-oscura);
	padding-top: var(--wp--preset--spacing--30);
}

.cl-footer__base p {
	margin: 0;
	opacity: 0.88;
}

.cl-footer__base a strong {
	color: var(--cl-blanco);
}

/* ==========================================================================
   16. 404
   ========================================================================== */

.cl-404 {
	position: relative;
}

p.cl-404__numero {
	position: relative;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--zilla-slab);
	font-size: clamp(6rem, 4rem + 9vw, 11rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.04em;
	color: transparent;
	-webkit-text-stroke: 2px var(--cl-cel);
}

/* Una llave que intenta girar… y no puede */
p.cl-404__numero::after {
	content: "";
	display: block;
	width: 9rem;
	height: 3rem;
	margin: 1rem auto 0;
	background: var(--cl-terracota);
	-webkit-mask: var(--cl-svg-llave) center / contain no-repeat;
	mask: var(--cl-svg-llave) center / contain no-repeat;
	transform-origin: 14% 50%;
}

@media (prefers-reduced-motion: no-preference) {
	p.cl-404__numero::after {
		animation: cl-forcejea 3.2s ease-in-out infinite;
	}
}

@keyframes cl-forcejea {
	0%, 40%, 100% { transform: rotate(0); }
	46% { transform: rotate(-9deg); }
	52% { transform: rotate(6deg); }
	58% { transform: rotate(-7deg); }
	64% { transform: rotate(4deg); }
	70% { transform: rotate(0); }
}

/* ==========================================================================
   17. Animaciones al hacer scroll (sin JavaScript, solo donde hay soporte)
   ========================================================================== */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.cl-revela,
		.cl-servicios__columnas > .wp-block-column,
		.cl-confianza__item,
		.cl-faq__item,
		.cl-radar {
			animation: cl-aparece linear both;
			animation-timeline: view();
			animation-range: entry 5% entry 55%;
		}

		.cl-servicios__columnas > .wp-block-column:nth-child(2) {
			animation-range: entry 12% entry 62%;
		}

		.cl-servicios__columnas > .wp-block-column:nth-child(3) {
			animation-range: entry 19% entry 69%;
		}
	}
}

@keyframes cl-aparece {
	from {
		opacity: 0;
		transform: translateY(2rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   18. Ajustes móviles generales
   ========================================================================== */

@media (max-width: 781px) {
	.cl-hero .wp-block-buttons,
	.cl-cabecera-pagina .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.cl-hero .wp-block-button,
	.cl-cabecera-pagina .wp-block-button,
	.cl-hero .wp-block-button__link,
	.cl-cabecera-pagina .wp-block-button__link {
		width: 100%;
	}

	.wp-block-button.cl-boton-grande .wp-block-button__link,
	.cl-hero .wp-block-button__link,
	.cl-cabecera-pagina .wp-block-button__link {
		font-size: 1rem;
		padding: 1em 1.1em;
		white-space: nowrap;
	}

	.cl-hero::before {
		right: -30rem;
		top: 78%;
	}

	.cl-monumento {
		max-width: 22rem;
	}

	.cl-hero__sello {
		left: -0.75rem;
	}

	.cl-faq__respuesta {
		padding-right: 1.25rem;
	}

	.cl-foto-pagina--por-defecto {
		max-width: 13rem;
	}

	.cl-footer__cta .wp-block-buttons,
	.cl-footer__cta .wp-block-button,
	.cl-footer__cta .wp-block-button__link {
		width: 100%;
	}

	.cl-tarjeta h3 {
		padding-right: 3.75rem;
	}

	/* Pernos en vertical: el perno a la izquierda de cada paso */
	.wp-block-list.is-style-pernos {
		--cl-perno-h: 4.6rem;
		padding-top: 0;
		gap: 1.5rem;
	}

	.wp-block-list.is-style-pernos::before {
		display: none;
	}

	.wp-block-list.is-style-pernos > li {
		padding-inline-start: 4rem;
		min-height: var(--cl-perno-h);
	}

	.wp-block-list.is-style-pernos > li::before {
		top: 0;
		width: 2.75rem;
		font-size: 1rem;
	}
}

@media (min-width: 600px) and (max-width: 1079px) {
	.cl-confianza__rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 599px) {
	p.cl-radar__barrio {
		font-size: 0.74rem;
		padding: 0.35em 0.55em;
	}

	.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(3),
	.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(4) {
		left: 80%;
	}

	.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(6),
	.cl-radar > p.cl-radar__barrio:not(.cl-radar__barrio--centro):nth-of-type(7) {
		left: 20%;
	}
}

/* ==========================================================================
   19. Editor
   ========================================================================== */

.editor-styles-wrapper header.wp-block-template-part,
.block-editor-iframe__body header.wp-block-template-part {
	position: relative;
	top: auto;
}

.editor-styles-wrapper .cl-solo-movil {
	display: none !important;
}

/* En el editor todo se ve en su estado final, sin animaciones de entrada */
.editor-styles-wrapper .cl-revela,
.editor-styles-wrapper .cl-servicios__columnas > .wp-block-column,
.editor-styles-wrapper .cl-confianza__item,
.editor-styles-wrapper .cl-faq__item,
.editor-styles-wrapper .cl-radar,
.editor-styles-wrapper .cl-hero__emblema,
.editor-styles-wrapper .wp-block-list.is-style-pernos > li::before,
.editor-styles-wrapper .cl-marca__emblema img,
.editor-styles-wrapper .cl-header__bar::after {
	animation: none !important;
}

.editor-styles-wrapper mark.cl-trazo,
.editor-styles-wrapper .cl-trazo {
	animation: none !important;
	background-size: 100% 0.32em !important;
}

.editor-styles-wrapper .cl-header__bar::after {
	display: none;
}
