:root {
	--cm-bg-primary: #fafafa;
	--cm-bg-secondary: #ffffff;
	--cm-bg-footer: #f5f5f5;
	--cm-accent-blue: #1976d2;
	--cm-accent-orange: #ff5722;
	--cm-accent-green: #4caf50;
	--cm-text-primary: #212121;
	--cm-text-secondary: #757575;
	--cm-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
	--cm-shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
	--cm-border-radius: 8px;
	--cm-transition: all 0.3s ease;
}

/* Reset y base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--cm-bg-primary);
	color: var(--cm-text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Tipografía */
.cm-font-heading {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
}

.cm-font-regular {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
	line-height: 1.2;
}
h2 {
	font-size: 2rem;
	line-height: 1.3;
}
h3 {
	font-size: 1.5rem;
	line-height: 1.4;
}
h4 {
	font-size: 1.25rem;
	line-height: 1.4;
}

p {
	margin-bottom: 1rem;
}

/* Layout containers */
.cm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cm-section {
	padding: 80px 0;
	position: relative;
}

.cm-section-small {
	padding: 60px 0;
}

/* Header */
.cm-header {
	background-color: var(--cm-bg-secondary);
	box-shadow: var(--cm-shadow-light);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: var(--cm-transition);
}

.cm-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.cm-logo {
	font-family: 'Poppins', sans-serif;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--cm-accent-blue);
	text-decoration: none;
	transition: var(--cm-transition);
}

.cm-logo:hover {
	transform: scale(1.05);
}

.cm-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.cm-nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.cm-nav-link {
	color: var(--cm-text-primary);
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: var(--cm-border-radius);
	transition: var(--cm-transition);
}

.cm-nav-link:hover {
	background-color: var(--cm-bg-primary);
	color: var(--cm-accent-blue);
}

.cm-nav-link.active {
	background-color: var(--cm-accent-blue);
	color: white;
}

/* Mobile menu */
.cm-burger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 0.5rem;
}

.cm-burger-line {
	width: 25px;
	height: 3px;
	background-color: var(--cm-text-primary);
	margin: 3px 0;
	transition: var(--cm-transition);
}

.cm-burger.active .cm-burger-line:nth-child(1) {
	transform: rotate(-45deg) translate(-7px, 7px);
}

.cm-burger.active .cm-burger-line:nth-child(2) {
	opacity: 0;
}

.cm-burger.active .cm-burger-line:nth-child(3) {
	transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.cm-hero {
	padding-top: 120px;
	background: linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.7) 0%,
			rgba(250, 250, 250, 0.7) 100%
		),
		url('assets/cm-hero.webp');
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.cm-hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.cm-hero-text h1 {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: var(--cm-text-primary);
}

.cm-hero-subtitle {
	font-size: 1.2rem;
	color: var(--cm-text-secondary);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.cm-hero-image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.cm-hero-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cm-border-radius);
}

/* Buttons */
.cm-btn {
	display: inline-block;
	padding: 1rem 2rem;
	border: none;
	border-radius: var(--cm-border-radius);
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: var(--cm-transition);
	font-size: 1rem;
}

.cm-btn-primary {
	background-color: var(--cm-accent-blue);
	color: white;
}

.cm-btn-primary:hover {
	background-color: #1565c0;
	transform: translateY(-2px);
	box-shadow: var(--cm-shadow-medium);
}

.cm-btn-secondary {
	background-color: transparent;
	color: var(--cm-accent-blue);
	border: 2px solid var(--cm-accent-blue);
}

.cm-btn-secondary:hover {
	background-color: var(--cm-accent-blue);
	color: white;
}

.cm-btn-success {
	background-color: var(--cm-accent-green);
	color: white;
}

.cm-btn-success:hover {
	background-color: #43a047;
	transform: translateY(-2px);
}

/* Cards */
.cm-card {
	background-color: var(--cm-bg-secondary);
	border-radius: var(--cm-border-radius);
	padding: 2rem;
	box-shadow: var(--cm-shadow-light);
	transition: var(--cm-transition);
	border: 1px solid transparent;
}

.cm-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--cm-shadow-medium);
	border-color: var(--cm-accent-blue);
}

.cm-card-icon {
	width: 60px;
	height: 60px;
	background-color: var(--cm-accent-blue);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	color: white;
	font-size: 1.5rem;
}

.cm-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--cm-text-primary);
}

.cm-card-text {
	color: var(--cm-text-secondary);
	line-height: 1.6;
}

/* Grid layouts */
.cm-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.cm-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 3rem;
}

/* Reflexión section */
.cm-reflexion {
	background-color: var(--cm-bg-secondary);
}

.cm-reflexion-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.cm-reflexion-block {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 2rem;
	background-color: var(--cm-bg-primary);
	border-radius: var(--cm-border-radius);
	border-left: 4px solid var(--cm-accent-blue);
	transition: var(--cm-transition);
}

.cm-reflexion-block:hover {
	transform: translateX(10px);
	box-shadow: var(--cm-shadow-light);
}

.cm-reflexion-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(
		135deg,
		var(--cm-accent-blue),
		var(--cm-accent-green)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
	flex-shrink: 0;
}

.cm-reflexion-text h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--cm-accent-blue);
}

/* Laboratorio section */
.cm-laboratorio {
	background: linear-gradient(135deg, var(--cm-bg-primary) 0%, #f0f8ff 100%);
}

.cm-laboratorio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

.cm-lab-card {
	background-color: var(--cm-bg-secondary);
	border-radius: var(--cm-border-radius);
	padding: 2.5rem;
	box-shadow: var(--cm-shadow-light);
	transition: var(--cm-transition);
	position: relative;
	overflow: hidden;
}

.cm-lab-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--cm-accent-blue),
		var(--cm-accent-orange)
	);
}

.cm-lab-card:hover {
	transform: scale(1.03);
	box-shadow: var(--cm-shadow-medium);
}

.cm-checklist {
	list-style: none;
	margin-top: 1rem;
}

.cm-checklist li {
	padding: 0.5rem 0;
	position: relative;
	padding-left: 2rem;
	color: var(--cm-text-secondary);
}

.cm-checklist li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--cm-accent-green);
	font-weight: bold;
}

/* Timeline */
.cm-timeline {
	background-color: var(--cm-bg-secondary);
}

.cm-timeline-container {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.cm-timeline-line {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	background: linear-gradient(
		180deg,
		var(--cm-accent-blue),
		var(--cm-accent-green)
	);
	border-radius: 2px;
}

.cm-timeline-item {
	display: flex;
	justify-content: flex-end;
	padding-right: 2rem;
	position: relative;
	margin-bottom: 3rem;
}

.cm-timeline-item:nth-child(even) {
	justify-content: flex-start;
	padding-left: 2rem;
	padding-right: 0;
}

.cm-timeline-content {
	background-color: var(--cm-bg-primary);
	padding: 2rem;
	border-radius: var(--cm-border-radius);
	box-shadow: var(--cm-shadow-light);
	max-width: 350px;
	position: relative;
	transition: var(--cm-transition);
}

.cm-timeline-content:hover {
	transform: scale(1.05);
	box-shadow: var(--cm-shadow-medium);
}

.cm-timeline-dot {
	position: absolute;
	right: 390px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-color: var(--cm-accent-orange);
	border-radius: 50%;
	border: 4px solid var(--cm-bg-secondary);
	z-index: 2;
}

.cm-timeline-item:nth-child(even) .cm-timeline-dot {
	left: auto;
	right: 390px;
}

.cm-timeline-year {
	background: linear-gradient(
		135deg,
		var(--cm-accent-blue),
		var(--cm-accent-orange)
	);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	display: inline-block;
	margin-bottom: 1rem;
}

/* Forum section */
.cm-forum {
	background: linear-gradient(135deg, #f0f8ff 0%, var(--cm-bg-primary) 100%);
}

.cm-quote-card {
	background-color: var(--cm-bg-secondary);
	padding: 2.5rem;
	border-radius: var(--cm-border-radius);
	box-shadow: var(--cm-shadow-light);
	position: relative;
	transition: var(--cm-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	border-left: 4px solid var(--cm-accent-orange);
}

.cm-quote-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--cm-shadow-medium);
}

.cm-quote-card::before {
	content: '"';
	position: absolute;
	top: -10px;
	left: 20px;
	font-size: 4rem;
	color: var(--cm-accent-orange);
	font-family: serif;
}

.cm-quote-text {
	font-style: italic;
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: var(--cm-text-primary);
	line-height: 1.7;
}

.cm-quote-author {
	font-weight: 600;
	color: var(--cm-accent-blue);
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;

	margin-top: auto;
}

/* Pricing section */
.cm-pricing {
	background-color: var(--cm-bg-secondary);
}

.cm-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.cm-pricing-card {
	background-color: var(--cm-bg-primary);
	padding: 3rem 2rem;
	border-radius: var(--cm-border-radius);
	box-shadow: var(--cm-shadow-light);
	text-align: center;
	position: relative;
	transition: var(--cm-transition);
	border: 2px solid transparent;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cm-pricing-link {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cm-pricing-link a {
	margin-top: auto;
}

.cm-pricing-card:hover {
	transform: scale(1.05);
	border-color: var(--cm-accent-blue);
	box-shadow: var(--cm-shadow-medium);
}

.cm-pricing-card.featured {
	border-color: var(--cm-accent-orange);
	transform: scale(1.05);
}

.cm-pricing-card.featured::before {
	content: 'Más Popular';
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--cm-accent-orange);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
}

.cm-pricing-plan {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--cm-accent-blue);
}

.cm-pricing-price {
	font-size: 3rem;
	font-weight: 700;
	color: var(--cm-text-primary);
	margin-bottom: 0.5rem;
}

.cm-pricing-currency {
	font-size: 1.5rem;
	vertical-align: top;
}

.cm-pricing-period {
	color: var(--cm-text-secondary);
	margin-bottom: 2rem;
}

.cm-pricing-features {
	list-style: none;
	margin-bottom: 2rem;
}

.cm-pricing-features li {
	padding: 0.75rem 0;
	color: var(--cm-text-secondary);
	position: relative;
	padding-left: 2rem;
}

.cm-pricing-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--cm-accent-green);
	font-weight: bold;
}

/* Contact form */
.cm-contact {
	background: linear-gradient(135deg, var(--cm-bg-primary) 0%, #f0f8ff 100%);
}

.cm-form-container {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--cm-bg-secondary);
	padding: 3rem;
	border-radius: var(--cm-border-radius);
	box-shadow: var(--cm-shadow-light);
}

.cm-form-group {
	margin-bottom: 1.5rem;
}

.cm-form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--cm-text-primary);
}

.cm-form-input,
.cm-form-textarea {
	width: 100%;
	padding: 1rem;
	border: 2px solid #e0e0e0;
	border-radius: var(--cm-border-radius);
	font-family: 'Inter', sans-serif;
	transition: var(--cm-transition);
	background-color: var(--cm-bg-primary);
}

.cm-form-input:focus,
.cm-form-textarea:focus {
	outline: none;
	border-color: var(--cm-accent-blue);
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.cm-form-input.error,
.cm-form-textarea.error {
	border-color: var(--cm-accent-orange);
}

.cm-form-error {
	color: var(--cm-accent-orange);
	font-size: 0.9rem;
	margin-top: 0.25rem;
	display: none;
}

.cm-form-textarea {
	min-height: 120px;
	resize: vertical;
}

/* Footer */
.cm-footer {
	background-color: var(--cm-bg-footer);
	padding: 3rem 0 1rem;
}

.cm-footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.cm-footer-section h3 {
	margin-bottom: 1rem;
	color: var(--cm-accent-blue);
}

.cm-footer-section p {
	color: var(--cm-text-secondary);
	margin-bottom: 0.5rem;
}

.cm-footer-links {
	list-style: none;
}

.cm-footer-links li {
	margin-bottom: 0.5rem;
}

.cm-footer-links a {
	color: var(--cm-text-secondary);
	text-decoration: none;
	transition: var(--cm-transition);
}

.cm-footer-links a:hover {
	color: var(--cm-accent-blue);
}

.cm-footer-bottom {
	border-top: 1px solid #e0e0e0;
	padding-top: 1rem;
	text-align: center;
	color: var(--cm-text-secondary);
	font-size: 0.9rem;
}

/* Cookie popup */
.cm-cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--cm-text-primary);
	color: white;
	padding: 1.5rem;
	z-index: 10000;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.cm-cookie-popup.show {
	transform: translateY(0);
}

.cm-cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 2rem;
}

.cm-cookie-text {
	flex: 1;
}

.cm-cookie-text a {
	color: var(--cm-accent-blue);
}

.cm-cookie-buttons {
	display: flex;
	gap: 1rem;
}

.cm-btn-cookie {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: var(--cm-border-radius);
	cursor: pointer;
	font-weight: 500;
	transition: var(--cm-transition);
}

.cm-btn-cookie-accept {
	background-color: var(--cm-accent-green);
	color: white;
}

.cm-btn-cookie-accept:hover {
	background-color: #43a047;
}

/* Animation classes */
.cm-fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cm-fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.cm-slide-in-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cm-slide-in-left.visible {
	opacity: 1;
	transform: translateX(0);
}

.cm-slide-in-right {
	opacity: 0;
	transform: translateX(50px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cm-slide-in-right.visible {
	opacity: 1;
	transform: translateX(0);
}

/* Utility classes */
.cm-text-center {
	text-align: center;
}
.cm-text-left {
	text-align: left;
}
.cm-text-right {
	text-align: right;
}

.cm-mb-1 {
	margin-bottom: 0.5rem;
}
.cm-mb-2 {
	margin-bottom: 1rem;
}
.cm-mb-3 {
	margin-bottom: 1.5rem;
}
.cm-mb-4 {
	margin-bottom: 2rem;
}

.cm-mt-1 {
	margin-top: 0.5rem;
}
.cm-mt-2 {
	margin-top: 1rem;
}
.cm-mt-3 {
	margin-top: 1.5rem;
}
.cm-mt-4 {
	margin-top: 2rem;
}

.cm-hidden {
	display: none;
}
.cm-visible {
	display: block;
}

/* Responsive design */
@media (max-width: 968px) {
	.cm-nav-menu {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--cm-bg-secondary);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		transition: left 0.3s ease;
		z-index: 999;
	}

	.cm-nav-menu.active {
		left: 0;
	}

	.cm-burger {
		display: flex;
		z-index: 1001;
	}

	.cm-hero-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}

	.cm-hero-text h1 {
		font-size: 2.5rem;
	}

	.cm-timeline-item,
	.cm-timeline-item:nth-child(even) {
		justify-content: center;
		width: 100%;
		padding: 0 1rem;
	}

	.cm-timeline-line {
		display: none;
	}

	.cm-timeline-dot,
	.cm-timeline-item:nth-child(even) .cm-timeline-dot {
		display: none;
	}
	.cm-timeline-content {
		max-width: 100%;
	}

	.cm-cookie-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.cm-container {
		padding: 0 15px;
	}

	.cm-section {
		padding: 60px 0;
	}

	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	h3 {
		font-size: 1.25rem;
	}

	.cm-grid-3,
	.cm-grid-2 {
		grid-template-columns: 1fr;
	}

	.cm-reflexion-block {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.cm-form-container {
		padding: 2rem 1.5rem;
	}

	.cm-pricing-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cm-hero-text h1 {
		font-size: 1.75rem;
	}

	.cm-hero-subtitle {
		font-size: 1rem;
	}

	.cm-card,
	.cm-lab-card {
		padding: 1.5rem;
	}

	.cm-timeline-content {
		padding: 1.5rem;
	}

	.cm-form-container {
		padding: 1.5rem 1rem;
	}

	.cm-laboratorio-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}
