/* Colansa Links — página "link in bio" con la identidad visual de Colansa.
   Colores: Ajustes > CSS variables. Fuentes: Montserrat (títulos y botones) y Roboto (texto), incluidas en el plugin. */

@font-face {
	font-family: "Colansa Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Colansa Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/montserrat-latin-ext-600-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Colansa Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Colansa Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/montserrat-latin-ext-700-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Colansa Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Colansa Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/roboto-latin-ext-400-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Paleta Colansa (sitio colansa.org) */
	--cl-bg: #006954;          /* verde oscuro */
	--cl-button: #ffffff;
	--cl-button-text: #006954;
	--cl-text: #ffffff;
	--cl-accent: #00c29c;      /* verde agua */
	--cl-highlight: #f0ad0a;   /* amarillo */
	--cl-leaf-1: #00c29c;
	--cl-leaf-2: #f0ad0a;
	--cl-leaf-3: #ea8974;      /* coral */
	--cl-leaf-4: #3fa1e2;      /* azul */
	--cl-deep: #003d31;
	--cl-font-title: "Colansa Montserrat", Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cl-font-text: "Colansa Roboto", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cl-pattern: none;
}

html,
html body.cl-links-body {
	margin: 0;
	padding: 0;
	background: var(--cl-bg) !important;
}

html body.cl-links-body {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--cl-text);
	font-family: var(--cl-font-text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

/* Patrón de hojas en línea, como en las secciones verdes del sitio */
body.cl-links-body.has-pattern::before,
body.cl-links-body.has-pattern::after {
	content: "";
	position: fixed;
	z-index: 0;
	width: 270px;
	height: 760px;
	background: var(--cl-pattern) no-repeat left top / contain;
	pointer-events: none;
	opacity: .5;
}

body.cl-links-body.has-pattern::before {
	left: -180px;
	top: -40px;
}

body.cl-links-body.has-pattern::after {
	right: -180px;
	bottom: -120px;
	transform: scale(-1, -1);
}

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

.cl-page {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.cl-page a {
	color: inherit;
	text-decoration: none;
}

.cl-page :focus-visible {
	outline: 3px solid var(--cl-highlight);
	outline-offset: 3px;
}

/* Barra superior: logo sobre blanco, como el encabezado del sitio ------ */

.cl-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
}

.cl-top__logo,
.cl-top__share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 40, 32, .25);
}

.cl-top__logo {
	padding: 0 20px;
	max-width: 70%;
}

.cl-top__logo img {
	display: block;
	height: 30px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain;
}

.cl-top__name {
	font-family: var(--cl-font-title);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cl-bg);
}

.cl-top__share {
	width: 50px;
	padding: 0;
	border: 0;
	color: var(--cl-bg);
	cursor: pointer;
	font: inherit;
	transition: background-color .15s ease, color .15s ease;
}

.cl-top__share:hover {
	background: var(--cl-highlight);
	color: var(--cl-deep);
}

.cl-top__share .cl-icon {
	width: 22px;
	height: 22px;
}

/* Perfil ------------------------------------------------------------- */

.cl-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 30px;
}

.cl-profile__photo {
	position: relative;
	width: 124px;
	height: 124px;
	padding: 5px;
	margin-bottom: 20px;
	border: 3px solid var(--cl-accent);
	border-radius: 50%;
	flex: none;
}

.cl-profile__photo img,
.cl-profile__initials {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	border-radius: 50%;
	object-fit: cover;
}

.cl-profile__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-accent);
	color: var(--cl-deep);
	font-family: var(--cl-font-title);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: .02em;
}

.cl-page .cl-profile__name {
	margin: 0;
	padding: 0;
	font-family: var(--cl-font-title);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--cl-text);
}

.cl-profile__rule {
	display: block;
	width: 36px;
	height: 3px;
	margin: 12px auto;
	border-radius: 3px;
	background: var(--cl-highlight);
}

.cl-page .cl-profile__bio {
	margin: 0;
	max-width: 30em;
	font-family: var(--cl-font-text);
	font-size: 16px;
	line-height: 1.5;
	color: var(--cl-text);
	opacity: .9;
	text-wrap: balance;
}

/* Redes -------------------------------------------------------------- */

.cl-page .cl-redes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.cl-redes li {
	margin: 0;
	padding: 0;
}

.cl-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1.5px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	color: var(--cl-text);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cl-redes a:hover {
	background: var(--cl-accent);
	border-color: var(--cl-accent);
	color: var(--cl-deep);
}

.cl-redes .cl-icon {
	width: 23px;
	height: 23px;
}

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

.cl-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cl-page .cl-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 12px 28px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--cl-button);
	color: var(--cl-button-text);
	font-family: var(--cl-font-title);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	box-shadow: 0 6px 18px rgba(0, 40, 32, .22);
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

/* Franja de color a la izquierda: los colores de las hojas del logo */
.cl-page .cl-btn::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--cl-leaf-1);
}

.cl-links .cl-btn:nth-child(4n+2)::before { background: var(--cl-leaf-2); }
.cl-links .cl-btn:nth-child(4n+3)::before { background: var(--cl-leaf-3); }
.cl-links .cl-btn:nth-child(4n+4)::before { background: var(--cl-leaf-4); }

.cl-page .cl-btn.has-thumb {
	padding-left: 76px;
	padding-right: 76px;
}

.cl-btn:hover {
	transform: translateY(-2px);
	background: var(--cl-highlight);
	color: var(--cl-deep);
}

.cl-btn:active {
	transform: translateY(0);
}

.cl-btn__thumb {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--cl-bg);
}

.cl-btn__thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

.cl-btn__label {
	text-wrap: balance;
}

/* Página protegida con contraseña ------------------------------------ */

.cl-profile--locked form {
	margin-top: 16px;
}

.cl-profile--locked input[type="password"] {
	padding: 10px 14px;
	border: 0;
	border-radius: 8px;
	font: inherit;
}

.cl-profile--locked input[type="submit"] {
	margin-top: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--cl-highlight);
	color: var(--cl-deep);
	font-family: var(--cl-font-title);
	font-weight: 700;
	cursor: pointer;
}

/* Pie y aviso -------------------------------------------------------- */

.cl-footer {
	margin-top: auto;
	padding-top: 40px;
	text-align: center;
	font-family: var(--cl-font-title);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
}

.cl-footer a:hover {
	color: var(--cl-highlight);
}

.cl-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 100;
	transform: translate(-50%, 12px);
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--cl-highlight);
	color: var(--cl-deep);
	font-family: var(--cl-font-title);
	font-size: 14px;
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.cl-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (min-width: 700px) {
	.cl-page {
		padding-top: 32px;
	}
	body.cl-links-body.has-pattern::before,
	body.cl-links-body.has-pattern::after {
		width: 330px;
		height: 930px;
	}
	body.cl-links-body.has-pattern::before {
		left: -40px;
	}
	body.cl-links-body.has-pattern::after {
		right: -40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-btn,
	.cl-toast,
	.cl-redes a,
	.cl-top__share {
		transition: none;
	}
	.cl-btn:hover,
	.cl-btn:active {
		transform: none;
	}
}
