/* ==========================================================================
   Carlo Studio 4.0 — core (tokens, base, buttons, product card, motion)
   Mobile-first. Every component is visible without JavaScript.
   ========================================================================== */

@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-var-latin.woff") format("woff");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--crl-black: #111111;
	--crl-graphite: #1B1C1E;
	--crl-graphite-2: #242629;
	--crl-graphite-3: #34373A;
	--crl-brand-gray: #39383D;
	--crl-brand-gray-2: #57585D;
	--crl-white: #FFFFFF;
	--crl-paper: #F5F5F5;
	--crl-soft: #F0F0F0;
	--crl-media: #EFEFEF;
	--crl-muted: #6F6F6F;
	--crl-border: #DADADA;
	--crl-accent: #111111;
	--crl-sale: #111111;
	--crl-ok: #3D6B4A;
	--crl-font: "Jost", "Helvetica Neue", Arial, sans-serif;
	--crl-font-display: var(--crl-font);
	--crl-ease: cubic-bezier(.2, .7, .2, 1);
	--crl-ease-out: cubic-bezier(.16, 1, .3, 1);
	--crl-gutter: 16px;
	--crl-max: 1440px;
	--crl-radius: 2px;
	--crl-tap: 44px;
	/* 4.1 — warm neutrals and a single motion scale shared by every component */
	--crl-ink: #0F0F10;
	--crl-ivory: #FFFFFF;
	--crl-warm: #FFFFFF;
	--crl-stone: #E6E6E6;
	--crl-taupe: #7A7A7A;
	--crl-d1: 180ms;
	--crl-d2: 320ms;
	--crl-d3: 600ms;
	--crl-d4: 900ms;
}

@media (min-width: 768px) {
	:root { --crl-gutter: 28px; }
}

@media (min-width: 1200px) {
	:root { --crl-gutter: 40px; }
}

/* ---------- Scoped base ---------- */
[class^="crl-"], [class*=" crl-"] { box-sizing: border-box; }
[class^="crl-"] *, [class*=" crl-"] *,
[class^="crl-"] *::before, [class*=" crl-"] *::after { box-sizing: border-box; }

.crl-hero, .crl-products, .crl-mosaic, .crl-capsule, .crl-editorial, .crl-benefits,
.crl-marquee, .crl-footer, .crl-header, .crl-catalog, .crl-archive, .crl-pdp,
.crl-wc, .crl-page-hero, .crl-info, .crl-faq, .crl-contact, .crl-favorites,
.crl-newsletter, .crl-drawer, .crl-search-panel, .crl-dialog, .crl-lightbox, .crl-buybar,
.crl-spot, .crl-wa, .crl-wa-cta, .crl-home-layout, .crl-admin-note, .crl-new {
	font-family: var(--crl-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.crl-container {
	width: 100%;
	max-width: var(--crl-max);
	margin-inline: auto;
	padding-inline: var(--crl-gutter);
}

.crl-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
}

.crl-site .screen-reader-text,
.crl-header .screen-reader-text,
[class^="crl-"] .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

[class^="crl-"] :focus-visible,
[class*=" crl-"] :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Routed layouts break out of theme containers (Astra, Kadence…) to full width. */
.crl-layout-main {
	display: block;
	width: calc(100vw - var(--crl-sbw, 0px));
	max-width: calc(100vw - var(--crl-sbw, 0px));
	margin-inline: calc(50% - 50vw + var(--crl-sbw, 0px) / 2);
}

.crl-global-header, .crl-global-footer { width: 100%; }

/* ---------- Typography helpers ---------- */
.crl-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .72;
}

.crl-head { margin: 0 0 28px; }
.crl-head--center { text-align: center; }
.crl-head--center .crl-head__text { margin-inline: auto; }

.crl-head__title {
	margin: 0;
	font-family: var(--crl-font-display);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: inherit;
}

.crl-head__text {
	max-width: 560px;
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.7;
	opacity: .78;
}

.crl-prose { font-size: 15px; line-height: 1.75; }
.crl-prose > :first-child { margin-top: 0; }
.crl-prose > :last-child { margin-bottom: 0; }
.crl-prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crl-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.crl-prose th, .crl-prose td { padding: 10px 12px; border-bottom: 1px solid var(--crl-border); text-align: left; }
.crl-prose th { font-weight: 500; background: var(--crl-paper); }

.crl-logo-text {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: .32em;
	padding-left: .32em;
	color: inherit;
}

/* ---------- Buttons ---------- */
.crl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid currentColor;
	border-radius: var(--crl-radius);
	background: transparent;
	color: inherit;
	font-family: var(--crl-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .35s var(--crl-ease), color .35s var(--crl-ease), border-color .35s var(--crl-ease), transform .35s var(--crl-ease);
	-webkit-tap-highlight-color: transparent;
}

.crl-btn .crl-icon { width: 18px; height: 18px; transition: transform .35s var(--crl-ease); }
.crl-btn:hover .crl-icon--arrow-right { transform: translateX(4px); }
.crl-btn:active { transform: translateY(1px); }

.crl-btn--light { background: #fff; border-color: #fff; color: var(--crl-black); }
.crl-btn--light:hover { background: transparent; color: #fff; }
.crl-btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.crl-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--crl-black); }
.crl-btn--dark { background: var(--crl-black); border-color: var(--crl-black); color: #fff; }
.crl-btn--dark:hover { background: var(--crl-brand-gray); border-color: var(--crl-brand-gray); color: #fff; }
.crl-btn--outline { border-color: #BDB8B1; color: var(--crl-black); }
.crl-btn--outline:hover { background: var(--crl-black); border-color: var(--crl-black); color: #fff; }

.crl-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.crl-iconbtn {
	display: inline-grid;
	place-items: center;
	width: var(--crl-tap);
	height: var(--crl-tap);
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

/* ---------- Product card (shared) ---------- */
.crl-grid {
	display: grid;
	grid-template-columns: repeat(var(--crl-cols, 2), minmax(0, 1fr));
	gap: var(--crl-gap-y, 28px) var(--crl-gap, 12px);
}

@media (min-width: 768px) {
	.crl-grid { --crl-gap: 18px; --crl-gap-y: 40px; }
}

.crl-card {
	position: relative;
	min-width: 0;
	color: inherit;
}

.crl-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--crl-ratio, 4/5);
	background: var(--crl-media);
}

.crl-card__link { display: block; width: 100%; height: 100%; }

.crl-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0 !important;
	object-fit: cover;
	transition: transform 1s var(--crl-ease-out), opacity .6s var(--crl-ease);
}

.crl-card__img--alt { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
	.crl-card:hover .crl-card__img { transform: scale(1.035); }
	.crl-card.has-alt:hover .crl-card__img--alt { opacity: 1; }
}

.crl-card.is-out .crl-card__img:not(.crl-card__img--alt) { filter: grayscale(.35); opacity: .78; }

.crl-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.crl-badge {
	display: inline-block;
	padding: 5px 8px 4px;
	background: #fff;
	color: var(--crl-black);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.crl-badge--sale { background: var(--crl-black); color: #fff; }
.crl-badge--out { background: rgba(255, 255, 255, .92); color: var(--crl-muted); }

.crl-fav {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: var(--crl-tap);
	height: var(--crl-tap);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--crl-black);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.crl-fav::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .86);
	transition: transform .3s var(--crl-ease), background-color .3s var(--crl-ease);
}

.crl-fav .crl-icon { position: relative; width: 18px; height: 18px; transition: transform .35s var(--crl-ease), fill .2s; }
.crl-fav:hover::before { transform: scale(1.08); background: #fff; }
.crl-fav[aria-pressed="true"] .crl-icon { fill: currentColor; animation: crlPop .4s var(--crl-ease); }

@keyframes crlPop { 50% { transform: scale(1.28); } }

.crl-card__body { padding: 12px 2px 0; }

.crl-card__cat {
	margin: 0 0 4px;
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--crl-muted);
}

.crl-card__title {
	margin: 0 0 6px;
	font-family: var(--crl-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: .02em;
	color: inherit;
}

.crl-card__title a { color: inherit; text-decoration: none; }
.crl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.crl-card__price {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: inherit;
}

.crl-card__price del, .crl-pdp__price del, .crl-buybar__price del { color: var(--crl-muted); font-weight: 400; margin-right: 6px; opacity: .9; }
.crl-card__price ins, .crl-pdp__price ins, .crl-buybar__price ins { text-decoration: none; color: var(--crl-sale); }
.crl-card__price .screen-reader-text, .crl-pdp__price .screen-reader-text { position: absolute !important; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; overflow: hidden; }

.crl-card__colors {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--crl-muted);
}

.crl-dots { display: inline-flex; }
.crl-dot {
	width: 10px;
	height: 10px;
	margin-right: -2px;
	border: 1px solid #fff;
	border-radius: 50%;
	background: var(--crl-dot, #ccc);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.crl-card__more {
	position: relative;
	z-index: 2;
	display: inline-block;
	margin-top: 10px;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

@media (min-width: 768px) {
	.crl-card__title { font-size: 14px; }
	.crl-card__price { font-size: 14px; }
}

.crl-card--skeleton .crl-card__media { animation: crlPulse 1.4s ease-in-out infinite; }
.crl-card--skeleton .crl-card__body span { display: block; height: 10px; margin: 8px 0; background: var(--crl-soft); width: 70%; }
.crl-card--skeleton .crl-card__body span + span { width: 40%; }

@keyframes crlPulse { 50% { opacity: .55; } }

/* ---------- Breadcrumb ---------- */
.crl-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.crl-breadcrumb a { color: inherit; text-decoration: none; }
.crl-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crl-breadcrumb [aria-current] { opacity: .7; }
.crl-breadcrumb--dark { color: var(--crl-muted); opacity: 1; }


/* ---------- Shop page titles (cart, checkout, account, favorites) ---------- */
.crl-shop-headrow{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.crl-shop-headrow--stack{ flex-direction: column; align-items: flex-start; }
.crl-shop-title{ margin: 0; font-family: var(--crl-font-display); font-size: clamp(28px, 6vw, 46px); font-weight: 400; line-height: 1.05; text-transform: uppercase; color: inherit; }

/* ---------- Forms (shared) ---------- */
.crl-input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--crl-border);
	border-radius: var(--crl-radius);
	background: #fff;
	color: var(--crl-black);
	font: inherit;
	font-size: 16px; /* prevents iOS zoom */
	line-height: 1.4;
	transition: border-color .25s;
}

.crl-input:focus { outline: none; border-color: var(--crl-black); }
textarea.crl-input { min-height: 140px; resize: vertical; }

.crl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.crl-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.55;
	cursor: pointer;
}

.crl-consent input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.crl-consent__box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1px solid currentColor;
	border-radius: 1px;
	opacity: .7;
	position: relative;
}
.crl-consent input:checked + .crl-consent__box { opacity: 1; background: currentColor; }
.crl-consent input:checked + .crl-consent__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--crl-check, #fff);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.crl-consent input:focus-visible + .crl-consent__box { outline: 2px solid currentColor; outline-offset: 2px; }
.crl-consent a { color: inherit; text-decoration: underline; }

.crl-form__msg { margin: 10px 0 0; font-size: 13px; min-height: 1em; }
.crl-form__msg:empty { display: none; }
.crl-form__msg.is-error { color: #C0392B; }
.crl-form__msg.is-ok { color: inherit; }
.crl-form.is-sending { opacity: .7; pointer-events: none; }

/* Newsletter form (footer + section) */
.crl-form--newsletter { position: relative; max-width: 460px; }
.crl-form--newsletter .crl-form__row { display: flex; align-items: stretch; border-bottom: 1px solid currentColor; }
.crl-form--newsletter .crl-input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; padding-left: 0; }
.crl-form--newsletter .crl-input::placeholder { color: inherit; opacity: .55; }
.crl-form--newsletter .crl-form__submit { display: inline-flex; align-items: center; gap: 8px; min-width: var(--crl-tap); padding: 0 4px 0 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font: 500 11px/1 var(--crl-font); letter-spacing: .14em; text-transform: uppercase; }
.crl-form--newsletter .crl-form__submit .crl-icon { width: 22px; height: 22px; transition: transform .3s var(--crl-ease); }
.crl-form--newsletter .crl-form__submit:hover .crl-icon { transform: translateX(4px); }
.crl-form--dark { --crl-check: #111; }
.crl-form--light { --crl-check: #fff; }
.crl-form--dark .crl-form__msg.is-error { color: #F2A99E; }

/* ---------- Editor helpers ---------- */
.crl-editor-note {
	margin: 8px 0;
	padding: 10px 14px;
	border-left: 3px solid #3B82C4;
	background: #EEF5FB;
	color: #1F3B57;
	font: 13px/1.5 var(--crl-font);
}
.crl-editor-note--warning { border-color: #D19A2A; background: #FFF7E6; color: #5C4313; }
mark.crl-pending { background: #FFF1B8; color: #5C4313; padding: 0 3px; }

/* ---------- Accordions (product page, FAQ) ---------- */
.crl-acc { border-bottom: 1px solid var(--crl-soft); }
.crl-acc > summary { list-style: none; }
.crl-acc > summary::-webkit-details-marker { display: none; }
.crl-acc__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.crl-acc__title .crl-icon { flex: 0 0 18px; width: 18px; height: 18px; transition: transform .35s var(--crl-ease); }
.crl-acc[open] > .crl-acc__title .crl-icon { transform: rotate(45deg); }
.crl-acc__body { padding: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--crl-brand-gray); }
.crl-acc__body p:first-child { margin-top: 0; }
.crl-acc__body a { color: inherit; }
.crl-acc__body table.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.crl-acc__body .woocommerce-product-attributes th, .crl-acc__body .woocommerce-product-attributes td { padding: 10px 0; border-bottom: 1px solid var(--crl-soft); text-align: left; font-weight: 400; vertical-align: top; }
.crl-acc__body .woocommerce-product-attributes th { width: 40%; color: var(--crl-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.crl-acc__body .woocommerce-product-attributes td p { margin: 0; }
.crl-acc[open] .crl-acc__body { animation: crlFadeDown .35s var(--crl-ease-out); }
@keyframes crlFadeDown { from { opacity: 0; transform: translateY(-6px); } }


/* ---------- Toast ---------- */
.crl-toast {
	position: fixed;
	left: 50%;
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 100000;
	transform: translate(-50%, 20px);
	padding: 12px 18px;
	background: var(--crl-black);
	color: #fff;
	font: 13px/1.4 var(--crl-font);
	letter-spacing: .02em;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s var(--crl-ease), transform .3s var(--crl-ease);
	max-width: calc(100vw - 32px);
}
.crl-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dialog (size guide etc.) ---------- */
.crl-dialog {
	width: min(680px, calc(100vw - 24px));
	max-height: min(84vh, 760px);
	padding: 0;
	border: 0;
	border-radius: var(--crl-radius);
	background: #fff;
	color: var(--crl-black);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.crl-dialog::backdrop { background: rgba(17, 17, 17, .55); }
.crl-dialog[open] { animation: crlDialog .35s var(--crl-ease-out); }
.crl-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--crl-border); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.crl-dialog__body { padding: 22px; overflow: auto; }

@keyframes crlDialog { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Elements are only hidden after JS has confirmed it can reveal them
   (class "crl-pre" is added by core.js right before observing). */
[data-crl-reveal].crl-pre:not([data-crl-stagger]),
[data-crl-reveal][data-crl-stagger].crl-pre [data-crl-item] {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
}

[data-crl-reveal="fade"].crl-pre:not([data-crl-stagger]),
[data-crl-reveal="fade"][data-crl-stagger].crl-pre [data-crl-item] { transform: none; }

[data-crl-reveal="zoom-out"].crl-pre:not([data-crl-stagger]),
[data-crl-reveal="zoom-out"][data-crl-stagger].crl-pre [data-crl-item] { transform: scale(1.035); }

[data-crl-reveal].crl-in:not([data-crl-stagger]),
[data-crl-reveal][data-crl-stagger].crl-in [data-crl-item] {
	transition: opacity var(--crl-dur, 900ms) var(--crl-ease-out), transform var(--crl-dur, 900ms) var(--crl-ease-out);
	transition-delay: calc(var(--crl-i, 0) * 90ms);
}

/* "Revelado de fotografía": the picture is uncovered from the bottom like a
   curtain while it settles from a slight zoom. */
[data-crl-reveal="mask"].crl-pre:not([data-crl-stagger]),
[data-crl-reveal="mask"][data-crl-stagger].crl-pre [data-crl-item] {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 100% 0);
}
[data-crl-reveal="mask"].crl-pre img { transform: scale(1.1); }
[data-crl-reveal="mask"].crl-in:not([data-crl-stagger]),
[data-crl-reveal="mask"][data-crl-stagger].crl-in [data-crl-item] {
	clip-path: inset(0 0 0 0);
	transition: clip-path calc(var(--crl-dur, 900ms) * 1.25) cubic-bezier(.77, 0, .18, 1), opacity var(--crl-dur, 900ms) var(--crl-ease-out);
	transition-delay: calc(var(--crl-i, 0) * 120ms);
}
[data-crl-reveal="mask"].crl-in img:not([data-crl-drift]) { transition: transform calc(var(--crl-dur, 900ms) * 1.8) var(--crl-ease-out); }

/* Slow drift of selected editorial photographs (driven by core.js). */
[data-crl-drift] { will-change: transform; transform: translate3d(0, var(--crl-drift, 0px), 0) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
	[data-crl-reveal].crl-pre:not([data-crl-stagger]),
	[data-crl-reveal][data-crl-stagger].crl-pre [data-crl-item] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	[data-crl-drift] { transform: none !important; }
	.crl-card__img, .crl-btn, .crl-fav .crl-icon { transition: none !important; animation: none !important; }
}

@media print {
	[data-crl-reveal] , [data-crl-reveal] [data-crl-item] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Elementor editor: never hide anything. */
.elementor-editor-active [data-crl-reveal],
.elementor-editor-active [data-crl-reveal] [data-crl-item] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* Body scroll lock when a panel is open. */
.crl-lock, .crl-lock body { overflow: hidden !important; }

/* ==========================================================================
   4.2 — Floating WhatsApp: graphite circle, white glyph, label on hover.
   Moves up when the mobile buy bar is visible; hides while a panel is open.
   ========================================================================== */
.crl-wa {
	position: fixed;
	z-index: 9990;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	height: 54px;
	min-width: 54px;
	padding: 0;
	border-radius: 27px;
	background: #25D366;
	color: #fff !important;
	font-family: var(--crl-font);
	text-decoration: none !important;
	box-shadow: 0 10px 24px -10px rgba(7, 94, 84, .55), 0 2px 6px rgba(0, 0, 0, .12);
	-webkit-tap-highlight-color: transparent;
	animation: crlWaIn .7s var(--crl-ease-out) 1.2s both;
	transition: bottom var(--crl-d3) var(--crl-ease), background-color var(--crl-d2) var(--crl-ease), opacity var(--crl-d2) var(--crl-ease), transform var(--crl-d2) var(--crl-ease);
}
.crl-wa--right { right: max(16px, env(safe-area-inset-right, 0px)); flex-direction: row-reverse; }
.crl-wa--left { left: max(16px, env(safe-area-inset-left, 0px)); }
.crl-wa__icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; }
.crl-wa__glyph { display: block; width: 28px; height: 28px; }
.crl-wa__label {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: 0;
	transition: max-width var(--crl-d3) var(--crl-ease-out), opacity var(--crl-d2) var(--crl-ease), padding var(--crl-d3) var(--crl-ease-out);
}
@media (hover: hover) {
	.crl-wa:hover { background: #1EBE5A; transform: translateY(-2px); }
	.crl-wa:hover .crl-wa__label, .crl-wa:focus-visible .crl-wa__label { max-width: 180px; opacity: 1; }
	.crl-wa--right:hover .crl-wa__label, .crl-wa--right:focus-visible .crl-wa__label { padding-left: 20px; }
	.crl-wa--left:hover .crl-wa__label, .crl-wa--left:focus-visible .crl-wa__label { padding-right: 20px; }
}
.crl-wa:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.crl-wa__label { font-weight: 500; }
.crl-buybar-on .crl-wa { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.crl-lock .crl-wa { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (max-width: 767px) {
	.crl-wa:not(.is-ready) { opacity: 0; pointer-events: none; transform: translateY(12px); }
}
@media (min-width: 1025px) {
	.crl-wa { bottom: 28px; }
	.crl-wa--right { right: 28px; }
	.crl-wa--left { left: 28px; }
}
@keyframes crlWaIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .crl-wa, .crl-wa__label { animation: none; transition: none; } }
@media print { .crl-wa { display: none; } }

/* Inline WhatsApp call to action (widget "Carlo — Botón WhatsApp"). */
.crl-wa-cta .crl-btn { gap: 12px; }
.crl-wa-cta .crl-btn .crl-icon { width: 20px; height: 20px; }
.crl-wa-cta__note { margin: 10px 0 0; color: var(--crl-muted); font-size: 12px; letter-spacing: .02em; }
@media (max-width: 767px) { .crl-wa-cta--full .crl-btn { width: 100%; } }

/* ==========================================================================
   4.4 — Layout architecture
   1. Elementor adds 20 px between widgets (kit "widget spacing"); between Carlo
      full-width sections that showed as white strips. Carlo widgets sit flush.
   2. Global header/footer and Carlo layouts always span the viewport, even when
      a theme wrapper (Blocksy content container, body padding, Elementor
      container padding) is narrower. Breakout is symmetric and subtracts the
      scrollbar, so it never creates horizontal scrolling.
   ========================================================================== */
.elementor-widget[class*="elementor-widget-carlo_"]:not(:last-child) { margin-block-end: 0 !important; }
.elementor-element.elementor-widget[class*="elementor-widget-carlo_"] { --kit-widget-spacing: 0px; }

:is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) :is(.e-con, .e-con-inner) {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--content-width: 100%;
	max-width: none;
}
:is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) .elementor-section > .elementor-container { max-width: none !important; }
:is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) .elementor-column > .elementor-widget-wrap { padding: 0 !important; }

.crl-global-header, .crl-global-footer, .crl-layout-main {
	box-sizing: border-box;
	width: calc(100vw - var(--crl-sbw, 0px));
	max-width: none;
	margin-left: calc(50% - (100vw - var(--crl-sbw, 0px)) / 2);
	margin-right: 0;
}
.crl-home-layout {
	width: calc(100vw - var(--crl-sbw, 0px)) !important;
	max-width: none !important;
	margin-left: calc(50% - (100vw - var(--crl-sbw, 0px)) / 2) !important;
	margin-right: 0 !important;
}
/* A fixed/absolute (overlay) header is positioned against the viewport. */
.crl-global-header:has(.crl-header--overlay),
.crl-global-header.crl-gh-overlay { width: auto; margin-left: 0; }

/* 4.5 — Carlo — Datos de la empresa */
.crl-co__title { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.crl-co__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crl-co--inline .crl-co__list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
@media (min-width: 768px) { .crl-co--grid .crl-co__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.crl-co__item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.crl-co__item .crl-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.crl-co__item a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.crl-co__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crl-co__label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ==========================================================================
   4.5 — Full width without hiding overflow.
   Cause of the white side bands: the theme (Blocksy "boxed" content area,
   Hello's .site-main max-width, Gutenberg "constrained" layout) wraps the
   Elementor document in a centred box with its own padding/max-width.
   Fix: on pages built with Carlo widgets, the Elementor document itself
   spans the viewport and the theme's vertical spacing is removed. Section
   content keeps its own max width (.crl-container); only backgrounds bleed.
   ========================================================================== */
body.crl-fullbleed .elementor[data-elementor-type="wp-page"],
body.crl-fullbleed .elementor[data-elementor-type="wp-post"] {
	box-sizing: border-box;
	width: calc(100vw - var(--crl-sbw, 0px));
	max-width: none;
	margin-left: calc(50% - (100vw - var(--crl-sbw, 0px)) / 2);
	margin-right: 0;
}
body.crl-fullbleed :is(.entry-content, .page-content, .ct-container, .ct-container-full, .site-main, article) { max-width: none; }
body.crl-fullbleed :is(.entry-content, .page-content, article) { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
body.crl-fullbleed [data-vertical-spacing] { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Header and footer printed directly in <body> need no breakout at all (no 100vw, no scrollbar maths). */
body > .crl-global-header,
body > .crl-global-footer { width: auto; max-width: none; margin-left: 0; margin-right: 0; }

/* 4.5.1 — Elementor Canvas pages load no theme CSS, so the browser's default
   8px body margin showed as white bands around the full-width sections. */
body.crl-site { margin: 0; }
/* 4.5.3 — full-width layout template: the layout is a direct child of <body>. */
body.crl-layout-full .crl-layout-main { width: auto; max-width: none; margin: 0; }

/* 4.5.5 — Blocksy limits every Elementor section to its content width on
   pages that are not "Elementor Canvas" (.ct-elementor-default-template
   .elementor-top-section{max-width:var(--theme-normal-container-max-width)}).
   That is why only the home page (Canvas) reached the screen edges.
   Carlo header, footer, layouts and pages built with Carlo widgets are full width;
   their content keeps its own max width inside (.crl-container). */
body.crl-site :is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) .elementor-top-section,
body.crl-fullbleed .elementor[data-elementor-type="wp-page"] > .elementor-top-section,
body.crl-fullbleed .elementor[data-elementor-type="wp-page"] > .elementor-section {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.crl-site :is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) .e-con,
body.crl-fullbleed .elementor[data-elementor-type="wp-page"] > .e-con { --container-max-width: none; max-width: none; }
body.crl-site :is(.crl-global-header, .crl-global-footer, .crl-layout-main, .crl-home-layout) .e-con > .e-con-inner,
body.crl-fullbleed .elementor[data-elementor-type="wp-page"] > .e-con > .e-con-inner { width: 100%; max-width: none; }
