/* ==========================================================================
   Carlo Studio — internal pages: page header, content/policies, FAQ,
   contact, favorites
   ========================================================================== */

/* ---------- Page header ---------- */
.crl-page-hero { display: grid; background: var(--crl-paper); color: var(--crl-black); }
.crl-page-hero--dark { background: var(--crl-graphite); color: #fff; }
.crl-page-hero__copy { padding-block: 48px; }
.crl-page-hero--center .crl-page-hero__copy { text-align: center; }
.crl-page-hero--center .crl-breadcrumb, .crl-page-hero--center .crl-page-hero__actions { justify-content: center; }
.crl-page-hero--center .crl-page-hero__text, .crl-page-hero--center .crl-search--page { margin-inline: auto; }
.crl-page-hero__title { margin: 0; font-family: var(--crl-font-display); font-size: clamp(32px, 8vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; color: inherit; }
.crl-page-hero__text { max-width: 560px; margin: 16px 0 0; font-size: 15px; line-height: 1.75; opacity: .82; }
.crl-page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.crl-page-hero__media { position: relative; min-height: 260px; overflow: hidden; }
.crl-page-hero__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }

.crl-search--page { max-width: 560px; margin-top: 26px; gap: 10px; border-bottom: 0; }
.crl-search--page > .crl-icon { left: 14px; }
.crl-search--page input[type="search"] { flex: 1; min-width: 0; padding-left: 44px; border: 1px solid var(--crl-border); background: #fff; color: var(--crl-black); border-radius: var(--crl-radius); }
.crl-search--page .crl-btn { flex: 0 0 auto; min-height: 48px; }
.crl-page-hero--dark .crl-search--page > .crl-icon { color: var(--crl-black); }

@media (min-width: 768px) {
	.crl-page-hero.has-image { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
	.crl-page-hero.has-image .crl-page-hero__copy { align-self: center; padding-inline: clamp(24px, 6vw, 100px); max-width: none; }
	.crl-page-hero__copy { padding-block: 88px; }
	.crl-page-hero__media { min-height: 420px; }
}

/* ---------- Content / policies ---------- */
.crl-info { --crl-measure: 760px; padding-block: 40px; color: var(--crl-black); }
.crl-info__grid { display: grid; gap: 28px; }
.crl-info__content { max-width: var(--crl-measure); min-width: 0; }
.crl-info__updated { margin: 0 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--crl-muted); }
.crl-info__intro { margin-bottom: 28px; font-size: 16px; }
.crl-info__section { padding: 26px 0; border-top: 1px solid var(--crl-soft); scroll-margin-top: calc(var(--crl-header-h, 0px) + 24px); }
.crl-info__section:first-of-type { border-top: 0; padding-top: 0; }
.crl-info__h { margin: 0 0 12px; font-size: 18px; font-weight: 500; letter-spacing: .02em; color: inherit; }
.crl-info__body { color: var(--crl-brand-gray); }

.crl-info__toc { padding: 16px 18px; background: var(--crl-paper); }
.crl-info__toc-title { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--crl-muted); }
.crl-info__toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.crl-info__toc a { color: inherit; text-decoration: none; }
.crl-info__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1025px) {
	.crl-info { padding-block: 72px; }
	.crl-info--toc .crl-info__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
	.crl-info__toc { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--crl-header-h, 0px) + 24px); align-self: start; padding: 0; background: none; }
	.crl-info__toc ol { padding-left: 0; list-style: none; border-left: 1px solid var(--crl-soft); }
	.crl-info__toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--crl-brand-gray); }
	.crl-info__toc li a:hover { border-left-color: var(--crl-black); color: var(--crl-black); text-decoration: none; }
}

/* ---------- FAQ ---------- */
.crl-faq { padding-block: 40px; color: var(--crl-black); }
.crl-faq__inner { max-width: 860px; }
.crl-faq__title { margin-bottom: 18px; }
.crl-faq__group { margin: 34px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--crl-muted); }
.crl-faq__group:first-child { margin-top: 0; }
.crl-faq .crl-acc__title { text-transform: none; letter-spacing: .01em; font-size: 16px; font-weight: 400; }
@media (min-width: 768px) { .crl-faq { padding-block: 64px; } }

/* ---------- Contact ---------- */
.crl-contact { padding-block: 32px; color: var(--crl-black); }
.crl-contact__grid { display: grid; gap: 24px; }
.crl-contact__info { padding: 32px 24px; background: var(--crl-graphite); color: #fff; }
.crl-contact__title { margin: 0 0 12px; font-size: clamp(26px, 5vw, 38px); font-weight: 400; line-height: 1.1; text-transform: uppercase; color: inherit; }
.crl-contact__text { margin: 0 0 24px; font-size: 15px; line-height: 1.7; opacity: .82; }
.crl-contact__list { display: grid; gap: 16px; margin: 0 0 26px; }
.crl-contact__item { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; }
.crl-contact__item .crl-icon { grid-row: 1 / 3; margin-top: 2px; }
.crl-contact__item dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.crl-contact__item dd { margin: 0; font-size: 15px; }
.crl-contact__item a { color: inherit; text-decoration: none; }
.crl-contact__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crl-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crl-contact__actions .crl-btn .crl-icon { width: 18px; height: 18px; }
.crl-contact__form { padding: 8px 0; }
.crl-contact__form-title { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

.crl-fields { display: grid; gap: 14px; }
.crl-field { margin: 0; }
.crl-field label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .06em; color: var(--crl-brand-gray); }
.crl-form--contact .crl-consent { margin: 16px 0 18px; color: var(--crl-brand-gray); }
.crl-form--contact .crl-consent__box { color: var(--crl-black); }
.crl-form--contact .crl-form__submit { width: 100%; }

@media (min-width: 768px) {
	.crl-contact { padding-block: 64px; }
	.crl-fields { grid-template-columns: 1fr 1fr; }
	.crl-field--full { grid-column: 1 / -1; }
	.crl-form--contact .crl-form__submit { width: auto; min-width: 240px; }
}

@media (min-width: 1025px) {
	.crl-contact__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
	.crl-contact__info { padding: 48px 44px; }
}

/* ---------- Favorites ---------- */
.crl-favorites { --crl-cols: 2; padding-block: 32px; color: var(--crl-black); }
.crl-favorites__text { max-width: 520px; margin: 0; color: var(--crl-muted); font-size: 14px; }
.crl-favorites__n { font-size: .5em; color: var(--crl-muted); vertical-align: middle; letter-spacing: .04em; }
.crl-favorites__n:empty { display: none; }
.crl-favorites__empty { padding: 48px 16px 24px; text-align: center; color: var(--crl-muted); }
.crl-favorites__empty .crl-icon { width: 40px; height: 40px; margin-bottom: 10px; color: var(--crl-black); stroke-width: 1.1; }
.crl-favorites__empty-title { margin: 0 0 6px; font-size: 18px; color: var(--crl-black); letter-spacing: .04em; text-transform: uppercase; }
.crl-favorites__empty p { margin: 0 0 22px; }
.crl-favorites.has-items .crl-favorites__empty { display: none; }
.crl-favorites__hint { margin: 28px 0 0; text-align: center; font-size: 13px; }
.crl-favorites__hint a { color: var(--crl-brand-gray); }
.crl-favorites .crl-card.is-removing { opacity: 0; transform: scale(.96); transition: opacity .35s, transform .35s; }
@media (min-width: 768px) { .crl-favorites { --crl-cols: 4; padding-block: 64px; } }

/* 4.2 — Contact: quick help links, optional map, mobile-first WhatsApp. */
.crl-contact__help { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.crl-contact__help-title { margin: 0 0 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.crl-contact__help ul { margin: 0; padding: 0; list-style: none; }
.crl-contact__help a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: inherit; font-size: 15px; text-decoration: none; }
.crl-contact__help .crl-icon { width: 16px; height: 16px; opacity: .6; transition: transform var(--crl-d2) var(--crl-ease), opacity var(--crl-d2); }
.crl-contact__help a:hover .crl-icon { transform: translateX(4px); opacity: 1; }
.crl-contact__wa { gap: 12px; }
@media (max-width: 767px) {
	.crl-contact__actions .crl-btn { width: 100%; justify-content: center; }
	.crl-contact__form .crl-input { font-size: 16px; }
}
.crl-contact__map { margin-top: 32px; }
.crl-contact__map iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(1) contrast(1.05); }
.crl-info__toc ol.is-numbered { list-style: none; padding-left: 0; }

/* ==========================================================================
   4.6.1 — Information pages in the house style: cinematic photo header,
   numbered editorial sections, refined FAQ and an "¿Necesitas ayuda?" close.
   Black, white and greys only (no cream), Jost, generous white space.
   ========================================================================== */

/* --- Cinematic header --- */
.crl-page-hero--cinematic {
	--crl-ph-h: 520px;
	--crl-ph-shade: .55;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(var(--crl-ph-h), 78vh);
	overflow: hidden;
	background: #0E0E0F;
	color: #fff;
}
.crl-page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.crl-page-hero__bg img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transform: scale(1.04); animation: crl-ph-in 1.6s var(--crl-ease) forwards; }
@keyframes crl-ph-in { to { transform: scale(1); } }
.crl-page-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 10, 11, calc(var(--crl-ph-shade) + .3)) 0%, rgba(10, 10, 11, var(--crl-ph-shade)) 45%, rgba(10, 10, 11, calc(var(--crl-ph-shade) - .25)) 100%),
		linear-gradient(0deg, rgba(10, 10, 11, .65) 0%, rgba(10, 10, 11, 0) 55%);
}
.crl-page-hero--cinematic .crl-page-hero__copy { width: 100%; padding-top: 120px; padding-bottom: 48px; }
.crl-page-hero--cinematic .crl-breadcrumb { color: rgba(255, 255, 255, .72); opacity: 1; }
.crl-page-hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 16px; color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.crl-page-hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.crl-page-hero--center .crl-page-hero__eyebrow::before { display: none; }
.crl-page-hero--cinematic .crl-page-hero__title { max-width: 14ch; color: #fff; font-size: clamp(40px, 8.4vw, 96px); font-weight: 300; line-height: .95; letter-spacing: -.02em; }
.crl-page-hero--cinematic .crl-page-hero__text { max-width: 46ch; margin-top: 20px; color: rgba(255, 255, 255, .82); font-size: 16px; opacity: 1; }
.crl-page-hero--cinematic.crl-page-hero--center .crl-page-hero__title { margin-inline: auto; }
.crl-page-hero--cinematic .crl-page-hero__actions { margin-top: 30px; }
@media (min-width: 768px) {
	.crl-page-hero--cinematic .crl-page-hero__copy { padding-top: 160px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .crl-page-hero__bg img { animation: none; transform: none; } }

/* --- Numbered editorial sections --- */
body .crl-info { padding-block: 56px; background: #fff; }
.crl-info .crl-info__grid { gap: 36px; }
.crl-info .crl-info__intro { margin: 0 0 40px; padding-bottom: 36px; border-bottom: 1px solid #E6E6E6; color: #2B2B2B; font-size: 19px; font-weight: 300; line-height: 1.7; }
.crl-info .crl-info__intro p { margin: 0 0 .8em; }
.crl-info .crl-info__updated { color: #8A8A8A; }
.crl-info article.crl-info__section {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 0 18px;
	padding: 34px 0;
	border-top: 1px solid #E6E6E6;
}
.crl-info article.crl-info__section:first-of-type { padding-top: 0; border-top: 0; }
.crl-info__num { padding-top: 2px; color: #B3B3B3; font-size: 26px; font-weight: 200; line-height: 1; letter-spacing: -.02em; }
.crl-info .crl-info__h { margin: 0 0 14px; color: #111; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.crl-info .crl-info__body { color: #4A4A4A; font-size: 15px; line-height: 1.85; }
.crl-info .crl-info__body p { margin: 0 0 1em; }
.crl-info .crl-info__body p:last-child { margin-bottom: 0; }
.crl-info .crl-info__body ul { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.crl-info .crl-info__body ul li { position: relative; padding-left: 22px; }
.crl-info .crl-info__body ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: #111; }
.crl-info .crl-info__body strong { color: #111; font-weight: 500; }

.crl-info .crl-info__toc { padding: 18px 20px; border: 1px solid #E6E6E6; background: #fff; }
.crl-info .crl-info__toc-title { color: #8A8A8A; letter-spacing: .22em; }
.crl-info .crl-info__toc ol { gap: 2px; }
.crl-info .crl-info__toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 7px 0; color: #4A4A4A; font-size: 13px; line-height: 1.45; text-decoration: none; }
.crl-info__toc-n { color: #B3B3B3; font-size: 12px; letter-spacing: .04em; }
.crl-info .crl-info__toc a:hover { color: #111; }
.crl-info .crl-info__toc a:hover .crl-info__toc-n { color: #111; }

@media (min-width: 768px) {
	body .crl-info { padding-block: 96px; }
	.crl-info article.crl-info__section { grid-template-columns: 88px minmax(0, 1fr); padding: 44px 0; }
	.crl-info__num { font-size: 40px; }
	.crl-info .crl-info__h { font-size: 16px; }
}
@media (min-width: 1024px) {
	.crl-info.crl-info--toc .crl-info__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 96px; }
	.crl-info .crl-info__toc { padding: 0; border: 0; }
	.crl-info .crl-info__toc ol { border-left: 1px solid #E6E6E6; }
	.crl-info .crl-info__toc li a { padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; }
	.crl-info .crl-info__toc li a:hover { border-left-color: #111; }
}

/* --- FAQ --- */
body .crl-faq { padding-block: 56px; background: #fff; }
.crl-faq .crl-faq__inner { max-width: var(--crl-max); }
.crl-faq__block { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid #E6E6E6; }
.crl-faq__block:first-of-type { border-top: 0; padding-top: 0; }
.crl-faq .crl-faq__group { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; color: #111; font-size: 13px; font-weight: 500; letter-spacing: .2em; }
.crl-faq__group-n { color: #B3B3B3; font-size: 28px; font-weight: 200; letter-spacing: -.02em; }
.crl-faq .crl-acc { border-bottom: 1px solid #E6E6E6; }
.crl-faq .crl-acc:first-child { border-top: 1px solid #E6E6E6; }
.crl-faq .crl-acc__title { min-height: 68px; padding: 10px 0; color: #111; font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.crl-faq .crl-acc__title:hover { color: #4A4A4A; }
.crl-faq .crl-acc__body { max-width: 68ch; padding-bottom: 26px; color: #4A4A4A; font-size: 15px; line-height: 1.85; }
@media (min-width: 900px) {
	body .crl-faq { padding-block: 96px; }
	.crl-faq__block { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; padding: 44px 0; }
	.crl-faq .crl-faq__group { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--crl-header-h, 0px) + 28px); align-self: start; flex-direction: column; gap: 10px; }
	.crl-faq__group-n { font-size: 44px; }
}

/* --- Related help pages --- */
.crl-help-related { padding-bottom: 72px; }
.crl-help-related__title { margin: 0 0 18px; color: #8A8A8A; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.crl-help-related__list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #E6E6E6; }
.crl-help-card {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) 20px;
	grid-template-rows: auto auto;
	gap: 2px 16px;
	align-items: center;
	padding: 22px 4px;
	border-bottom: 1px solid #E6E6E6;
	color: #111;
	text-decoration: none;
	transition: background-color .3s var(--crl-ease), padding .3s var(--crl-ease);
}
.crl-help-card > .crl-icon:first-child { grid-row: 1 / span 2; width: 22px; height: 22px; color: #111; }
.crl-help-card > .crl-icon:last-child { grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; opacity: .45; transition: transform .3s var(--crl-ease), opacity .3s; }
.crl-help-card__t { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.crl-help-card__d { grid-column: 2; color: #8A8A8A; font-size: 13px; }
.crl-help-card:hover { background: #F7F7F7; padding-inline: 16px; }
.crl-help-card:hover > .crl-icon:last-child { opacity: 1; transform: translateX(4px); }
@media (min-width: 768px) {
	.crl-help-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1100px) {
	.crl-help-related { padding-bottom: 96px; }
	.crl-help-related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- "¿Necesitas ayuda?" band --- */
.crl-help-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #0E0E0F;
	color: #fff;
	font-family: var(--crl-font);
}
.crl-help-band__bg { position: absolute; inset: 0; z-index: -1; }
.crl-help-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35); }
.crl-help-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, .92), rgba(10, 10, 11, .55)); }
.crl-help-band__inner { display: grid; gap: 28px; padding-block: 64px; }
.crl-help-band__eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.crl-help-band__eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.crl-help-band__title { margin: 0; color: #fff; font-size: clamp(30px, 5vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.crl-help-band__text { max-width: 44ch; margin: 16px 0 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.75; }
.crl-help-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crl-help-band__actions .crl-btn { min-height: 52px; gap: 10px; }
.crl-help-band__actions .crl-icon { width: 18px; height: 18px; }
@media (min-width: 900px) {
	.crl-help-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 56px; padding-block: 96px; }
}
@media (max-width: 599px) { .crl-help-band__actions .crl-btn { width: 100%; justify-content: center; } }

/* 4.6.1 — light help band by default (the dark photo section is the newsletter). */
.crl-help-related, .crl-help-band { font-family: var(--crl-font); -webkit-font-smoothing: antialiased; }
.crl-help-band--light { background: #F4F4F4; color: #111; }
.crl-help-band--light .crl-help-band__eyebrow { color: #6B6B6B; }
.crl-help-band--light .crl-help-band__title { color: #111; }
.crl-help-band--light .crl-help-band__text { color: #4A4A4A; }
.crl-help-band--light .crl-help-band__inner { padding-block: 56px; }
@media (min-width: 900px) { .crl-help-band--light .crl-help-band__inner { padding-block: 80px; } }
.crl-faq__block { border-top: 0; }
