/*
 * The Calmo Club · CSS global
 * Tokens y componentes sacados de Figma ("Calmo - Website", página Shop).
 * Para cambiar un color, una tipografía o un espaciado de toda la web, cambia la variable.
 */

/* ---------- Tipografías ---------- */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* Cabinet Grotesk: el mismo archivo variable que usa calmo.es
   (dt-the7-child/fonts/CabinetGrotesk-Variable.woff2). Un solo archivo cubre todos los pesos. */
@font-face {
	font-family: "Cabinet Grotesk";
	src: url("../fonts/CabinetGrotesk-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Moret (módulo de campaña): calmo.es no la tiene en archivos, la sirve Adobe Fonts
   (kit kgr1uog, familia "moret-variable"). Las fuentes de Adobe Fonts no se pueden
   autoalojar. functions.php carga ese kit en la ficha de producto; las fuentes solo se
   sirven cuando thecalmoclub.com está añadido como dominio del proyecto web en Adobe Fonts.
   Mientras no lo esté, la campaña usa la fuente de respaldo (Georgia). */

/* ---------- Tokens ---------- */

:root {
	--tcc-black: #111111;
	--tcc-ink: #211915;
	--tcc-white: #ffffff;
	--tcc-grey-700: #495057;
	--tcc-grey-600: #6c757d;
	--tcc-grey-500: #adb5bd;
	--tcc-grey-400: #ced4da;
	--tcc-grey-300: #dee2e6;
	--tcc-grey-200: #e9ecef;
	--tcc-grey-100: #f8f9fa;
	--tcc-cream: #efece6;
	--tcc-maroon: #542336;
	--tcc-pink: #ecb1c7;

	--tcc-font-title: "Cabinet Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
	--tcc-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tcc-font-campaign: "moret-variable", "Moret", Georgia, "Times New Roman", serif;

	--tcc-fs-hero: 56px;
	--tcc-fs-h2: 40px;
	--tcc-fs-h3: 24px;
	--tcc-fs-m: 18px;
	--tcc-fs-s: 16px;
	--tcc-fs-xs: 12px;

	--tcc-container: 1200px;
	--tcc-pad: 40px;
	--tcc-space-top: 240px;
	--tcc-section: 150px;
	--tcc-row: 180px;

	--tcc-radius-sm: 8px;
	--tcc-radius-md: 12px;
	--tcc-radius-lg: 16px;
	--tcc-radius-pill: 100px;
}

@media (max-width: 1024px) {
	:root {
		--tcc-fs-hero: 44px;
		--tcc-fs-h2: 32px;
		--tcc-pad: 32px;
		--tcc-space-top: 180px;
		--tcc-section: 100px;
		--tcc-row: 120px;
	}
}

@media (max-width: 767px) {
	:root {
		--tcc-fs-hero: 36px;
		--tcc-fs-h2: 28px;
		--tcc-fs-h3: 20px;
		--tcc-fs-m: 16px;
		--tcc-pad: 20px;
		--tcc-space-top: 130px;
		--tcc-section: 72px;
		--tcc-row: 96px;
	}
}

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

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

body {
	margin: 0;
	background: var(--tcc-white);
	color: var(--tcc-black);
	font-family: var(--tcc-font-body);
	font-size: var(--tcc-fs-m);
	font-weight: 400;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:active {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--tcc-black);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--tcc-black);
	font-family: var(--tcc-font-title);
	font-weight: 500;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
}

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

/* Hello Elementor pinta los botones en rosa: lo neutralizamos. */
[type="button"],
[type="reset"],
[type="submit"],
button {
	border-color: currentColor;
	color: inherit;
	font-family: inherit;
}

[type="button"]:hover,
[type="button"]:focus,
[type="submit"]:hover,
[type="submit"]:focus,
button:hover,
button:focus {
	background-color: transparent;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	border: 1px solid var(--tcc-grey-400);
	border-radius: var(--tcc-radius-sm);
	padding: 12px 20px;
	color: var(--tcc-black);
	font-family: var(--tcc-font-body);
	font-size: var(--tcc-fs-m);
	line-height: 1.4;
	background: var(--tcc-white);
}

::placeholder {
	color: var(--tcc-grey-600);
	opacity: 1;
}

.tcc-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	padding: 0 !important;
	margin: -1px !important;
}

/* ---------- Estructura ---------- */

.tcc-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tcc-container) + 2 * var(--tcc-pad));
	margin-inline: auto;
	padding-inline: var(--tcc-pad);
}

.tcc-main {
	display: block;
	padding: var(--tcc-space-top) 0 var(--tcc-section);
}

/* Páginas normales de WordPress (carrito, checkout, mi cuenta). */
body:not(.elementor-page) .site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tcc-container) + 2 * var(--tcc-pad));
	margin-inline: auto;
	padding: var(--tcc-space-top) var(--tcc-pad) var(--tcc-section);
}

.site-main .page-header {
	margin: 0 0 40px;
	padding: 0;
}

.site-main .page-header .entry-title {
	font-size: var(--tcc-fs-h2);
	max-width: none;
}

/* ---------- Tipografía (estilos de texto de Figma) ---------- */

/* Titles/Pre-Title */
.tcc-pretitle {
	margin: 0 0 16px;
	color: var(--tcc-grey-600);
	font-family: var(--tcc-font-title);
	font-size: var(--tcc-fs-m);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Titles/Hero title - Small */
.tcc-h1 {
	font-size: var(--tcc-fs-hero);
	line-height: 1.2;
}

/* Titles/Heading 2 - Compact */
.tcc-h2 {
	font-size: var(--tcc-fs-h2);
	line-height: 1.2;
}

/* Medium/XL */
.tcc-h3 {
	font-family: var(--tcc-font-body);
	font-size: var(--tcc-fs-h3);
	font-weight: 500;
	line-height: 1.4;
}

/* ---------- Botones (Level 1 y Outlined) ---------- */

.tcc-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 32px;
	border: 1px solid var(--tcc-black);
	border-radius: var(--tcc-radius-pill);
	background: transparent;
	color: var(--tcc-black);
	font-family: var(--tcc-font-body);
	font-size: var(--tcc-fs-s);
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.tcc-btn--sm {
	padding: 10px 24px;
	line-height: 1;
}

.tcc-btn--dark,
.tcc-btn--dark:focus {
	background: var(--tcc-black);
	color: var(--tcc-white);
}

.tcc-btn--dark:hover {
	background: #333333;
	border-color: #333333;
	color: var(--tcc-white);
}

.tcc-btn--outline:hover,
.tcc-btn--outline:focus-visible {
	background: var(--tcc-black);
	color: var(--tcc-white);
}

.tcc-btn--outline-light {
	padding: 20px 32px;
	border-color: var(--tcc-white);
	color: var(--tcc-white);
	line-height: 1;
}

.tcc-btn--outline-light:hover,
.tcc-footer a.tcc-btn--outline-light:hover,
.tcc-footer a.tcc-btn--outline-light:focus-visible {
	background: var(--tcc-white);
	color: var(--tcc-black);
}

.tcc-btn:disabled,
.tcc-btn[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---------- Fondo degradado (como en las páginas de servicios de calmo.es) ----------
   Se pinta detrás de la parte alta de cada página, para que la cabecera
   translúcida tenga algo que dejar ver. Imagen: la misma de calmo.es en WebP. */

body {
	position: relative;
}

body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	height: 1000px;
	background: url("../img/bg-degradado.webp") center top / cover no-repeat;
	pointer-events: none;
}

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

.tcc-header {
	position: fixed;
	top: 16px;
	left: 0;
	right: 0;
	z-index: 100;
	padding-inline: var(--tcc-pad);
	pointer-events: none;
}

/* Barra de administración de WordPress (solo con sesión iniciada). */
body.admin-bar .tcc-header {
	top: calc(16px + 32px);
}

@media (max-width: 782px) {
	body.admin-bar .tcc-header {
		top: calc(16px + 46px);
	}
}

@media (max-width: 600px) {
	body.admin-bar .tcc-header {
		top: 16px;
	}
}

.tcc-header__bar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--tcc-container) + 72px);
	margin: 0 auto;
	min-height: 80px;
	padding: 18px 36px;
	border-radius: 100px;
	/* Como la cabecera de calmo.es: blanco translúcido con desenfoque de 18 px. */
	background: rgba(255, 255, 255, 0.75);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transition: background-color 0.35s ease;
	pointer-events: auto;
}

.tcc-header__logo {
	display: inline-flex;
	color: var(--tcc-black);
}

.tcc-header__logo svg {
	display: block;
	width: 237px;
	height: auto;
}

.tcc-header__nav {
	display: flex;
	align-items: center;
	gap: 44px;
}

.tcc-menu {
	display: flex;
	gap: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-menu a {
	font-size: var(--tcc-fs-m);
	line-height: 1.4;
}

.tcc-menu a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tcc-cart-link svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 767px) {
	.tcc-header__bar {
		min-height: 64px;
		padding: 12px 16px 12px 20px;
	}

	.tcc-header__logo svg {
		width: 160px;
	}

	.tcc-header__nav,
	.tcc-menu {
		gap: 16px;
	}

	.tcc-menu li + li {
		display: none;
	}

	.tcc-menu a {
		font-size: 15px;
	}

	.tcc-cart-link {
		padding: 9px 14px;
		font-size: 14px;
	}
}

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

.tcc-footer {
	padding: 100px 0 48px;
	background: var(--tcc-black);
	color: var(--tcc-white);
}

.tcc-footer a,
.tcc-footer a:hover {
	color: var(--tcc-white);
}

.tcc-footer p {
	margin: 0;
}

.tcc-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	margin-bottom: 150px;
}

.tcc-footer__title {
	margin-bottom: 28px !important;
	font-family: var(--tcc-font-title);
	font-size: var(--tcc-fs-h2);
	font-weight: 500;
	line-height: 1.2;
}

.tcc-footer__offices {
	display: flex;
	gap: 44px;
	margin-top: 29px;
	font-size: var(--tcc-fs-xs);
	font-weight: 500;
	line-height: 1.4;
}

.tcc-footer__cols {
	display: flex;
	gap: 80px;
}

.tcc-footer__coltitle {
	margin-bottom: 32px !important;
	font-family: var(--tcc-font-title);
	font-size: var(--tcc-fs-h3);
	font-weight: 500;
	line-height: 1.2;
}

.tcc-footer__links {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--tcc-fs-m);
}

.tcc-footer__links a,
.tcc-footer__legal a,
.tcc-footer__mail {
	transition: opacity 0.2s ease;
}

.tcc-footer__links a:hover,
.tcc-footer__legal a:hover,
.tcc-footer__mail:hover {
	opacity: 0.6;
	text-decoration: none;
}

.tcc-footer__mid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.tcc-footer__mail {
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.8);
	font-size: var(--tcc-fs-s);
}

.tcc-social {
	display: flex;
	align-items: center;
	gap: 27px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-social a {
	display: block;
	transition: opacity 0.2s ease;
}

.tcc-social a:hover {
	opacity: 0.7;
}

.tcc-social svg {
	display: block;
	width: auto;
	height: 24px;
}

.tcc-social li:nth-child(3) svg {
	height: 34px;
	margin: -5px -5px;
}

.tcc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 24px;
	font-size: var(--tcc-fs-xs);
}

.tcc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 50px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.tcc-footer__top {
		flex-direction: column;
		margin-bottom: 80px;
	}
}

@media (max-width: 767px) {
	.tcc-footer {
		padding: 72px 0 40px;
	}

	.tcc-footer__cols {
		gap: 48px;
	}

	.tcc-footer__mid {
		flex-direction: column;
		align-items: flex-start;
	}

	.tcc-footer__bottom,
	.tcc-footer__legal {
		flex-direction: column;
	}
}

/* ---------- Plantilla legal ---------- */

.tcc-legal__grid {
	display: grid;
	grid-template-columns: 330px minmax(0, 1fr);
	gap: 80px;
	align-items: start;
}

.tcc-legal__menu {
	position: sticky;
	top: 40px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--tcc-fs-xs);
	color: var(--tcc-grey-600);
}

.tcc-legal__menu .current-menu-item a {
	color: var(--tcc-black);
	font-size: var(--tcc-fs-m);
	font-weight: 500;
}

.tcc-legal__menu a:hover {
	color: var(--tcc-black);
}

.tcc-legal__content .tcc-h2 {
	margin-bottom: 12px;
}

.tcc-legal__date {
	margin: 0 0 56px;
	color: var(--tcc-grey-600);
	font-size: var(--tcc-fs-xs);
}

.tcc-legal__body {
	color: var(--tcc-grey-700);
}

.tcc-legal__body h2,
.tcc-legal__body h3 {
	margin: 56px 0 16px;
	font-family: var(--tcc-font-body);
	font-size: var(--tcc-fs-h3);
	font-weight: 500;
	line-height: 1.4;
}

.tcc-legal__body > :first-child {
	margin-top: 0;
}

.tcc-legal__body a {
	text-decoration: underline;
}

.tcc-legal__body ul,
.tcc-legal__body ol {
	margin: 0 0 16px;
	padding-left: 1.25em;
}

.tcc-legal__body li + li {
	margin-top: 8px;
}

.tcc-legal__body .wp-block-table {
	margin: 24px 0;
	overflow-x: auto;
}

.tcc-legal__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tcc-fs-s);
}

.tcc-legal__body th,
.tcc-legal__body td {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--tcc-grey-300);
	text-align: left;
	vertical-align: top;
}

.tcc-legal__body th {
	color: var(--tcc-black);
	font-weight: 500;
}

.tcc-legal__body .wp-block-quote {
	margin: 24px 0;
	padding: 24px;
	border-left: 2px solid var(--tcc-black);
	background: var(--tcc-grey-100);
}

.tcc-legal__body .wp-block-quote p {
	margin: 0 0 8px;
}

@media (max-width: 1024px) {
	.tcc-legal__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.tcc-legal__menu {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 12px 24px;
	}
}

/* ---------- Banner de cookies (Complianz) con los estilos de la tienda ---------- */

.cmplz-cookiebanner,
#cmplz-manage-consent .cmplz-manage-consent {
	--cmplz_banner_background_color: var(--tcc-white);
	--cmplz_banner_border_color: var(--tcc-grey-300);
	--cmplz_text_color: var(--tcc-black);
	--cmplz_hyperlink_color: var(--tcc-black);
	--cmplz_button_accept_background_color: var(--tcc-black);
	--cmplz_button_accept_border_color: var(--tcc-black);
	--cmplz_button_accept_text_color: var(--tcc-white);
	--cmplz_button_deny_background_color: var(--tcc-white);
	--cmplz_button_deny_border_color: var(--tcc-black);
	--cmplz_button_deny_text_color: var(--tcc-black);
	--cmplz_button_settings_background_color: var(--tcc-white);
	--cmplz_button_settings_border_color: var(--tcc-black);
	--cmplz_button_settings_text_color: var(--tcc-black);
	--cmplz_slider_active_color: var(--tcc-black);
	--cmplz_button_border_radius: 100px;
	--cmplz_banner_border_radius: 16px;
	font-family: var(--tcc-font-body) !important;
}

.cmplz-cookiebanner .cmplz-btn {
	border-radius: 100px !important;
	font-family: var(--tcc-font-body) !important;
	font-weight: 500 !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
	border-color: var(--tcc-black) !important;
	background: var(--tcc-black) !important;
	color: var(--tcc-white) !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
	border: 1px solid var(--tcc-black) !important;
	background: var(--tcc-white) !important;
	color: var(--tcc-black) !important;
}

.cmplz-cookiebanner .cmplz-links a,
.cmplz-cookiebanner .cmplz-link {
	color: var(--tcc-black) !important;
}

#cmplz-manage-consent .cmplz-manage-consent {
	border-color: var(--tcc-black) !important;
	background: var(--tcc-black) !important;
	color: var(--tcc-white) !important;
	font-family: var(--tcc-font-body) !important;
}
