:root {
	--color-background: #FFFFFF;
	--color-text: #000000;
	--color-background-light: #F7F7F7;
	--color-background-grey: #DFE0E1;
	--color-text-grey: #5A5959;
	--color-accent: #D1123C;
	--color-text-background-accent: #FFFFFF; /* Color del texto cuando el background es var(--color-accent) */
	--color-error: #EACCCC;
	--color-input-text: var(--color-text);
	--color-input-background: var(--color-background);
	--color-input-placeholder: var(--color-text-grey);

	--font-bold: 700;

	--padding-inline: 2.563rem;
	--padding-block: 6.188rem;
	--padding-block-small: 4.125rem;
	--padding-slide: 4rem;
	--padding-elmenets: 1.25rem;

	--size-checkbox: 1rem;
	--size-buttons: 3.75rem;
	--size-bullets: 0.75rem;

	--border-size: 0.1rem;
	--border-radius-input: 0.2rem;
}

/** Base **/
*, *::before, *::after {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
html, body {
	height: 100%;
	width: 100%;
	min-width: 22.5rem;
}
body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.2em;

	color: var(--color-bodyTx);
	background: var(--color-body);
}
img {
	display: block;
	max-width: 100%;
	height: auto;

	&:not(li):not(:last-child) {
		margin-bottom: 1.5rem;
	}
}
/** END Base **/

/** Text **/
a {
	color: currentColor;
	text-decoration: underline;

	opacity: 1;
	transition: 0.1s opacity linear;

	&:hover {
		opacity: 0.8;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1em;
	line-height: 1.2em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 1.5rem;
	}
}

p, ul {
	font-size: 0.875rem;
	line-height: 1.2em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 1.5rem;
	}
}
ul {
	padding-left: 2em;

	& li:not(:last-child) {
		margin-bottom: 1.3rem;
	}
}
label {
	font-size: 0.875rem;
	line-height: 1.2em;
	font-weight: 400;
}

b,
strong {
	font-weight: var(--font-bold);
}

small,
.text-small {
	font-size: 0.688rem;
	line-height: 1.2em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 1.188rem;
	}
}

.title1 {
	font-size: 3rem;
	line-height: 1.2em;
	font-weight: 400;

	& b:first-child:last-child {
		display: block;
		line-height: 1em;
	}
}

.title2 {
	font-size: 2.313rem;
	line-height: 1.2em;
	font-weight: 400;
}

.title3 {
	font-size: 1.813rem;
	line-height: 1.2em;
	font-weight: 400;
}

.title4 {
	font-size: 1.438rem;
	line-height: 1.2em;
	font-weight: 400;
}

.title5 {
	font-size: 1.125rem;
	line-height: 1.4em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 0.5rem;
	}
}

.title6 {
	font-size: 1rem;
	line-height: 1.4em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 0.5rem;
	}
}
/** END Text **/

/** Inputs **/
input,
select {
	color: var(--color-input-text);
	background-color: var(--color-input-background);
	border: var(--border-size) solid var(--color-input-border);
    border-radius: var(--border-radius-input);

	display: block;
    height: 3em;
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0 calc(0rem + var(--padding-elmenets)/2);
	line-height: 3em;
}
select {
	cursor: pointer;
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

	padding-right: calc(1em + 1rem);
    background-image: url('./img/ico-angle-down.svg');
	background-repeat:  no-repeat;
	background-position: calc(100% - 0.5rem) center;
	background-size: 1em;

	& option {
        color: var(--color-input-text);
		
		&:checked {
			font-weight: var(--font-bold);
		}
    }

	& option[value=""],
	&:has( option[value=""]:checked) {
		color: var(--color-input-placeholder);
	}
}
label:has( input[type="checkbox"]),
label:has( input[type="radio"]) {
	position: relative;
	cursor: pointer;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0.5rem;

	& input {
		position: absolute;
		z-index: -1;
		opacity: 0;

		box-sizing: border-box;
		padding: 0;
		margin: 0;
		overflow: visible;
	}

	&::before,
	&::after {
		content: '';
		pointer-events: none;

		display: block;
		width: var(--size-checkbox);
		height: var(--size-checkbox);

		color: var(--color-input-text);
		background-color: var(--color-input-background);
		border: var(--border-size) solid var(--color-input-border);
		border-radius: var(--border-radius-input);
	}
	
	&:has( input[type="radio"])::before,
	&:has( input[type="radio"])::after {
		border-radius: 50%;
	}
	&:has( input[type="radio"])::after {
		position: absolute;
		top: 0.063rem;
		left: 0.063rem;

		width: calc(var(--size-checkbox) - 0.125rem);
		height: calc(var(--size-checkbox) - 0.125rem);

		opacity: 0;
		color: var(--color-input-background);
		background-color: var(--color-input-text);
		border: none;
	}

	&:has( input[type="checkbox"])::after {
		position: absolute;
		top: 0;
		left: 0;

		background-image: url('./img/ico-check.svg');
		background-repeat: no-repeat;
		background-position: center center;
		background-size: contain;
	}

	&:has( input[type="checkbox"]:checked)::before,
	&:has( input:not(:checked))::after {
		opacity: 0;
	}

	&:has( input:checked)::after {
		opacity: 1;
	}

	&:hover::before,
	&:hover::after,
	&:focus::before,
	&:focus::after,
	&:has( input:focus)::before,
	&:has( input:focus)::after {
		outline-color: currentColor;
		outline-style: solid;
		outline-width: var(--border-size);
		outline-offset: calc(0rem - var(--border-size));
	}
}
.error-message {
	display: none;
	font-size: 0.688rem;
	line-height: 1.2em;
	font-weight: 400;

	&:not(li):not(:last-child) {
		margin-bottom: 0;
	}

	&:focus,
	&:focus-visible {
		outline-color: currentColor;
		outline-style: solid;
		outline-width: 0.03rem;
		outline-offset: 0.1rem;
	}
}
.ml-error .error-message {
	display: inline-block;
}
/** END Inputs **/

/** Buttons **/
button, input[type="button"], input[type="submit"], .button {
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.8em;
	width: fit-content;
	margin: 0;
	padding: 1rem 1.688rem;
	
	background: var(--color-text);
	color: var(--color-background);
	border: none;
	border-radius: 2rem;
	
	font-size: 1rem;
	line-height: 1.2em;
	font-weight: 400;
	text-decoration: none;
	
	&:hover,
	&:focus {
		opacity: 1;
		outline-color: currentColor;
		outline-style: solid;
		outline-width: 0.13rem;
		outline-offset: -0.25rem;
	}

	&:disabled,
	&.disabled {
		opacity: 0.2;
	}

	&:not(li):not(:last-child) {
		margin-bottom: 1.688rem;
	}
}
/** END Buttons **/

/** Mailer Lite Forms **/
.ml-form-embedBody,
.ml-form-embedContent,
.ml-block-form,
.ml-form-formContent,
.ml-field-group,
.ml-form-embedSubmit {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
    align-items: stretch;
	gap: var(--padding-elmenets);
}
.ml-form-embedContent,
.ml-form-embedSubmit {
	gap: 0.5rem;

	&.ml-form-embedContent > *:not(:last-child) {
		margin-bottom: 0;
	}

	& button {
		width: 100%;
		max-width: 100%;

		&[type="submit"]:has( + .loading) {
			margin-bottom: 0;
		}
	}
}
.ml-field-group {
	gap: 0.3rem;
}
.ml-form-embedContent,
.ml-block-form {
	width: 100%;
	max-width: 24rem;
	margin: 0 auto;
}
/** END Mailer Lite Forms **/

/** Tags **/
.tag {
	display: flex;
	justify-content: flex-start;
	align-items: center;

	width: fit-content;
	margin: 0;
	padding: calc(0rem + var(--padding-elmenets)/2) var(--padding-elmenets);
	
	background: transparent;
	color: var(--color-accent);
	border: var(--border-size) solid var(--color-accent);
	border-radius: 2rem;
	
	font-size: 1.438rem;
	line-height: 1.2em;
	font-weight: 400;

	&:first-child {
		margin-top: calc(0rem - var(--padding-elmenets)/2);
	}

	&::before {
		content: '';
		display: inline-block;
		vertical-align: middle;
		width: 1rem;
		height: 1rem;
		margin: 0 0.625rem 0 0;
		background-color: currentColor;
		border-radius: 50%;
	}

	&:not(li):not(:last-child) {
		margin-bottom: 1.688rem;
	}
}
/** END Tags **/

/** Special Lists **/
.list-icons {
	list-style: none;
	padding-left: 0;

	& li i {
		display: inline-block;
		vertical-align: middle;
		color: var(--color-accent);
	}
}
/** END Special Lists **/

/** Sliders **/
.slider {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: var(--padding-block-small);

	& .slider-controls {
		display: flex;
		justify-content: center;
		align-items: center;

		.slider-control {
			position: absolute;
			z-index: 2;
			top: calc(50% - calc(var(--size-bullets)*2 + var(--size-buttons)/2));

			display: flex;
			justify-content: center;
			align-items: center;
			width: var(--size-buttons);
			height: var(--size-buttons);
			padding: 0;
			border: none;
			border-radius: 50%;

			font-size: calc(var(--size-buttons) - 2rem);
			line-height: 1em;
			background-color: transparent;
			color: currentColor;

			&:not(li):not(:last-child) {
				margin-bottom: 0;
			}

			&.slider-control-auto {
				position: relative;
				
			}

			&.slider-control-prev {
				left: calc(0rem + var(--padding-slide)/2);
			}

			&.slider-control-next {
				right: calc(0rem + var(--padding-slide)/2);
			}
		}
	}

	& .slider-slides {
		list-style: none;
		
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 0;

		overflow: auto;
		scroll-snap-type: x mandatory;
		width: 100%;
		margin: 0 auto;
		padding: 0;

		background-color: var(--color-background-grey);
		border-radius: 6.438rem;

		& .slider-slide {
			scroll-snap-align: center;
			flex: 0 0 auto;
			display: flex;
			justify-content: center;
			align-items: center;

			width: 100%;
			margin: 0;
			padding: var(--padding-slide) calc(var(--padding-slide) + var(--size-buttons));

			& .slide-content {
				max-width: 48rem;
				margin: auto;
				text-align: center;
			}

			&:first-child {
				margin-left: 0%;
				transition: margin-left 0.5s ease-in-out
			}
		}
	}

	& .slider-pagination {
		list-style: none;
		padding-left: 0;

		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: stretch;
		gap: var(--size-bullets);

		& li:not(:last-child) {
			margin-bottom: 0;
		}

		& .slider-pagination-slide {
			overflow: hidden;
			width: var(--size-bullets);
			height: var(--size-bullets);
			padding: 0;
			background: none;
			color: var(--color-text);
			border: var(--border-size) solid var(--color-text);
			border-radius: 50%;

			font-size: 0;
			text-indent: -9999px;

			&.current {
				background-color: var(--color-text);
				color: var(--color-background);
			}
		}
	}

	&:not(.loaded) .slider-controls,
	&:not(.loaded) .slider-pagination {
		display: none;
	}
	&.loaded .slider-slides {
		cursor: grab;
		overflow: hidden;
	}
}
/** END Sliders **/

/** Structure elements **/
header {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;

	display: block;
	width: 100%;
	height: 5.438rem;
	margin: 0;
	padding: 1.438rem var(--padding-inline);
}
main {
	display: block;
	margin: 5.438rem 0 0;
	padding: 0;

	& > *:not(.columns) {
		padding: var(--padding-block) var(--padding-inline);

		&:has( > .content-small:first-child:last-child ) {
			padding-block: var(--padding-block-small);
		}
	}
	& > .no-padding-bloc:not(:first-child) {
		padding-block-start: 0;
	}
	& > .no-padding-bloc:not(:last-child) {
		padding-block-end: 0;
	}
}
footer {
	display: block;
	width: 100%;
	margin: 0;
	padding: 5.625rem var(--padding-inline);
}
/** END Structure elements **/

/** Content elements **/
.content {
	max-width: 72.5rem;
	margin-inline: auto;
}
.content-small {
	max-width: 50rem;
	margin-inline: auto;
}

.columns {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 0;

	.column {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: flex-start;
		gap: 0;
		
		width: 100%;
		margin: 0;
		padding: var(--padding-block) var(--padding-inline);

		&.img-column {
			background-color: var(--color-text);
			background-repeat: no-repeat;
			background-position: center center;
			background-size: cover;
		}

		& .content-column {
			width: 100%;
			max-width: 33.7rem;
			margin: 0;
		}

		&:first-child {
			justify-content: flex-end;
			padding-right: calc(var(--padding-inline) + var(--padding-inline));

			& .content-column {
				margin-right: 0;
			}
		}
		&:last-child {
			justify-content: flex-start;
			padding-left: calc(var(--padding-inline) + var(--padding-inline));

			& .content-column {
				margin-left: 0;
			}
		}
	}	

}

.columns-numered {
	counter-reset: column-number;
	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;
	align-items: stretch;
	gap: 2rem;
	padding-left: 0;
	
	&:not(:first-child) {
		margin-top: 3.75rem;
	}
	&:not(li):not(:last-child) {
		margin-bottom: 3.75rem;
	} 

	& li {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 2.25rem;
		width: calc(25% - 1.5rem);
		padding: 0;

		&::before {
			counter-increment: column-number;
  			content: counter(column-number);
			display: flex;
			align-items: center;
			justify-content: center;
			width: 4rem;
			height: 4rem;
			font-size: 1.438rem;
			line-height: 1em;
			color: var(--color-accent);
			border: var(--border-size) solid currentColor;
			border-radius: 50%;
		}

		&:not(:last-child) {
			margin-bottom: 0;
		}
	}
}

.cards {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;
	align-items: stretch;
	gap: 2rem;
	padding-left: 0;

	&:not(:first-child) {
		margin-top: 3.75rem;
	}
	&:not(li):not(:last-child) {
		margin-bottom: 3.75rem;
	}

	& li {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: calc(50% - 1rem);
		min-height: 12.5rem;
		padding: 3rem 3.9rem;

		background-color: var(--color-background-grey);
		border-radius: 3.125rem;

		&:not(:last-child) {
			margin-bottom: 0;
		}
	}
}

.speakers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding-left: 0;

	& li {
		width: 100%;
		max-width: 14.3rem;
		
		&:not(:first-child) {
			margin-bottom: 0;
		}
	}

	& img {
		width: 100%;
		height: auto;
	}
}

.clients {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	row-gap: 1rem;
	max-width: 80rem;
	margin: 0 auto;
	padding-left: 0;
	
	& li {
		width: 100%;
		max-width: 14.3rem;

		&:not(:last-child) {
			margin-bottom: 0;
		}
	}

	& img {
		width: auto;
		height: 4.4rem;
	}
}
/** END Content elements **/

/** Style classes **/
.block {
	display: block;
}
.iblock {
	display: inline-block;
}
.mbottom-none,
.mbottom-none:not(li):not(:last-child) {
	margin-bottom: 0;
}
.mbottom-1rem,
.mbottom-1rem:not(li):not(:last-child) {
	margin-bottom: 1rem;
}
.mbottom-2em,
.mbottom-2em:not(li):not(:last-child) {
	margin-bottom: 2em;
}
.mbottom-3em,
.mbottom-3em:not(li):not(:last-child) {
	margin-bottom: 3em;
}
.mbottom-4em,
.mbottom-4em:not(li):not(:last-child) {
	margin-bottom: 4em;
}

.center {
	text-align: center;

	& img {
		margin-inline: auto;
	}
}

.color-accent {
	color: var(--color-accent);
}

.bg-light {
	background-color: var(--color-background-light);
}

.bg-grey {
	background-color: var(--color-background-grey);
}

.bg-accent {
	background-color: var(--color-accent);
	color: var(--color-text-background-accent);

	& .color-accent {
		color: currentColor;
	}
}

.bg-invert {
	background-color: var(--color-text);
	color: var(--color-background);

	& button,
	& input[type="button"],
	& input[type="submit"],
	& .button {
		background-color: var(--color-background);
		color: var(--color-text);

	}
}

.img-radius {
	border-radius: 3.125rem;
}

.circle-radius {
	border-radius: 50%;
}
/** END Style classes **/

/** @media NOT Mobile ferst **/
@media screen and (max-width: 61rem) {
	.columns-numered {
		flex-wrap: wrap;
		gap: 4rem;

		& li {
			gap: 1.25rem;
			width: calc(50% - 2rem);
		}
	}

	.cards {
		flex-direction: column;
		align-items: center;

		& li {
			width: 100%;
			max-width: 28rem;
		}
	}
}
@media screen and (max-width: 48rem) {
	:root {
		--padding-block: 3rem;
		--padding-block-small: 3rem;
	}
	.cards:not(:first-child) {
		margin-top: 2rem;
	}

	.columns {
		flex-direction: column;

		& .content-column {
			margin-inline: auto;
		}

		& .column.img-column {
			height: 50vh;
		}

		& .column:not(.bg-accent):not(.bg-invert) + .column:not(.bg-accent):not(.bg-invert) {
			padding-top: 0;
		}
	}
}
@media screen and (max-width: 40rem) {
	:root {
		--padding-inline: 1.563rem;
	}

	/** Mobile titles font size **/
	.title1 {
		font-size: 2.313rem;
		line-height: 1.2em;
	}
	.title2 {
		font-size: 1.813rem;
		line-height: 1.2em;
	}
	.title3,
	.title4 {
		font-size: 1.438rem;
		line-height: 1.2em;
	}
	.title5,
	.title6 {
		font-size: 1rem;
		line-height: 1.4em;
	
		&:not(li):not(:last-child) {
			margin-bottom: 0.5rem;
		}
	}
	/** END Mobile titles font size **/

	.slider {
		& .slider-controls {
			& .slider-control {
				font-size: 1em;
				
				&.slider-control-prev {
					left: 0;
				}
				&.slider-control-next {
					right: 0;
				}
			}
		}
		& .slider-slides {
			& .slider-slide {
				padding: var(--size-buttons);
			}
		}
	}

	.columns-numered {
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;

		& li {
			width: auto;
			max-width: 20rem;
		}
	}
}
@media screen and (max-width: 36rem) {
	.speakers {
		flex-direction: column;
		align-items: center;
	}

	.slider {
		--size-buttons: 2.5rem;
	}
}
@media screen and (max-width: 27rem) {
	/** Small mobile titles font size **/
	.title1 {
		font-size: 1.813rem;
		line-height: 1.2em;
	}
	.title2 {
		font-size: 1.438rem;
		line-height: 1.2em;
	}
	.title3,
	.title4 {
		font-size: 1.25rem;
		line-height: 1.2em;
	}
	/** END Small mobile titles font size **/
}