/*
 * Cortijo La Dueña - estilos del tema.
 * Valores medidos del diseño original (Elementor) para mantener el mismo aspecto.
 *
 * Paleta:  verde #09471A · crema #FDF3ED · texto #141311 · rojo #B80C09 · suave #FFFAF8
 * Fuentes: Cardo (títulos), Manrope (texto y botones), Playfair Display (portada), Open Sans (menú y pie)
 */

:root {
	--cld-green: #09471a;
	--cld-cream: #fdf3ed;
	--cld-soft: #fffaf8;
	--cld-text: #141311;
	--cld-red: #b80c09;
	--cld-nav: #33373d;
	--cld-white: #ffffff;
	--cld-max: 1140px;
	--cld-section-y: 100px;
	--cld-gap: 20px;
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.cld-body {
	margin: 0;
	background: var(--cld-cream);
	color: var(--cld-text);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	line-height: 25px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--cld-text);
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-weight: 600;
	line-height: 1.2;
}

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

.cld-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 12px;
	background: var(--cld-white);
	z-index: 1000;
}

.cld-container {
	max-width: var(--cld-max);
	margin: 0 auto;
	padding: 0;
}

/* ---------- Cabecera ---------- */

.cld-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--cld-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cld-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	max-width: 1600px;
	height: 64px;
	margin: 0 auto;
	padding: 0 20px;
}

.cld-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
}

.cld-header__logo-img {
	max-height: 54px;
	width: auto;
}

.cld-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.cld-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cld-nav__list a {
	display: block;
	padding: 6px 0;
	color: var(--cld-nav);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.cld-nav__list a:hover,
.cld-nav__list .current-menu-item > a,
.cld-nav__list .current_page_item > a {
	color: var(--cld-red);
}

.cld-header__cta {
	flex-shrink: 0;
}

/* El contacto del menú solo se muestra en el desplegable móvil.
   En escritorio sigue el botón de la cabecera. */
.cld-nav__cta {
	display: none;
}

.cld-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.cld-menu-toggle__bars,
.cld-menu-toggle__bars::before,
.cld-menu-toggle__bars::after {
	display: block;
	position: absolute;
	left: 10px;
	width: 20px;
	height: 2px;
	background: var(--cld-nav);
	transition: transform 0.2s ease, background 0.2s ease;
}

.cld-menu-toggle__bars {
	top: 19px;
}

.cld-menu-toggle__bars::before,
.cld-menu-toggle__bars::after {
	content: "";
	left: 0;
}

.cld-menu-toggle__bars::before {
	top: -6px;
}

.cld-menu-toggle__bars::after {
	top: 6px;
}

.cld-menu-toggle[aria-expanded="true"] .cld-menu-toggle__bars {
	background: transparent;
}

.cld-menu-toggle[aria-expanded="true"] .cld-menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.cld-menu-toggle[aria-expanded="true"] .cld-menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Botones ---------- */

.cld-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid var(--cld-green);
	border-radius: 50px;
	background: transparent;
	color: var(--cld-green);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	line-height: 16px;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.cld-btn:hover,
.cld-btn:focus-visible {
	background: var(--cld-green);
	color: var(--cld-cream);
}

.cld-btn--solid-light {
	background: var(--cld-green);
	color: var(--cld-cream);
}

.cld-btn--solid-light:hover {
	background: var(--cld-cream);
	color: var(--cld-green);
	border-color: var(--cld-cream);
}

/* ---------- Bloques comunes ---------- */

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

.cld-section--soft {
	background: var(--cld-soft);
}

.cld-section--tight {
	padding-top: 20px;
	padding-bottom: 50px;
}

.cld-kicker {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 30px;
	line-height: 45px;
	font-weight: 600;
	text-align: right;
}

.cld-kicker--left {
	justify-content: flex-start;
	text-align: left;
}

.cld-kicker img {
	width: 24px;
	height: 21px;
	flex-shrink: 0;
}

.cld-section--tight .cld-kicker {
	margin-bottom: 40px;
}

.cld-text p {
	margin: 0 0 20px;
	line-height: 30px;
}

.cld-text p:last-child {
	margin-bottom: 0;
}

/* Enlaces dentro de párrafos: verdes y subrayados. Los botones no se tocan. */
.cld-text a,
.cld-points a,
main p a:not(.cld-btn) {
	color: var(--cld-green);
	text-decoration: underline;
}

.cld-text--light,
.cld-text--light p {
	color: var(--cld-cream);
}

.cld-button-wrap {
	margin: 20px 0 0;
}

/* En Servicios, el botón de cada bloque de texto ocupa el ancho de su columna. Las tarjetas no. */
.page-template-template-servicios .cld-split__text .cld-btn {
	display: block;
	width: 100%;
}

.cld-btn--block {
	display: block;
	width: 100%;
}

/* ---------- Portada ---------- */

.cld-hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 600px;
	padding: 175px 20px 60px;
	overflow: hidden;
	color: var(--cld-white);
	text-align: center;
	background: #1d1d1d;
}

.cld-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cld-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(80%) contrast(85%) saturate(100%) blur(0px) hue-rotate(0deg);
	z-index: 0;
}

.cld-hero__content {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.cld-hero__title {
	margin: 0 0 16px;
	color: var(--cld-white);
	font-family: "Playfair Display", serif;
	font-size: 50px;
	line-height: 1.2;
	font-weight: 700;
}

.cld-hero__subtitle {
	color: var(--cld-white);
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 24px;
}

.cld-hero__subtitle p {
	margin: 0;
}

/* ---------- Dos columnas (texto + imagen) ---------- */

.cld-split__inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cld-split__inner > * {
	flex: 1 1 50%;
	min-width: 0;
	padding: 0;
}

/* La columna de texto mantiene 10px de padding horizontal. */
.cld-split__inner > .cld-split__text {
	padding-left: 10px;
	padding-right: 10px;
}

.cld-split__media img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.cld-radius-leaf img {
	border-radius: 100px 0 100px 0;
}

.cld-radius-leaf--flip img {
	border-radius: 0 100px 0 100px;
}

.cld-split__media {
	position: relative;
}

/* ---------- Carrusel ---------- */

.cld-slider {
	height: 500px;
}

.cld-slider .swiper-wrapper {
	height: 100%;
}

.cld-slider .swiper-slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.cld-slide__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
}

.swiper-slide-active .cld-slide__bg {
	animation: cld-ken-burns 18s linear forwards;
}

@keyframes cld-ken-burns {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.3);
	}
}

.cld-slider .swiper-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.5);
}

.cld-slide {
	position: relative;
}

.cld-slide__content {
	position: relative;
	z-index: 2;
	padding: 50px;
	color: var(--cld-white);
	opacity: 0;
}

.swiper-slide-prev .cld-slide__content {
	opacity: 1;
}

.swiper-slide-active .cld-slide__content {
	animation: cld-fade-in-up 1.25s ease both;
}

@keyframes cld-fade-in-up {
	0% {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}

	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.cld-slide__title {
	margin: 0 0 12px;
	color: var(--cld-white);
	font-size: 35px;
	line-height: 1.1;
	font-weight: 700;
}

.cld-slide__text {
	margin: 0;
	color: var(--cld-white);
	font-size: 17px;
	line-height: 1.4;
}

.cld-slider .swiper-pagination-bullet {
	background: var(--cld-white);
	opacity: 0.6;
}

.cld-slider .swiper-pagination-bullet-active {
	background: var(--cld-white);
	opacity: 1;
}

.cld-slider .swiper-button-prev,
.cld-slider .swiper-button-next {
	color: var(--cld-white);
}

.cld-slider .swiper-button-prev,
.cld-slider .swiper-button-next {
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
}

.cld-slider .swiper-button-prev::after,
.cld-slider .swiper-button-next::after {
	font-size: 22px;
}

/* ---------- Cursos (tarjetas) ---------- */

.cld-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.cld-card {
	display: flex;
	flex-direction: column;
	margin: 10px;
	overflow: hidden;
	border-radius: 4px;
	background: #f9fafa;
}

.cld-card__media {
	position: relative;
	display: block;
	height: 400px;
	overflow: hidden;
}

.cld-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 1500ms;
	pointer-events: none;
}

.cld-card:hover .cld-card__media::after,
.cld-card:focus-visible .cld-card__media::after {
	background-color: rgba(0, 0, 0, 0.3);
}

.cld-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1500ms;
}

.cld-card:hover .cld-card__media img,
.cld-card:focus-visible .cld-card__media img {
	transform: scale(1.2);
}

.cld-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 35px;
}

.cld-card__title {
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 23px;
	line-height: 1.2;
	font-weight: 600;
}

.cld-card__text {
	color: var(--cld-text);
	font-size: 16px;
	line-height: 24px;
}

/* ---------- Nosotros ---------- */

.cld-hero--page {
	min-height: 450px;
	padding-top: 122px;
}

.cld-hero__title--cardo {
	font-family: "Cardo", serif;
	font-weight: 600;
}

.cld-nos-block {
	padding: var(--cld-section-y) 0;
}

.cld-nos-block--soft {
	background: var(--cld-soft);
}

.cld-nos-head {
	margin-bottom: 50px;
	text-align: center;
}

.cld-nos-title {
	margin: 0 0 15px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 40px;
	line-height: 1.2;
	font-weight: 600;
	text-align: center;
}

.cld-divider {
	display: flex;
	align-items: center;
	width: 50%;
	margin: 0 auto;
}

.cld-divider::before,
.cld-divider::after {
	content: "";
	flex: 1 1 auto;
	border-top: 1px dashed #e1dad6;
}

.cld-divider img {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	margin: 0 10px;
}

.cld-nos-row {
	align-items: center;
}

.cld-text--right,
.cld-text--right p {
	text-align: right;
}

.cld-nos-row .cld-text + .cld-kicker {
	margin-top: 40px;
}

.cld-split__media--tall img {
	height: 600px;
}

.cld-nos-values {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.cld-nos-values__col {
	padding: 0 20px;
}

.cld-nos-values__col .cld-kicker {
	margin-bottom: 10px;
}

.cld-nos-values__col .cld-text {
	margin-bottom: 40px;
}

.cld-nos-philosophy {
	padding: 0 20px;
}

.cld-quote {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 50px 20px;
	overflow: hidden;
	color: var(--cld-white);
	text-align: center;
	background: #1d1d1d;
}

.cld-quote::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cld-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(80%) contrast(85%) saturate(100%) blur(0px) hue-rotate(0deg);
	z-index: 0;
}

.cld-quote__inner {
	position: relative;
	z-index: 1;
	max-width: 1000px;
}

.cld-quote__text {
	margin: 0;
	color: var(--cld-white);
	font-family: "Playfair Display", serif;
	font-size: 50px;
	line-height: 64px;
	font-weight: 700;
}

.cld-quote__author {
	margin: 20px 0 0;
	color: var(--cld-white);
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 24px;
}

@media (max-width: 767px) {
	.cld-nos-title {
		font-size: 30px;
	}

	.cld-nos-values {
		grid-template-columns: 1fr;
	}

	.cld-nos-values__col {
		padding: 0;
	}

	.cld-nos-philosophy {
		padding: 0;
	}

	.cld-split__media--tall img {
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.cld-quote__text {
		font-size: 34px;
		line-height: 1.3;
	}
}

/* ---------- Servicios ---------- */

/* En esta página los párrafos de texto usan el interlineado por defecto (25px). */
.page-template-template-servicios .cld-text p,
.page-template-template-apadrina .cld-text p,
.page-template-template-compra .cld-text p,
.page-template-template-club .cld-text p,
.page-template-template-contacto .cld-text p,
.page-template-template-contacto-seccion .cld-text p {
	line-height: 25px;
}

.cld-prices + .cld-button-wrap,
.cld-prices-box + .cld-button-wrap {
	margin-top: 30px;
}

/* Bloques con el contenido a la izquierda: se alinean arriba (start), no al centro.
   Colonias queda fuera porque su imagen debe ocupar al menos el alto del texto. */
@media (min-width: 768px) {
	.page-template-template-servicios .cld-nos-block:not(.cld-srv-camp) .cld-nos-row:has(> .cld-split__text:first-child) {
		align-items: flex-start;
	}
}

/* Fotografía, colonias y la fila de eventos: la imagen ocupa al menos el alto del texto.
   El detalle de cada evento vive dentro de la sección, así que queda fuera. */
.cld-srv-photo > .cld-container > .cld-nos-row,
.cld-srv-camp > .cld-container > .cld-nos-row,
.cld-srv-events > .cld-container > .cld-nos-row {
	align-items: stretch;
}

.cld-srv-photo > .cld-container > .cld-nos-row .cld-split__media img,
.cld-srv-camp > .cld-container > .cld-nos-row .cld-split__media img,
.cld-srv-events > .cld-container > .cld-nos-row .cld-split__media img {
	height: 100%;
	object-fit: cover;
}

.cld-srv-camp > .cld-container > .cld-nos-row > .cld-split__media,
.cld-srv-events > .cld-container > .cld-nos-row > .cld-split__media {
	min-height: 550px;
}

/* La lista de precios va en una sola caja con borde. */
.cld-prices-box {
	margin-top: 30px;
	padding: 20px;
	border: 1px solid #cccccc;
	border-radius: 4px;
}

.cld-prices-box .cld-prices,
.cld-srv-tariff .cld-prices {
	display: block;
	margin: 0;
	border: 0;
}

.cld-prices-box .cld-prices__item,
.cld-srv-tariff .cld-prices__item {
	padding: 10px 0;
	border-bottom: 0;
}

.cld-prices-box .cld-prices__row,
.cld-srv-tariff .cld-prices__row {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

/* Línea de puntos entre el concepto y el precio. */
.cld-prices-box .cld-prices__row::after,
.cld-srv-tariff .cld-prices__row::after {
	content: "";
	flex: 1 1 auto;
	order: 2;
	border-bottom: 1px dotted #d1d1d1;
	transform: translateY(-4px);
}

.cld-prices-box .cld-prices__name,
.cld-srv-tariff .cld-prices__name {
	order: 1;
	flex-shrink: 0;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
}

.cld-prices-box .cld-prices__price,
.cld-srv-tariff .cld-prices__price {
	order: 3;
	flex-shrink: 0;
	color: var(--cld-red);
	font-family: "Cardo", serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
}

.cld-prices-box .cld-prices__desc,
.cld-srv-tariff .cld-prices__desc,
.cld-srv-tariff__note {
	color: #000000;
}

/* Lista de precios: concepto a la izquierda, precio a la derecha. */
.cld-prices {
	margin: 30px 0 0;
}

.cld-prices__item {
	padding: 15px 0;
	border-bottom: 1px dashed #e1dad6;
}

.cld-prices__item:first-child {
	padding-top: 0;
}

.cld-prices__item:last-child {
	padding-bottom: 0;
}

.cld-prices__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	font-size: 18px;
	line-height: 26px;
}

.cld-prices__name {
	font-weight: 600;
	color: var(--cld-text);
}

.cld-prices__price {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--cld-green);
}

.cld-prices__desc {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 22px;
	color: #666;
}

/* Tarjetas de evento, dentro de la sección: cuadrícula 2×2, solo se mueven las fotos. */
.cld-srv-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	margin-top: 80px;
}

.cld-srv-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	overflow: hidden;
	background: var(--cld-white);
}

.cld-srv-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 28px 30px 30px;
	border: 1px solid var(--cld-green);
	border-top: 0;
}

.cld-mini {
	width: 100%;
	height: 450px;
	margin: 0;
	overflow: hidden;
	--swiper-navigation-size: 22px;
	--swiper-navigation-color: #fff;
}

.cld-mini .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cld-mini .swiper-button-prev,
.cld-mini .swiper-button-next {
	width: 28px;
	height: 28px;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	padding: 0;
	background: none;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.cld-mini .swiper-button-prev {
	left: 8px;
}

.cld-mini .swiper-button-next {
	right: 8px;
}

.cld-srv-card__title {
	margin: 0 0 10px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 600;
}

.cld-srv-card__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 24px;
}

/* Los detalles siguen dentro de Eventos, pero el fondo pasa al crema de la página. */
.cld-srv-events:has(.cld-srv-details) {
	padding-bottom: 0;
}

.cld-srv-events > .cld-container {
	padding-bottom: 40px;
}

.cld-srv-details {
	background: var(--cld-cream);
	padding: 40px 0 var(--cld-section-y);
}

.cld-srv-detail {
	margin-top: 100px;
	scroll-margin-top: 120px;
}

.cld-srv-details .cld-srv-detail:first-child {
	margin-top: 0;
}

/* Galería justificada del detalle: dos fotos por fila, ancho según su proporción. */
.cld-photos {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cld-photos__row {
	display: flex;
	gap: 10px;
}

.cld-photos__item {
	position: relative;
	display: block;
	flex: var(--cld-ar, 1) 1 0;
	min-width: 0;
	overflow: hidden;
}

.cld-photos__item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 350ms;
	pointer-events: none;
}

.cld-photos__item:hover::after,
.cld-photos__item:focus-visible::after {
	opacity: 1;
}

.cld-photos__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--cld-ar, 1);
	object-fit: cover;
	transform-origin: center top;
	transform: scale(0);
	transition: transform 800ms ease;
}

.cld-photos__item.is-in img {
	transform: scale(1);
}

.cld-photos__item.is-in:hover img,
.cld-photos__item.is-in:focus-visible img {
	transform: scale(1.03);
}

/* La fila que no llega al máximo de fotos no se estira: mantiene la altura. */
.cld-photos__row.is-short .cld-photos__item {
	flex: 0 0 auto;
	width: calc(var(--cld-row-h) * var(--cld-ar));
}

/* Tarifas: misma caja que la lista de precios (borde, fondo transparente). */
.cld-srv-tariffs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.cld-srv-tariff {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: transparent;
	border: 1px solid #cccccc;
	border-radius: 4px;
}

/* La lista crece para que la nota quede a la misma altura en las dos cajas. */
.cld-srv-tariff .cld-prices {
	flex: 1 1 auto;
}

.cld-srv-tariff__title {
	margin: 0 0 20px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	text-align: center;
}

.cld-srv-tariff__note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 22px;
}

.cld-srv-tariff .cld-button-wrap {
	margin-top: 30px;
	text-align: center;
}

.cld-srv-card .cld-button-wrap {
	margin-top: auto;
}

/* Qué incluye / No incluye. */
.cld-srv-incl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.cld-srv-incl__col {
	border: 1px solid #cccccc;
	padding: 0 0 14px;
}

.cld-srv-incl__title {
	margin: 0 20px;
	padding: 18px 20px;
	border-bottom: 1px solid #cccccc;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 30px;
	line-height: 45px;
	font-weight: 600;
	text-align: center;
}

.cld-checklist {
	margin: 0;
	padding: 0 40px;
	list-style: none;
}

.cld-checklist li {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	padding: 17px 0;
	border-bottom: 1px solid #d8d8d8;
	line-height: 24px;
	text-align: right;
}

.cld-checklist li:last-child {
	border-bottom: 0;
}

.cld-checklist__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: var(--cld-green);
}

.cld-srv-incl__col--no .cld-checklist__icon {
	fill: var(--cld-red);
}

/* ---------- Cursos ---------- */

.cld-page-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 50px;
}

.cld-page-intro .cld-nos-row,
.cld-page-detail .cld-nos-row,
.cld-page-split {
	align-items: stretch;
}

.cld-page-intro .cld-split__media img,
.cld-page-detail .cld-split__media img,
.cld-page-split .cld-split__media img {
	height: 100%;
	object-fit: cover;
}

.cld-page-intro .cld-split__media {
	min-height: 550px;
}

.cld-page-detail {
	scroll-margin-top: 120px;
}

.cld-page-detail .cld-prices-box {
	margin-top: 40px;
}

@media (max-width: 1023px) {
	.cld-srv-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 767px) {
	.cld-srv-cards,
	.cld-srv-tariffs,
	.cld-srv-incl,
	.cld-page-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.cld-mini {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.page-template-template-cursos .cld-mini {
		height: 450px;
		aspect-ratio: auto;
	}

	.cld-srv-card__title,
	.cld-srv-tariff__title {
		font-size: 24px;
	}

	.cld-photos,
	.cld-photos__row {
		gap: 6px;
	}

	.cld-prices__row {
		font-size: 16px;
	}

	.cld-srv-photo > .cld-container > .cld-nos-row .cld-split__media img,
	.cld-srv-camp > .cld-container > .cld-nos-row .cld-split__media img,
	.cld-srv-events > .cld-container > .cld-nos-row .cld-split__media img {
		height: auto;
	}

	.cld-srv-camp > .cld-container > .cld-nos-row > .cld-split__media,
	.cld-srv-events > .cld-container > .cld-nos-row > .cld-split__media,
	.cld-page-intro .cld-split__media {
		min-height: 0;
	}

	.cld-page-intro .cld-split__media img,
	.cld-page-detail .cld-split__media img,
	.cld-page-split .cld-split__media img {
		height: auto;
	}
}

/* ---------- Apadrina ---------- */

.cld-page-lead {
	margin-top: 30px;
}

/* El separador de cada punto se sale del padding de la tarjeta para quedar
   cerca del borde, sin llegar a tocarlo. */
.cld-apa-list {
	margin: 10px -10px 0;
	padding: 0;
	list-style: none;
}

.cld-apa-list li {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 10px;
	border-bottom: 1px solid #d8d8d8;
	text-align: right;
}

/* El título en negrita y el texto que le sigue van uno debajo del otro. */
.cld-apa-list li > span {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.cld-apa-list li:last-child {
	border-bottom: 0;
}

.cld-apa-list__icon {
	flex: 0 0 auto;
	width: 20px;
	height: auto;
	margin-top: 4px;
}

.page-template-template-apadrina .cld-srv-card__title {
	font-size: 28px;
}

/* Sin descripción, el título es el último elemento: no deja margen debajo. */
.page-template-template-apadrina .cld-srv-card__title:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.page-template-template-apadrina .cld-srv-card__title {
		font-size: 24px;
	}
}

/* ---------- Compra ---------- */

.cld-page-split {
	margin-top: 40px;
}

@media (max-width: 767px) {
	.cld-com-ventajas .cld-split__media img {
		height: 260px;
		object-fit: cover;
	}
}

.cld-block-title {
	margin: 0 0 16px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
}

.cld-points {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.cld-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
}

.cld-points__icon {
	flex: 0 0 auto;
	width: 20px;
	height: auto;
	margin-top: 3px;
}

/* Puntos separados por una línea gris horizontal. */
.cld-points--sep li {
	padding: 12px 0;
	border-bottom: 1px solid #d8d8d8;
}

.cld-points--sep li:first-child {
	padding-top: 0;
}

.cld-points--sep li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

/* Membresías: el punto entero a la derecha y la flecha detrás del texto. */
.cld-points--end li {
	flex-direction: row-reverse;
	justify-content: flex-start;
	text-align: right;
}

.page-template-template-club .cld-photos {
	margin-top: 40px;
}

.cld-photo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 40px;
}

.cld-photo-grid .cld-photos__item img {
	aspect-ratio: auto;
	height: 185px;
}

@media (max-width: 1023px) {
	.cld-photo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.cld-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cld-block-title {
		font-size: 24px;
	}
}

/* ---------- Galería (masonry) ---------- */

.cld-gallery {
	--cld-cols: 3;
	--cld-gap: 10px;
}

.cld-gallery.is-ready {
	position: relative;
}

.cld-gallery__item {
	position: relative;
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 4px;
}

.cld-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 350ms;
	pointer-events: none;
}

.cld-gallery__item:hover::after,
.cld-gallery__item:focus-visible::after {
	opacity: 1;
}

.cld-gallery.is-ready .cld-gallery__item {
	position: absolute;
	margin: 0;
}

.cld-gallery__item img {
	width: 100%;
	height: auto;
	transform-origin: center top;
	transform: scale(0);
	transition: transform 800ms ease;
}

.cld-gallery__item.is-in img {
	transform: scale(1);
}

.cld-gallery__item.is-in:hover img {
	transform: scale(1.03);
}

/* ---------- Club ---------- */

.cld-club {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #1d1d1d;
}

.cld-club::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cld-bg, none);
	background-size: cover;
	background-position: center;
	filter: brightness(0.8);
	z-index: 0;
}

.cld-club__inner {
	position: relative;
	z-index: 1;
	display: flex;
	padding-top: 50px;
	padding-bottom: 50px;
}

.cld-club__text {
	width: 50%;
	padding: 10px;
}

.cld-club__title {
	margin: 0 0 20px;
	color: var(--cld-cream);
	font-size: 32px;
	line-height: 1.2;
	font-weight: 600;
}

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

.cld-footer {
	background: var(--cld-green);
	color: var(--cld-cream);
	padding: 40px 0;
}

.cld-footer .cld-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
	align-items: start;
	max-width: 990px;
	margin: 0 auto;
}

.cld-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
}

.cld-footer__links a,
.cld-footer__social span {
	color: var(--cld-cream);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 19px;
}

.cld-footer__social span {
	font-size: 16px;
}

.cld-footer__links a:hover {
	text-decoration: underline;
}

.cld-footer__col--center {
	text-align: center;
}

.cld-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 16px;
}

.cld-footer__social a {
	color: var(--cld-cream);
	display: inline-flex;
}

.cld-footer__social svg {
	width: 25px;
	height: 25px;
}

.cld-footer__rule {
	width: 100%;
	max-width: 360px;
	margin: 16px auto;
	border: 0;
	border-top: 1px solid #CCCCCC;
}

.cld-footer__partner {
	margin: 0 0 12px;
	color: var(--cld-cream);
	font-family: "Open Sans", sans-serif;
	font-size: 18px;
	line-height: 27px;
}

.cld-footer__partner-logo {
	display: flex;
	justify-content: center;
}

.cld-footer__partner-logo img {
	max-width: 200px;
}

.cld-footer__col--logo {
	display: flex;

}

/* El SVG no trae tamaño intrínseco: se fija explícitamente para que se vea. */
.cld-footer__logo-img {
	width: 200px;
	height: 200px;
	max-width: 100%;
	object-fit: contain;
}

.cld-footer__legal {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 28px;
	max-width: 990px;
	margin: 28px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.cld-footer__legal a {
	color: var(--cld-cream);
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 18px;
	text-decoration: underline;
}

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

/* Por debajo del ancho máximo, un margen lateral evita que el contenido toque el borde. */
@media (max-width: 1140px) {
	.cld-container {
		padding: 0 20px;
	}
}

@media (min-width: 1200px) {
	.cld-nav__list {
		column-gap: 20px;
	}
}

@media (max-width: 1024px) {
	:root {
		--cld-section-y: 70px;
	}

	.cld-hero__title {
		font-size: 42px;
	}

	.cld-menu-toggle {
		display: block;
	}

	.cld-nav {
		position: absolute;
		top: 62px;
		left: 0;
		right: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 0fr;
		padding: 0;
		overflow: hidden;
		background: var(--cld-white);
		box-shadow: none;
		pointer-events: none;
		transition: grid-template-rows 0.35s ease, box-shadow 0.35s ease;
	}

	.cld-nav.is-open {
		grid-template-rows: 1fr;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
		pointer-events: auto;
	}

	.cld-nav__list {
		min-height: 0;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		width: 100%;
		overflow: hidden;
	}

	.cld-nav__list li {
		width: 100%;
	}

	.cld-nav__list a {
		display: block;
		box-sizing: border-box;
		width: 100%;
		padding: 14px 20px;
		font-size: 16px;
		text-align: center;
	}

	.cld-nav__list .current-menu-item > a,
	.cld-nav__list .current_page_item > a,
	.cld-nav__list .current-menu-item > a:hover,
	.cld-nav__list .current_page_item > a:hover {
		background: #3f444b;
		color: var(--cld-white);
	}

	.cld-header__cta {
		display: none;
	}

	.cld-nav__list .cld-nav__cta {
		display: flex;
		justify-content: center;
		padding: 18px 20px 22px;
	}

	.cld-nav__list .cld-nav__cta a {
		display: inline-block;
		width: auto;
		min-width: 180px;
		padding: 12px 28px;
		border: 1px solid var(--cld-green);
		border-radius: 50px;
		background: var(--cld-green);
		color: var(--cld-cream);
		font-weight: 600;
	}

	.cld-nav__list .cld-nav__cta a:hover,
	.cld-nav__list .cld-nav__cta a:focus-visible {
		background: transparent;
		color: var(--cld-green);
	}
}

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

	.cld-nav,
	.cld-card__media::after,
	.cld-card__media img,
	.cld-gallery__item::after,
	.cld-gallery__item img,
	.cld-gallery__item.is-in img,
	.cld-photos__item::after,
	.cld-photos__item img,
	.cld-photos__item.is-in img {
		transition: none;
		transform: none;
	}

	.cld-slide__content,
	.swiper-slide-active .cld-slide__bg {
		animation: none;
		transition: none;
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	:root {
		--cld-section-y: 50px;
	}

	.cld-split__inner {
		flex-direction: column;
	}

	.cld-split__inner > * {
		flex: 1 1 auto;
		width: 100%;
	}

	.cld-hero {
		min-height: 480px;
		padding: 110px 20px 40px;
	}

	.cld-hero__title {
		font-size: 34px;
	}

	.cld-slider {
		height: 460px;
	}

	.cld-slide__content {
		padding: 24px 16px;
		padding-bottom: 40px;
	}

	.cld-slide__title {
		font-size: 26px;
	}

	.cld-cards {
		grid-template-columns: 1fr;
	}

	.cld-card__media {
		height: 260px;
	}

	.cld-gallery {
		--cld-cols: 2;
	}

	.cld-club {
		min-height: 0;
	}

	.cld-club__text {
		width: 100%;
		padding: 24px 10px;
	}

	.cld-club__title {
		font-size: 26px;
	}

	.cld-kicker {
		font-size: 26px;
		line-height: 1.3;
	}

	.cld-footer__grid {
		grid-template-columns: 1fr !important;
		text-align: center;
	}

	.cld-footer__col--logo {
		justify-content: center;
	}

	.cld-footer__links {
		align-items: center;
	}
}

/* ---------- Contacto ---------- */

.cld-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: start;
}

.cld-contact-info__list {
	display: flex;
	flex-direction: column;
	gap: 29px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.cld-contact-info__list li {
	line-height: 25px;
}

.cld-contact-info__list li,
.cld-contact-info__list li > a {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cld-contact-info__icon {
	display: flex;
	flex: 0 0 auto;
	color: var(--cld-green);
}

.cld-contact-info__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.page-template-template-contacto .cld-contact-info__list a {
	color: inherit;
	text-decoration: none;
}

.page-template-template-contacto .cld-split__text .cld-text a,
.page-template-template-contacto-seccion .cld-split__text .cld-text a {
	color: var(--cld-green);
	font-weight: 700;
	text-decoration: underline;
}

.page-template-template-contacto .cld-hero__subtitle {
	max-width: 600px;
	margin-right: auto;
	margin-left: auto;
}

.page-template-template-contacto .cld-con-how .cld-split__media img {
	height: 400px;
	object-fit: cover;
}

@media (max-width: 767px) {
	.page-template-template-contacto .cld-con-how .cld-split__media img {
		height: 340px;
	}
}

.cld-contact-band {
	background: var(--cld-green);
	padding: 10px 20px;
}

.cld-contact-band__title {
	max-width: var(--cld-max);
	margin: 0 auto;
	color: #ffffff;
	font-family: "Cardo", serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 32px;
	text-align: center;
}

.cld-contact-section-form {
	padding-top: 50px;
}

.cld-contact-form-wrap--centered {
	max-width: 1130px;
	margin: 0 auto;
}

.cld-contact-form__title {
	margin-top: 0;
	font-size: 32px;
	line-height: 1.2;
}

.cld-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 25px;
}

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

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

.cld-contact-form__label {
	font-size: 15px;
	line-height: 20px;
	color: var(--cld-green);
	font-weight: 600;
}

.cld-contact-form__req {
	color: var(--cld-red);
}

.cld-contact-form input:not([type="checkbox"]):not([type="hidden"]),
.cld-contact-form select,
.cld-contact-form textarea {
	width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	background-color: #ffffff;
	color: #6e6e6e;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	line-height: 25px;
}

.cld-contact-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%236e6e6e' d='M1.4 1.2L8 7.8l6.6-6.6 1.4 1.4-8 8-8-8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 10px 7px;
	cursor: pointer;
}

.cld-contact-form input::placeholder,
.cld-contact-form textarea::placeholder {
	color: #6e6e6e;
	opacity: 1;
}

.cld-contact-form .iti--allow-dropdown input[type="tel"] {
	padding-left: var(--iti-selected-country-arrow-padding);
	padding-right: 1rem;
}

.cld-contact-form textarea {
	resize: vertical;
	min-height: 130px;
}

.cld-contact-form input:focus,
.cld-contact-form select:focus,
.cld-contact-form textarea:focus {
	outline: none;
	border-color: var(--cld-green);
}

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

.cld-contact-form__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 20px;
	color: var(--cld-green);
	font-size: 15px;
	line-height: 22px;
}

.cld-contact-form__check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 4px 0 0;
	accent-color: var(--cld-green);
}

.cld-contact-form__check a {
	color: var(--cld-green);
	text-decoration: underline;
}

.cld-contact-form__submit {
	margin-top: 25px;
	cursor: pointer;
}

.cld-contact-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 22px;
}

.cld-contact-notice--ok {
	background: #e8f3ea;
	color: var(--cld-green);
}

.cld-contact-notice--error {
	background: #fbe9e9;
	color: var(--cld-red);
}

.cld-contact-notice--info {
	background: #fff6d8;
	color: #5a4a00;
}

.cld-contact-form .iti {
	width: 100%;
}

.cld-contact-form .iti__country-list,
.cld-contact-form .iti__dropdown-content {
	z-index: 5;
}

.cld-contact-form .is-invalid input:not([type="checkbox"]):not([type="hidden"]),
.cld-contact-form .is-invalid select,
.cld-contact-form .is-invalid textarea,
.cld-contact-form .is-invalid .iti input {
	border-color: var(--cld-red);
}

.cld-contact-form__check.is-invalid input[type="checkbox"] {
	outline: 2px solid var(--cld-red);
	outline-offset: 2px;
	accent-color: var(--cld-red);
}

.cld-contact-form__tel-error {
	display: block;
	margin-top: 6px;
	color: var(--cld-red);
	font-size: 14px;
	line-height: 18px;
}

@media (max-width: 767px) {
	.cld-contact-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cld-contact-form__row {
		grid-template-columns: 1fr;
	}
}

/* Zoom de galerías (GLightbox) en mobile: la librería deja las flechas fuera
   de pantalla (top:-100%) por debajo de 769px. Se muestran a media altura. */
@media (max-width: 768px) {
	.glightbox-clean .gprev,
	.glightbox-clean .gnext {
		top: 45%;
	}

	.glightbox-clean .gprev {
		left: 8px;
	}

	.glightbox-clean .gnext {
		right: 8px;
	}
}

/* ---------- Página no encontrada ---------- */

.cld-not-found {
	text-align: center;
}

.cld-not-found__code {
	margin: 0;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 72px;
	line-height: 1;
	font-weight: 700;
}

.cld-not-found__title {
	margin: 16px 0 12px;
	color: var(--cld-green);
	font-family: "Cardo", serif;
	font-size: 36px;
	line-height: 1.2;
	font-weight: 700;
}

.cld-not-found__text {
	margin: 0 auto;
	max-width: 460px;
	font-size: 16px;
	line-height: 26px;
}

.cld-not-found .cld-button-wrap {
	margin-top: 28px;
}

@media (max-width: 767px) {
	.cld-not-found__code {
		font-size: 56px;
	}

	.cld-not-found__title {
		font-size: 28px;
	}
}
