/*
Theme Name: Casa Rial 47
Theme URI: https://creativosdigitalesesp.com/
Author: Creativos Digitales ESP
Author URI: https://creativosdigitalesesp.com/
Description: Tema de bloques a medida para Casa Rial 47, vivienda vacacional con piscina climatizada en Sanxenxo. Diseño «Rías»: colores de mar y sol, collage de fotos y reserva en 3 pasos.
Version: 1.0.8
Requires at least: 6.5
Tested up to: 6.9
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: casarial47
*/

/* ==========================================================================
   1. Variables y base
   ========================================================================== */

:root {
	--cr-azul: var(--wp--preset--color--azul, #1f6fb2);
	--cr-azul-oscuro: var(--wp--preset--color--azul-oscuro, #175a92);
	--cr-turquesa: var(--wp--preset--color--turquesa, #3bb4c1);
	--cr-sol: var(--wp--preset--color--sol, #ffc857);
	--cr-bruma: var(--wp--preset--color--bruma, #eaf5fa);
	--cr-marino: var(--wp--preset--color--marino, #12324a);
	--cr-texto: var(--wp--preset--color--texto, #4e6170);
	--cr-linea: var(--wp--preset--color--linea, #d6e7f0);
	--cr-radio: clamp(1rem, 2vw, 1.6rem);
	--cr-radio-s: 0.9rem;
	--cr-sombra: 0 14px 40px rgba(18, 50, 74, 0.09);
	--cr-sombra-s: 0 4px 16px rgba(18, 50, 74, 0.07);
	--cr-seccion: clamp(3rem, 7vw, 5.5rem);
	--cr-cabecera-alto: 76px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--cr-cabecera-alto) + 12px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body .wp-site-blocks > * {
	margin-block-start: 0;
}

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

::selection {
	background: var(--cr-sol);
	color: var(--cr-marino);
}

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

.cr-main {
	margin-block-start: 0;
}

/* Las secciones a ancho completo van pegadas entre sí. */
.wp-block-post-content.cr-secciones > .alignfull,
.wp-block-post-content.cr-secciones > .alignfull + * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.cr-main a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--cr-bruma);
	color: var(--cr-azul-oscuro);
}

/* Utilidades de texto */
.cr-kicker {
	color: var(--cr-turquesa);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-block-end: 0.6rem;
	text-transform: uppercase;
}

.cr-lead {
	font-size: var(--wp--preset--font-size--destacada);
	line-height: 1.6;
}

.cr-centro {
	text-align: center;
}

.cr-centro .wp-block-buttons {
	justify-content: center;
}

/* Marcador amarillo de los títulos */
mark.cr-marcador {
	background: none;
	color: inherit;
	padding: 0 0.04em;
	position: relative;
	white-space: nowrap;
	z-index: 0;
}

mark.cr-marcador::after {
	background: var(--cr-sol);
	border-radius: 0.24em;
	bottom: -0.06em;
	content: "";
	left: -0.14em;
	position: absolute;
	right: -0.14em;
	top: 52%;
	z-index: -1;
}

@media (max-width: 380px) {
	mark.cr-marcador {
		background: linear-gradient(transparent 55%, var(--cr-sol) 55%);
		border-radius: 0.2em;
		box-decoration-break: clone;
		-webkit-box-decoration-break: clone;
		white-space: normal;
	}

	mark.cr-marcador::after {
		display: none;
	}
}

/* Datos pendientes de completar (textos legales) */
mark.cr-pendiente {
	background: #fff1c9;
	border-radius: 0.3em;
	color: var(--cr-marino);
	padding: 0 0.3em;
}

/* ==========================================================================
   2. Cabecera
   ========================================================================== */

.cr-site-header {
	background: #fff;
	border-bottom: 1px solid transparent;
	position: sticky;
	top: 0;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
	z-index: 100;
}

.cr-site-header.is-scrolled {
	border-bottom-color: var(--cr-linea);
	box-shadow: 0 6px 24px rgba(18, 50, 74, 0.07);
}

body.admin-bar .cr-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	body.admin-bar .cr-site-header {
		top: 0;
	}
}

.cr-header {
	padding-block: 0.85rem;
}

.cr-header__barra {
	align-items: center;
	gap: 0.5rem 1.5rem;
	min-height: 52px;
}

/* Logo: círculo con ola + "casa rial 47" */
.cr-logo {
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
	margin: 0;
}

.cr-logo a {
	align-items: center;
	color: var(--cr-azul);
	display: inline-flex;
	gap: 0.55em;
	text-decoration: none;
	text-transform: lowercase;
	white-space: nowrap;
}

.cr-logo a::before {
	background: url("assets/img/logo-ola.svg") center / contain no-repeat;
	content: "";
	flex: none;
	height: 1.55em;
	width: 1.55em;
}

.cr-logo a:hover {
	color: var(--cr-azul-oscuro);
}

.cr-logo--blanco a,
.cr-logo--blanco a:hover {
	color: #fff;
}

.cr-logo--blanco a::before {
	background-image: url("assets/img/logo-ola-blanco.svg");
}

/* Menú */
.cr-nav {
	--navigation-layout-justify: flex-end;
}

.cr-nav .wp-block-navigation__container {
	gap: clamp(1rem, 2.2vw, 2.4rem);
}

.cr-nav .wp-block-navigation-item__content {
	color: var(--cr-texto);
	padding-block: 0.35rem;
	position: relative;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cr-nav .wp-block-navigation-item__content:hover,
.cr-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--cr-azul);
}

.cr-nav .current-menu-item:not(.cr-nav-cta) > .wp-block-navigation-item__content::after {
	background: var(--cr-sol);
	border-radius: 2px;
	bottom: -2px;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
}

.cr-nav .cr-nav-cta > .wp-block-navigation-item__content {
	background: var(--cr-azul);
	border-radius: 999px;
	color: #fff;
	font-weight: 500;
	padding: 0.6rem 2.2rem;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.cr-nav .cr-nav-cta > .wp-block-navigation-item__content:hover,
.cr-nav .cr-nav-cta.current-menu-item > .wp-block-navigation-item__content {
	background: var(--cr-azul-oscuro);
	color: #fff;
	transform: translateY(-1px);
}

@media (min-width: 600px) and (max-width: 860px) {
	.cr-nav .wp-block-navigation__container {
		gap: 1rem;
	}

	.cr-nav {
		font-size: 0.9375rem;
	}

	.cr-nav .cr-nav-cta > .wp-block-navigation-item__content {
		padding: 0.5rem 1.3rem;
	}
}

/* Botón hamburguesa y menú móvil */
.cr-nav .wp-block-navigation__responsive-container-open {
	color: var(--cr-azul);
	padding: 0.25rem;
}

.cr-nav .wp-block-navigation__responsive-container-open svg,
.cr-nav .wp-block-navigation__responsive-container-close svg {
	height: 32px;
	width: 32px;
}

.cr-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	color: var(--cr-marino);
	padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.cr-nav .wp-block-navigation__responsive-container-close {
	color: var(--cr-azul);
}

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

.cr-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0.4rem;
	width: 100%;
}

.cr-nav .is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--cr-linea);
	width: 100%;
}

.cr-nav .is-menu-open .wp-block-navigation-item__content {
	color: var(--cr-marino);
	display: block;
	font-size: 1.45rem;
	font-weight: 600;
	padding: 0.85rem 0;
	width: 100%;
}

.cr-nav .is-menu-open .cr-nav-cta {
	border-bottom: 0;
	margin-top: 1.25rem;
}

.cr-nav .is-menu-open .cr-nav-cta > .wp-block-navigation-item__content {
	box-sizing: border-box;
	color: #fff;
	font-size: 1.15rem;
	padding: 1rem 1.5rem;
	text-align: center;
}

/* ==========================================================================
   3. Secciones genéricas
   ========================================================================== */

.cr-seccion {
	padding-block: var(--cr-seccion);
}

.cr-seccion--bruma {
	background: var(--cr-bruma);
}

.cr-seccion__cabecera {
	margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.cr-seccion__cabecera > * {
	max-width: 46rem;
}

.cr-seccion__cabecera.cr-centro > * {
	margin-inline: auto;
}

.cr-seccion__cabecera h2 {
	margin-block: 0 0.75rem;
}

.cr-seccion__cabecera p:last-child {
	margin-block-end: 0;
}

.cr-imagen-redonda img,
.cr-imagen-redonda {
	border-radius: var(--cr-radio);
}

.cr-imagen-redonda img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* Cabecera de las páginas interiores */
.cr-cabecera-pagina {
	background: var(--cr-bruma);
	overflow: hidden;
	padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2.5rem, 5vw, 4rem);
	position: relative;
}

.cr-cabecera-pagina::after {
	background: url("assets/img/ola.svg") center / contain no-repeat;
	bottom: clamp(1rem, 2.5vw, 1.75rem);
	content: "";
	height: 22px;
	opacity: 0.9;
	position: absolute;
	right: max(1.25rem, calc((100% - 1240px) / 2));
	width: 132px;
}

.cr-cabecera-pagina::before {
	background: var(--cr-sol);
	border-radius: 50%;
	content: "";
	height: clamp(120px, 18vw, 220px);
	opacity: 0.9;
	position: absolute;
	right: max(-60px, calc((100% - 1240px) / 2 - 90px));
	top: clamp(-120px, -9vw, -60px);
	width: clamp(120px, 18vw, 220px);
}

.cr-cabecera-pagina > * {
	position: relative;
	z-index: 1;
}

.cr-cabecera-pagina h1,
.cr-cabecera-pagina .wp-block-post-title {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
	margin-block: 0 0.9rem;
}

.cr-cabecera-pagina .cr-lead {
	margin-block-end: 0;
}

/* Título y entradilla alineados a la izquierda de la columna de 1240 px */
.cr-cabecera-pagina > h1,
.cr-cabecera-pagina > .wp-block-post-title,
.cr-cabecera-pagina > .cr-lead {
	margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
	margin-right: auto !important;
}

.cr-cabecera-pagina > h1,
.cr-cabecera-pagina > .wp-block-post-title {
	max-width: 46rem !important;
}

.cr-cabecera-pagina > .cr-lead {
	max-width: 44rem !important;
}

/* Páginas de texto: el título se alinea con la columna de 780 px */
.cr-cabecera-pagina--simple > .wp-block-post-title {
	margin-left: max(0px, calc((100% - 780px) / 2)) !important;
	max-width: 780px !important;
}

.cr-cabecera-pagina--simple h1,
.cr-cabecera-pagina--simple .wp-block-post-title {
	margin-block-end: 0;
}

.cr-cabecera-pagina .cr-fecha {
	margin-block-start: 0.75rem;
}

.cr-error {
	min-height: 52vh;
}

/* ==========================================================================
   4. Portada: hero con collage
   ========================================================================== */

.cr-hero {
	overflow: hidden;
	padding-block: clamp(1.5rem, 4.5vw, 4rem) clamp(3.75rem, 7vw, 5.75rem);
}

.cr-hero__columnas {
	align-items: center !important;
	gap: clamp(2rem, 6vw, 5.5rem) !important;
}

.cr-hero h1 {
	font-size: var(--wp--preset--font-size--xx-grande);
	letter-spacing: -0.02em;
	line-height: 1.16;
	margin-block: 0 1.4rem;
}

.cr-hero__texto > p:not(.cr-chip) {
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	line-height: 1.55;
	margin-block: 0 2rem;
	max-width: 30rem;
}

.cr-hero .wp-block-buttons {
	gap: 1.25rem;
	margin-block-end: 1.75rem;
}

.cr-hero .wp-block-button__link {
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
	padding: 1rem 2.4rem;
}

.cr-hero .is-style-outline .wp-block-button__link {
	padding: calc(1rem - 2px) calc(2.4rem - 2px);
}

/* Chips */
.cr-chips {
	gap: 0.75rem !important;
}

.cr-chip {
	align-items: center;
	background: #edf4f7;
	border-radius: 999px;
	color: var(--cr-marino);
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 500;
	gap: 0.45rem;
	line-height: 1.2;
	margin: 0 !important;
	padding: 0.6rem 1.15rem;
}

.cr-chip--estrella::before {
	color: var(--cr-sol);
	content: "\2605";
	font-size: 1.05em;
}

/* Collage 2 × 2 con sol y ola */
.cr-collage {
	display: grid !important;
	gap: clamp(0.75rem, 1.7vw, 1.4rem) !important;
	grid-template-columns: 1fr 1fr;
	margin-block-end: 2.5rem;
	position: relative;
}

.cr-collage::before {
	aspect-ratio: 1;
	background: var(--cr-sol);
	border-radius: 50%;
	content: "";
	position: absolute;
	right: -6%;
	top: -10%;
	width: 26%;
	z-index: 0;
}

.cr-collage::after {
	background: url("assets/img/ola.svg") left center / contain no-repeat;
	bottom: -2.6rem;
	content: "";
	height: 1.9rem;
	left: 2.5%;
	position: absolute;
	width: 46%;
}

.cr-collage > .wp-block-image,
.cr-collage > figure {
	margin: 0 !important;
	position: relative;
	z-index: 1;
}

.cr-collage img {
	aspect-ratio: 9 / 7;
	border-radius: clamp(1rem, 2.4vw, 1.9rem);
	display: block;
	object-fit: cover;
	width: 100%;
}

/* ==========================================================================
   5. Reserva en 3 pasos
   ========================================================================== */

.cr-pasos {
	background: var(--cr-bruma);
	padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2.75rem, 5.5vw, 4rem);
}

.cr-pasos__titulo {
	font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem) !important;
	margin-block: 0 1.6rem;
}

.cr-pasos__lista {
	gap: clamp(1rem, 2vw, 1.6rem) !important;
	margin-block: 0;
}

.cr-paso {
	align-items: center;
	background: #fff;
	border-radius: 1.6rem;
	display: flex;
	gap: 1.2rem;
	padding: clamp(1.25rem, 2.2vw, 2rem) clamp(1.25rem, 2.2vw, 1.8rem);
}

.cr-paso > * {
	margin: 0 !important;
}

.cr-paso__num {
	align-items: center;
	background: var(--cr-azul);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: none;
	font-size: 1.3rem;
	font-weight: 600;
	height: 3.15rem;
	justify-content: center;
	line-height: 1;
	width: 3.15rem;
}

.cr-paso h3 {
	color: var(--cr-marino);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	font-weight: 500;
	letter-spacing: 0;
	margin: 0 0 0.15rem;
}

.cr-paso__texto p {
	color: var(--cr-texto);
	font-size: 1rem;
	line-height: 1.45;
	margin: 0;
}

/* ==========================================================================
   6. Bloques de contenido
   ========================================================================== */

/* Cifras de la casa */
.cr-datos {
	border-block: 1px solid var(--cr-linea);
	display: grid !important;
	gap: 0 !important;
	grid-template-columns: repeat(4, 1fr);
	margin-block: 2rem 0 !important;
}

.cr-dato {
	margin: 0 !important;
	padding: 1.25rem 0.5rem 1.25rem 0;
}

.cr-dato + .cr-dato {
	border-left: 1px solid var(--cr-linea);
	padding-left: clamp(0.75rem, 2vw, 1.5rem);
}

.cr-dato__cifra {
	color: var(--cr-azul);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 !important;
}

.cr-dato__texto {
	font-size: 0.9375rem;
	line-height: 1.35;
	margin: 0.2rem 0 0 !important;
}

/* Tarjetas de ventajas con icono */
.cr-ventajas {
	display: grid !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	grid-template-columns: repeat(3, 1fr);
}

.cr-ventaja {
	background: #fff;
	border: 1px solid var(--cr-linea);
	border-radius: 1.4rem;
	margin: 0 !important;
	padding: clamp(1.35rem, 2.4vw, 1.9rem);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cr-ventaja:hover {
	border-color: transparent;
	box-shadow: var(--cr-sombra);
	transform: translateY(-2px);
}

.cr-seccion--bruma .cr-ventaja {
	border-color: transparent;
}

.cr-ventaja h3 {
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0;
	margin: 1rem 0 0.35rem;
}

.cr-ventaja p {
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0;
}

.cr-ventaja::before {
	background: var(--cr-bruma);
	border-radius: 50%;
	content: "";
	display: block;
	height: 3.25rem;
	width: 3.25rem;
}

.cr-seccion--bruma .cr-ventaja::before {
	background: #fff4d6;
}

.cr-ventaja {
	position: relative;
}

.cr-ventaja::after {
	background: var(--cr-azul);
	content: "";
	height: 1.55rem;
	left: calc(clamp(1.35rem, 2.4vw, 1.9rem) + 0.85rem);
	-webkit-mask: var(--cr-ico) center / contain no-repeat;
	mask: var(--cr-ico) center / contain no-repeat;
	position: absolute;
	top: calc(clamp(1.35rem, 2.4vw, 1.9rem) + 0.85rem);
	width: 1.55rem;
}

/* Lista con iconos de check */
.cr-lista-check {
	list-style: none;
	padding-left: 0;
}

.cr-lista-check li {
	margin-block: 0.45rem;
	padding-left: 1.9rem;
	position: relative;
}

.cr-lista-check li::before {
	background: var(--cr-turquesa);
	content: "";
	height: 1.15rem;
	left: 0;
	-webkit-mask: var(--cr-ico-check) center / contain no-repeat;
	mask: var(--cr-ico-check) center / contain no-repeat;
	position: absolute;
	top: 0.25rem;
	width: 1.15rem;
}

/* Bloques de "espacio" en La casa */
.cr-espacio {
	align-items: center !important;
	gap: clamp(1.75rem, 5vw, 4.5rem) !important;
	margin-block: 0 !important;
}

.cr-espacio + .cr-espacio {
	margin-block-start: clamp(2.5rem, 6vw, 4.5rem) !important;
}

.cr-espacio h2,
.cr-espacio h3 {
	margin-block: 0 0.8rem;
}

@media (min-width: 782px) {
	.cr-espacio--invertido > .wp-block-column:first-child {
		order: 2;
	}
}

.cr-mini-galeria {
	display: grid !important;
	gap: 0.75rem !important;
	grid-template-columns: 1fr 1fr;
}

.cr-mini-galeria > figure {
	margin: 0 !important;
}

.cr-mini-galeria img {
	aspect-ratio: 4 / 3;
	border-radius: var(--cr-radio-s);
	object-fit: cover;
	width: 100%;
}

.cr-mini-galeria > figure:first-child {
	grid-column: 1 / -1;
}

.cr-mini-galeria > figure:first-child img {
	aspect-ratio: 16 / 10;
	border-radius: var(--cr-radio);
}

/* Dormitorios */
.cr-dormitorios {
	display: grid !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	grid-template-columns: repeat(3, 1fr);
}

.cr-dormitorio {
	background: #fff;
	border-radius: var(--cr-radio);
	box-shadow: var(--cr-sombra-s);
	margin: 0 !important;
	overflow: hidden;
}

.cr-dormitorio .wp-block-image {
	margin: 0;
}

.cr-dormitorio img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.cr-dormitorio__texto {
	padding: 1.25rem 1.4rem 1.5rem;
}

.cr-dormitorio h3 {
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.cr-dormitorio p {
	font-size: 0.97rem;
	margin: 0;
}

/* Equipamiento por categorías */
.cr-equipamiento {
	display: grid !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	grid-template-columns: repeat(3, 1fr);
}

.cr-equipamiento > .wp-block-group {
	background: var(--cr-bruma);
	border-radius: 1.3rem;
	margin: 0 !important;
	padding: 1.4rem 1.5rem;
}

.cr-equipamiento h3 {
	font-size: 1.08rem;
	margin: 0 0 0.6rem;
}

.cr-equipamiento ul {
	font-size: 0.96rem;
	margin: 0;
}

.cr-equipamiento li {
	margin-block: 0.3rem;
}

/* Normas */
.cr-normas {
	display: grid !important;
	gap: 0.9rem !important;
	grid-template-columns: repeat(2, 1fr);
}

.cr-norma {
	align-items: flex-start;
	background: var(--cr-bruma);
	border-radius: 1.1rem;
	display: flex;
	gap: 0.9rem;
	margin: 0 !important;
	padding: 1rem 1.2rem;
}

.cr-norma p {
	margin: 0;
}

.cr-seccion--bruma .cr-norma {
	background: #fff;
}

.cr-norma strong {
	color: var(--cr-marino);
	display: block;
	font-weight: 600;
}

/* Galería de fotos */
.cr-galeria {
	gap: clamp(0.6rem, 1.2vw, 1rem) !important;
}

.cr-galeria.wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cr-galeria.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	margin: 0 !important;
	width: auto !important;
}

@media (max-width: 600px) {
	.cr-galeria.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.cr-galeria.wp-block-gallery.has-nested-images figure.wp-block-image {
	border-radius: var(--cr-radio-s);
	overflow: hidden;
}

.cr-galeria.wp-block-gallery.has-nested-images figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cr-galeria.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.03);
}

.cr-galeria-titulo {
	margin-block: clamp(2.5rem, 5vw, 3.5rem) 1.1rem !important;
}

.cr-galeria-titulo:first-child {
	margin-block-start: 0 !important;
}

/* Mosaico de fotos de portada */
.cr-mosaico {
	display: grid !important;
	gap: clamp(0.6rem, 1.4vw, 1.1rem) !important;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, clamp(150px, 19vw, 250px));
}

.cr-mosaico > figure {
	margin: 0 !important;
	min-height: 0;
}

.cr-mosaico > figure:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.cr-mosaico img {
	border-radius: var(--cr-radio-s);
	display: block;
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.cr-mosaico > figure:first-child img {
	border-radius: var(--cr-radio);
}

/* Valoraciones */
.cr-valoraciones {
	display: grid !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	grid-template-columns: repeat(3, 1fr);
}

.cr-valoracion {
	background: #fff;
	border-radius: 1.5rem;
	margin: 0 !important;
	padding: clamp(1.5rem, 3vw, 2.2rem);
	position: relative;
}

.cr-valoracion__nota {
	color: var(--cr-azul);
	font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 0.5rem !important;
}

.cr-valoracion__nota span {
	color: var(--cr-texto);
	font-size: 0.38em;
	font-weight: 500;
	letter-spacing: 0;
}

.cr-valoracion__fuente {
	color: var(--cr-marino);
	font-weight: 600;
	margin: 0 0 0.25rem !important;
}

.cr-valoracion__detalle {
	font-size: 0.95rem;
	margin: 0 !important;
}

.cr-valoracion::after {
	color: var(--cr-sol);
	content: "\2605 \2605 \2605 \2605 \2605";
	font-size: 0.95rem;
	letter-spacing: 0.12em;
	position: absolute;
	right: 1.5rem;
	top: 1.6rem;
}

.cr-cita {
	color: var(--cr-marino);
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
	line-height: 1.6;
	margin: clamp(1.75rem, 4vw, 2.5rem) auto 0 !important;
	max-width: 48rem;
	text-align: center;
}

/* Ubicación */
.cr-distancias {
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 0;
}

.cr-distancias li {
	border-bottom: 1px dashed var(--cr-linea);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.7rem 0;
}

.cr-distancias li strong {
	color: var(--cr-marino);
	font-weight: 600;
	white-space: nowrap;
}

/* Tarjetas de contacto y de información */
.cr-tarjetas {
	display: grid !important;
	gap: 1rem !important;
	grid-template-columns: 1fr;
}

.cr-tarjeta {
	align-items: center;
	background: #fff;
	border: 1px solid var(--cr-linea);
	border-radius: 1.2rem;
	display: flex;
	gap: 1rem;
	margin: 0 !important;
	padding: 1.1rem 1.3rem;
}

.cr-tarjeta::before {
	background: var(--cr-bruma);
	border-radius: 50%;
	content: "";
	flex: none;
	height: 3rem;
	width: 3rem;
}

.cr-tarjeta {
	position: relative;
}

.cr-tarjeta::after {
	background: var(--cr-azul);
	content: "";
	height: 1.35rem;
	left: calc(1.3rem + 0.825rem);
	-webkit-mask: var(--cr-ico) center / contain no-repeat;
	mask: var(--cr-ico) center / contain no-repeat;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 1.35rem;
}

.cr-tarjeta p {
	line-height: 1.4;
	margin: 0;
}

.cr-tarjeta strong {
	color: var(--cr-marino);
	display: block;
	font-weight: 600;
}

.cr-tarjeta a {
	font-weight: 500;
	overflow-wrap: anywhere;
}

/* Preguntas frecuentes */
.cr-faq {
	margin-inline: auto;
	max-width: 52rem;
}

.cr-faq .wp-block-details {
	background: #fff;
	border: 1px solid var(--cr-linea);
	border-radius: 1.1rem;
	margin-block: 0 0.85rem;
	padding: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-faq .wp-block-details[open] {
	border-color: transparent;
	box-shadow: var(--cr-sombra);
}

.cr-faq .wp-block-details summary {
	color: var(--cr-marino);
	cursor: pointer;
	font-size: 1.05rem;
	font-weight: 600;
	list-style: none;
	padding: 1.15rem 3.5rem 1.15rem 1.4rem;
	position: relative;
}

.cr-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.cr-faq .wp-block-details summary::after {
	align-items: center;
	background: var(--cr-bruma);
	border-radius: 50%;
	color: var(--cr-azul);
	content: "+";
	display: flex;
	font-size: 1.35rem;
	font-weight: 500;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
	width: 2rem;
}

.cr-faq .wp-block-details[open] summary::after {
	content: "\2212";
}

.cr-faq .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1.4rem 1.25rem;
}

/* Franja de llamada a la acción */
.cr-cta {
	background: var(--cr-azul) url("assets/img/olas-fondo.svg") center / 240px 60px repeat;
	color: rgba(255, 255, 255, 0.92);
	overflow: hidden;
	padding-block: clamp(3.25rem, 7vw, 5rem);
	position: relative;
}

.cr-cta::before {
	background: var(--cr-sol);
	border-radius: 50%;
	content: "";
	height: 180px;
	left: -60px;
	opacity: 0.95;
	position: absolute;
	top: -70px;
	width: 180px;
}

.cr-cta > * {
	position: relative;
	z-index: 1;
}

.cr-cta h2 {
	color: #fff;
	margin-block: 0 0.8rem;
}

.cr-cta .cr-lead {
	margin-block: 0 2rem;
}

.cr-btn-blanco > .wp-block-button__link {
	background: #fff;
	color: var(--cr-azul);
}

.cr-btn-blanco > .wp-block-button__link:hover {
	background: var(--cr-sol);
	color: var(--cr-marino);
}

.cr-btn-borde-blanco.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}

.cr-btn-borde-blanco.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Aviso destacado */
.cr-aviso {
	background: #fff7e3;
	border-left: 4px solid var(--cr-sol);
	border-radius: 0.9rem;
	color: var(--cr-marino);
	padding: 1rem 1.25rem;
}

/* Contenido de texto (páginas legales y entradas) */
.cr-contenido {
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--cr-seccion);
}

.cr-contenido h2 {
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
	margin-block: 2.5rem 0.8rem;
}

.cr-contenido h3 {
	font-size: 1.2rem;
	margin-block: 1.8rem 0.6rem;
}

.cr-contenido li {
	margin-block: 0.35rem;
}

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

.cr-site-footer {
	margin-block-start: 0;
}

.cr-pie {
	background: var(--cr-marino);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.97rem;
	padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}

.cr-pie a {
	color: #fff;
	text-decoration: none;
}

.cr-pie a:hover {
	color: var(--cr-sol);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cr-pie__columnas {
	gap: clamp(2rem, 4vw, 3.5rem) !important;
	margin-block-end: 2.5rem;
}

.cr-pie__columnas > .cr-pie__col:nth-child(3) {
	flex-grow: 1.4 !important;
}

.cr-pie__contacto a {
	overflow-wrap: anywhere;
}

.cr-pie__marca .cr-logo {
	margin-block-end: 1.25rem;
}

.cr-pie__marca p {
	max-width: 24rem;
}

.cr-pie__valoracion {
	color: var(--cr-sol);
	font-weight: 500;
}

.cr-pie__titulo {
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-block: 0.35rem 1rem;
	text-transform: uppercase;
}

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

.cr-pie__lista li {
	margin-block: 0 0.6rem;
}

.cr-pie__contacto li {
	padding-left: 1.75rem;
	position: relative;
}

.cr-pie__contacto li::before {
	background: var(--cr-turquesa);
	content: "";
	height: 1.05rem;
	left: 0;
	-webkit-mask: var(--cr-ico) center / contain no-repeat;
	mask: var(--cr-ico) center / contain no-repeat;
	position: absolute;
	top: 0.28rem;
	width: 1.05rem;
}

.cr-pie__base {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.875rem;
	gap: 0.5rem 1.5rem;
	padding-block-start: 1.5rem;
}

.cr-pie__base p {
	margin: 0;
}

.cr-pie__nrua {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.78rem;
	margin-block: 0.75rem 0 !important;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.cr-ventajas,
	.cr-equipamiento {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 960px) {
	.cr-valoraciones,
	.cr-dormitorios {
		grid-template-columns: 1fr;
	}

	.cr-dormitorio {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.cr-dormitorio img {
		height: 100%;
	}

	.cr-dormitorio__texto {
		align-self: center;
	}
}

@media (max-width: 781px) {
	:root {
		--cr-cabecera-alto: 68px;
	}

	.cr-hero {
		padding-block-start: 0.75rem;
	}

	.cr-hero__columnas > .cr-hero__media {
		order: -1;
	}

	.cr-collage {
		margin-block-end: 0.5rem;
	}

	.cr-collage::after {
		display: none;
	}

	.cr-collage::before {
		right: -4%;
		top: -6%;
		width: 22%;
	}

	.cr-hero h1 {
		margin-block-end: 1rem;
	}

	.cr-hero__texto > p:not(.cr-chip) {
		margin-block-end: 1.5rem;
	}

	.cr-hero .wp-block-buttons {
		flex-direction: column;
		gap: 0.85rem;
	}

	.cr-hero .wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.cr-hero .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}

	.cr-hero .wp-block-buttons > .wp-block-button.is-style-outline {
		display: none;
	}

	.cr-pasos__lista {
		gap: 0.85rem !important;
	}

	.cr-datos {
		grid-template-columns: repeat(2, 1fr);
	}

	.cr-dato:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.cr-dato:nth-child(n + 3) {
		border-top: 1px solid var(--cr-linea);
	}

	.cr-normas {
		grid-template-columns: 1fr;
	}

	.cr-mosaico {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: none;
	}

	.cr-mosaico > figure:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.cr-mosaico > figure img {
		aspect-ratio: 4 / 3;
		height: auto !important;
	}

	.cr-mosaico > figure:first-child img {
		aspect-ratio: 16 / 10;
	}

	.cr-mosaico > figure:nth-child(n + 6) {
		display: none;
	}

	.cr-cabecera-pagina::after {
		display: none;
	}
}

@media (max-width: 640px) {
	.cr-ventajas,
	.cr-equipamiento {
		grid-template-columns: 1fr;
	}

	.cr-ventaja {
		align-items: flex-start;
		display: grid;
		gap: 0 1rem;
		grid-template-columns: 3.25rem 1fr;
	}

	.cr-ventaja::before {
		grid-row: span 2;
	}

	.cr-ventaja h3 {
		margin-top: 0.2rem;
	}

	.cr-dormitorio {
		display: block;
	}

	.cr-hero .wp-block-button__link {
		padding: 1rem 1.5rem;
	}

	.cr-chip {
		font-size: 0.875rem;
		padding: 0.5rem 0.95rem;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* ==========================================================================
   9. Iconos (trazos estilo Lucide, licencia ISC)
   ========================================================================== */

:root {
	--cr-ico-check: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.cr-i-check,
.cr-ico-check {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.cr-i-piscina,
.cr-ico-piscina {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5a2 2 0 0 0-2 2v11'/%3E%3Cpath d='M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3Cpath d='M7 13h10'/%3E%3Cpath d='M7 9h10'/%3E%3Cpath d='M9 5a2 2 0 0 0-2 2v11'/%3E%3C/svg%3E");
}

.cr-i-jardin,
.cr-ico-jardin {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E");
}

.cr-i-mascota,
.cr-ico-mascota {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='20' cy='16' r='2'/%3E%3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E");
}

.cr-i-familia,
.cr-ico-familia {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.cr-i-jacuzzi,
.cr-ico-jacuzzi {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4 8 6'/%3E%3Cpath d='M17 19v2'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M7 19v2'/%3E%3Cpath d='M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E");
}

.cr-i-chimenea,
.cr-ico-chimenea {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E");
}

.cr-i-parking,
.cr-ico-parking {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M9 17V7h4a3 3 0 0 1 0 6H9'/%3E%3C/svg%3E");
}

.cr-i-wifi,
.cr-ico-wifi {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h.01'/%3E%3Cpath d='M2 8.82a15 15 0 0 1 20 0'/%3E%3Cpath d='M5 12.859a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 16.429a5 5 0 0 1 7 0'/%3E%3C/svg%3E");
}

.cr-i-playa,
.cr-ico-playa {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.cr-i-cocina,
.cr-ico-cocina {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8'/%3E%3Cpath d='m4 8 16-4'/%3E%3Cpath d='m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8'/%3E%3C/svg%3E");
}

.cr-i-cama,
.cr-ico-cama {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8'/%3E%3Cpath d='M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M12 4v6'/%3E%3Cpath d='M2 18h20'/%3E%3C/svg%3E");
}

.cr-i-casa,
.cr-ico-casa {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.cr-i-trabajo,
.cr-ico-trabajo {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16'/%3E%3C/svg%3E");
}

.cr-i-llave,
.cr-ico-llave {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E");
}

.cr-i-bici,
.cr-ico-bici {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='15' cy='5' r='1'/%3E%3Cpath d='M12 17.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E");
}

.cr-i-tv,
.cr-ico-tv {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='15' x='2' y='7' rx='2' ry='2'/%3E%3Cpath d='m17 2-5 5-5-5'/%3E%3C/svg%3E");
}

.cr-i-aire,
.cr-ico-aire {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 8h12'/%3E%3Cpath d='M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12'/%3E%3Cpath d='M6.6 15.6A2 2 0 1 0 10 17v-5'/%3E%3C/svg%3E");
}

.cr-i-tel,
.cr-ico-tel {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.cr-i-mail,
.cr-ico-mail {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.cr-i-chat,
.cr-ico-chat {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M8.5 12h.01'/%3E%3Cpath d='M12 12h.01'/%3E%3Cpath d='M15.5 12h.01'/%3E%3C/svg%3E");
}

.cr-i-pin,
.cr-ico-pin {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.cr-i-coche,
.cr-ico-coche {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}

.cr-i-avion,
.cr-ico-avion {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E");
}

.cr-i-tren,
.cr-ico-tren {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3.1V7a4 4 0 0 0 8 0V3.1'/%3E%3Cpath d='m9 15-1-1'/%3E%3Cpath d='m15 15 1-1'/%3E%3Cpath d='M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z'/%3E%3Cpath d='m8 19-2 3'/%3E%3Cpath d='m16 19 2 3'/%3E%3C/svg%3E");
}

.cr-i-barco,
.cr-ico-barco {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 18H2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z'/%3E%3Cpath d='M21 14 10 2 3 14h18Z'/%3E%3Cpath d='M10 2v16'/%3E%3C/svg%3E");
}

.cr-i-reloj,
.cr-ico-reloj {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.cr-i-calendario,
.cr-ico-calendario {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.cr-i-tarjeta,
.cr-ico-tarjeta {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.cr-i-escudo,
.cr-ico-escudo {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.cr-i-fiesta,
.cr-ico-fiesta {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E");
}

.cr-i-luna,
.cr-ico-luna {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}

.cr-i-humo,
.cr-ico-humo {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12H2v4h14'/%3E%3Cpath d='M22 12v4'/%3E%3Cpath d='M18 12h-.5a2.5 2.5 0 0 1 0-5H18'/%3E%3Cpath d='M21 8a2.5 2.5 0 0 0-2.5-2.5'/%3E%3C/svg%3E");
}

.cr-i-estrella,
.cr-ico-estrella {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
}

.cr-i-restaurante,
.cr-ico-restaurante {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E");
}

.cr-i-euro,
.cr-ico-euro {
	--cr-ico: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12'/%3E%3Cpath d='M4 14h9'/%3E%3Cpath d='M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2'/%3E%3C/svg%3E");
}

/* Normas con icono */
.cr-norma::before {
	background: var(--cr-azul);
	content: "";
	flex: none;
	height: 1.4rem;
	margin-top: 0.1rem;
	-webkit-mask: var(--cr-ico, var(--cr-ico-check)) center / contain no-repeat;
	mask: var(--cr-ico, var(--cr-ico-check)) center / contain no-repeat;
	width: 1.4rem;
}

/* ==========================================================================
   10. Ajustes finos
   ========================================================================== */

.wp-block-buttons.cr-centro {
	justify-content: center;
}

.cr-espacio.cr-arriba {
	align-items: flex-start !important;
}

.cr-seccion--reserva {
	padding-block: clamp(2rem, 4vw, 3.25rem);
}

.cr-seccion__cabecera + .wp-block-buttons,
.cr-mosaico + .wp-block-buttons {
	margin-block-start: clamp(1.75rem, 4vw, 2.5rem);
}

.cr-tarjetas + .wp-block-buttons {
	margin-block-start: 1.5rem;
}

/* ==========================================================================
   11. Pago de la reserva (WooCommerce)
   ========================================================================== */

.woocommerce-order-pay .cr-contenido {
	padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--cr-seccion);
}

.woocommerce-order-pay .cr-contenido > .woocommerce {
	margin-inline: auto;
	max-width: 760px;
}

.woocommerce #order_review {
	background: #fff;
	border: 1px solid var(--cr-linea);
	border-radius: 1.5rem;
	box-shadow: var(--cr-sombra);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.woocommerce #order_review table.shop_table {
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0 0 1.5rem;
	width: 100%;
}

.woocommerce #order_review table.shop_table th,
.woocommerce #order_review table.shop_table td {
	border: 0;
	border-bottom: 1px solid var(--cr-linea);
	padding: 0.85rem 0.25rem;
	text-align: left;
	vertical-align: top;
}

.woocommerce #order_review table.shop_table thead th {
	color: var(--cr-texto);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* La columna de cantidad se oculta sin quitarla, para que el pie de la tabla siga alineado. */
.woocommerce #order_review table.shop_table .product-quantity {
	font-size: 0;
	line-height: 0;
	padding: 0;
	visibility: hidden;
	width: 0;
}

.woocommerce #order_review table.shop_table td.product-name {
	color: var(--cr-marino);
	font-weight: 600;
}

.woocommerce #order_review table.shop_table td:last-child,
.woocommerce #order_review table.shop_table th:last-child {
	text-align: right;
	white-space: nowrap;
}

.woocommerce #order_review .wc-item-meta {
	color: var(--cr-texto);
	font-size: 0.9rem;
	font-weight: 400;
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

.woocommerce #order_review .wc-item-meta li {
	margin: 0.15rem 0;
}

.woocommerce #order_review .wc-item-meta p {
	display: inline;
	margin: 0;
}

.woocommerce #order_review .wc-item-meta-label {
	color: var(--cr-marino);
	font-weight: 600;
}

.woocommerce #order_review table.shop_table tfoot tr:last-child th,
.woocommerce #order_review table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
	color: var(--cr-marino);
	font-size: 1.15rem;
	font-weight: 700;
}

.woocommerce #payment,
.woocommerce-page #payment {
	background: var(--cr-bruma);
	border-radius: 1.1rem;
}

.woocommerce #payment ul.payment_methods {
	border-bottom: 1px solid rgba(18, 50, 74, 0.08);
	padding: 1rem 1.25rem;
}

.woocommerce #payment ul.payment_methods li {
	color: var(--cr-marino);
	font-weight: 500;
}

.woocommerce #payment div.payment_box {
	background: #fff;
	border-radius: 0.8rem;
	color: var(--cr-texto);
}

.woocommerce #payment div.payment_box::before {
	border-bottom-color: #fff;
}

.woocommerce #payment div.form-row {
	padding: 1rem 1.25rem 1.25rem;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
	background: var(--cr-azul);
	border: 0;
	border-radius: 999px;
	color: #fff;
	float: none;
	font-family: inherit;
	font-size: 1.08rem;
	font-weight: 500;
	padding: 1rem 2rem;
	width: 100%;
}

.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover {
	background: var(--cr-azul-oscuro);
}

.woocommerce-order-pay .woocommerce-info,
.woocommerce-order-pay .woocommerce-error,
.woocommerce-order-pay .woocommerce-message {
	border-radius: 0.9rem;
}

/* En el móvil, el resumen ocupa todo el ancho: estancia arriba y total debajo. */
@media (max-width: 600px) {
	.woocommerce #order_review table.shop_table,
	.woocommerce #order_review table.shop_table tbody,
	.woocommerce #order_review table.shop_table tfoot {
		display: block;
	}

	.woocommerce #order_review table.shop_table thead,
	.woocommerce #order_review table.shop_table .product-quantity,
	.woocommerce #order_review table.shop_table td.product-subtotal {
		display: none;
	}

	.woocommerce #order_review table.shop_table tr {
		border-bottom: 1px solid var(--cr-linea);
		display: flex;
		justify-content: space-between;
	}

	.woocommerce #order_review table.shop_table tfoot tr:last-child {
		border-bottom: 0;
	}

	.woocommerce #order_review table.shop_table th,
	.woocommerce #order_review table.shop_table td {
		border-bottom: 0;
	}

	.woocommerce #order_review table.shop_table td.product-name {
		flex: 1;
	}
}
