/* Casa Chula Design V2 foundations. */
:root {

	/* FIGMA_VARIABLE: neutrals/*, brand/green, pastel/p-orange. */
	--cc-color-ink: var(--wp--preset--color--ink);
	--cc-color-paper: var(--wp--preset--color--paper);
	--cc-color-sand: var(--wp--preset--color--sand);
	--cc-color-brand-green: var(--wp--preset--color--brand-green);
	--cc-color-pastel-orange: var(--wp--preset--color--pastel-orange);

	/* FIGMA_VARIABLE: roles/*. */
	--cc-color-text-primary: var(--wp--preset--color--ink);
	--cc-color-text-on-dark: var(--wp--preset--color--paper);
	--cc-color-surface: var(--wp--preset--color--paper);
	--cc-color-surface-dark: var(--wp--preset--color--ink);
	--cc-color-border-strong: var(--wp--preset--color--ink);
	--cc-color-accent: var(--wp--preset--color--brand-green);
	--cc-color-text-secondary: rgb(27 42 33 / 65%);
	--cc-color-border: rgb(27 42 33 / 12%);

	/* MEASURED_FROM_DESIGN_V2: chip and chevron in property panel. */
	--cc-color-property-chip-border: rgb(204 204 204);
	--cc-color-property-chip-text: rgb(64 64 64);
	--cc-color-property-chevron: rgb(102 102 102);
	--cc-color-property-muted: rgb(128 128 128);
	--cc-color-property-booking: rgb(115 115 115);

	/* FIGMA_VARIABLE: spacing/16, spacing/24, spacing/solape-titulo, radius/pill. */
	--cc-space-16: 16px;
	--cc-space-24: 24px;
	--cc-title-overlap: -30px;
	--cc-radius-pill: 999px;

	/* MEASURED_FROM_DESIGN_V2: borders and gutter at viewport 1440. */
	--cc-border-control: 1.5px;
	--cc-border-decorative: 1px;
	--cc-gutter: 48px;
	--cc-container-wide: var(--wp--style--global--wide-size, 1344px);
	--cc-container-content: var(--wp--style--global--content-size, 760px);

	/* MEASURED_FROM_DESIGN_V2: shell geometry and footer separator. */
	--cc-stickbar-height: 32px;
	--cc-floating-offset: 24px;
	--cc-footer-separator: rgb(224 224 224 / 25%);

	/* FIGMA_STYLE: text styles and automatic line height. */
	--cc-lh-title-card: 1.2;
	--cc-lh-subtitle-card: 1.35;
	--cc-lh-body: 1.55;
	--cc-lh-link: 1.6;
	--cc-lh-auto: normal;
	--cc-font-system: system-ui, sans-serif;
}

/*
 * C9_BASE_STATE_RESET: style.css neutraliza en origen los colores y fondos
 * de Underscores con la especificidad eficaz. Los componentes definen aquí
 * sus estados con los tokens de Diseño V2.
 */

/* Elimina el outline punteado legacy después de foco por puntero. */
a:focus:not(:focus-visible) {
	outline: 0;
}

/* ACCESSIBILITY_FALLBACK: doble anillo perceptible sobre crema, ink e imagen. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--cc-color-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--cc-color-paper);
}

/*
 * ACCESSIBILITY_FALLBACK: los enlaces que llenan una caja recortada dibujan
 * el mismo doble indicador hacia dentro, sin alterar su geometría.
 */
:is(
	.cc-home-need a,
	.cc-home-featured__track,
	.cc-home-person a,
	.cc-person-card__link,
	.cc-home-office__actions .wp-block-button__link
):focus-visible {
	outline: 2px solid var(--cc-color-ink);
	outline-offset: -6px;
	box-shadow: inset 0 0 0 4px var(--cc-color-paper);
}

/*
 * ACCESSIBILITY_FALLBACK: en tarjetas con medios el indicador es una capa
 * propia; un outline del enlace se pinta por debajo de imágenes y velos.
 */
:is(
	.cc-home-month__link,
	.cc-poster-card__link,
	.cc-home-video__trigger,
	.cc-video-card a
) {
	position: relative;
}

:is(
	.cc-home-month__link,
	.cc-poster-card__link,
	.cc-home-video__trigger,
	.cc-video-card a
):focus-visible {
	outline: 0;
	box-shadow: none;
}

:is(
	.cc-home-month__link,
	.cc-poster-card__link,
	.cc-home-video__trigger,
	.cc-video-card a
):focus-visible::after {
	position: absolute;
	z-index: 10;
	inset: 6px;
	border: 2px solid var(--cc-color-ink);
	box-shadow: 0 0 0 4px var(--cc-color-paper);
	content: "";
	pointer-events: none;
}

/* ACCESSIBILITY_FALLBACK: el input transparente delega el indicador al chip. */
.cc-filter-dialog__choice input:focus-visible + span {
	outline: 2px solid var(--cc-color-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--cc-color-paper);
}

/* ACCESSIBILITY_FALLBACK: controles visualmente ocultos al recibir foco. */
.screen-reader-text:focus {
	border: 1px solid var(--cc-color-ink);
	border-radius: 0;
	background: var(--cc-color-paper);
	color: var(--cc-color-ink);
	font-family: var(--cc-font-system);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: 0 0 0 4px var(--cc-color-paper);
	text-decoration: none;
}

/* FIGMA_STYLE: card title. */
.cc-text-title-card {
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 700;
	line-height: var(--cc-lh-title-card);
}

/* FIGMA_STYLE: card subtitle. */
.cc-text-subtitle-card {
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 700;
	line-height: var(--cc-lh-subtitle-card);
}

/* FIGMA_STYLE: body. */
.cc-text-body {
	font-family: var(--wp--preset--font-family--body);
	font-size: 18px;
	font-weight: 400;
	line-height: var(--cc-lh-body);
}

/* FIGMA_STYLE: link. */
.cc-text-link {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	font-weight: 700;
	line-height: var(--cc-lh-link);
}

/* FIGMA_STYLE: detail. */
.cc-text-detail {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: var(--cc-lh-auto);
}

/* FIGMA_STYLE: location. */
.cc-text-location {
	font-family: var(--wp--preset--font-family--display);
	font-size: 12px;
	font-weight: 700;
	line-height: var(--cc-lh-auto);
}

/* DERIVED: shared section title layout. */
.cc-section-title {
	display: flex;
	max-width: 100%;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	color: var(--cc-color-text-primary);
	line-height: normal;
	text-align: center;
}

/* FIGMA_STYLE: section title first line. */
.cc-section-title__line-1 {
	max-width: 100%;
	margin-block-end: var(--cc-title-overlap);
	font-family: var(--wp--preset--font-family--display);
	font-size: 42px;
	font-weight: 700;
	line-height: var(--cc-lh-auto);
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* FIGMA_STYLE: section title script line. */
.cc-section-title__line-2 {
	max-width: 100%;
	font-family: var(--wp--preset--font-family--script);
	font-size: 70px;
	font-weight: 400;
	line-height: var(--cc-lh-auto);
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* DERIVED: section title modifiers. */
.cc-section-title--start {
	align-items: flex-start;
	text-align: left;
}

.cc-section-title--on-dark {
	color: var(--cc-color-text-on-dark);
}

@media (max-width: 782px) {

	/* MEASURED_FROM_DESIGN_V2: mobile instance overlap and viewport 390 gutter. */
	:root {
		--cc-title-overlap: -17px;
		--cc-gutter: 20px;
		--cc-stickbar-height: 33px;
		--cc-floating-offset: 20px;
	}

	/* FIGMA_STYLE: section title mobile size. */
	.cc-section-title__line-1 {
		font-size: 24px;
	}

	.cc-section-title__line-2 {
		font-size: 40px;
	}

	/* MEASURED_FROM_DESIGN_V2: compact Método mobile instance. */
	.cc-section-title--compact .cc-section-title__line-1 {
		margin-block-end: -15px;
		font-size: 22px;
	}

	.cc-section-title--compact .cc-section-title__line-2 {
		font-size: 37px;
	}
}
