/* Variables CSS optimizadas */
:root {
	--primary-color: #8a15ff;
	--secondary-color: #3800e7;
	--accent-color: #15e0ff;
	--magenta: #d000c5;
	--text-color: #ffffff;
	--background-color: #111827;
	--card-background: #1f2937;
	--modal-background: rgba(17, 24, 39, 0.95);
	--modal-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	--transition-speed: 0.3s;
	--container-width: 1200px;
	--header-height: 70px;
	--section-spacing: 1.5rem;
	--theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	--glide-duration: 0.5s;
	--glide-delay: 0.1s;
}

[data-theme="light"] {
	--primary-color: #8a15ff;
	--secondary-color: #3800e7;
	--accent-color: #15e0ff;
	--magenta: #d000c5;
	--text-color: #1f2937;
	--background-color: #ffffff;
	--card-background: #f8fafc;
	--modal-background: rgba(255, 255, 255, 0.95);
	--modal-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Aplicar transición suave a todos los elementos que cambian con el tema */
body, nav, .service-card, .modal-section, dialog, footer {
	transition: var(--theme-transition);
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Estilos base para la navegación */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(var(--background-color), 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(var(--primary-color), 0.1);
	padding: 0.5rem 1rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	height: var(--header-height);
	display: flex;
	align-items: center;
	will-change: transform;
}

nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

/* Botón del menú hamburguesa */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001;
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	color: var(--primary-color);
}

/* Estilos para los enlaces del nav */
nav ul {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

nav a {
	position: relative;
	padding: 0.4rem 0.8rem;
	color: var(--text-color);
	text-decoration: none;
	transition: all var(--transition-speed) ease;
}

nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: all var(--transition-speed) ease;
	transform: translateX(-50%);
}

nav a:hover::after {
	width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
	:root {
		--header-height: 60px;
	}
	
	.hero-section {
		padding: 6rem 0 3rem;
	}
	
	.hero-section h1 {
		font-size: 2.5rem;
	}
	
	.hero-subtitle {
		font-size: 1.2rem;
	}
	
	.service-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.menu-toggle {
		display: block;
	}

	nav ul:last-child {
		position: fixed;
		top: 0;
		right: -100%;
		width: 65%;
		max-width: 220px;
		height: auto;
		max-height: 85vh;
		background: var(--background-color);
		flex-direction: column;
		padding: 2.5rem 0.8rem 0.8rem;
		transition: right 0.3s ease;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		overflow-y: auto;
		border-radius: 0 0 0 8px;
	}

	nav ul:last-child.active {
		right: 0;
	}

	nav ul:last-child li {
		width: 100%;
		text-align: left;
		margin: 0.2rem 0;
		padding: 0 0.3rem;
	}

	nav ul:last-child li a {
		display: block;
		padding: 0.25rem 0;
		font-size: 0.95rem;
		line-height: 1.2;
	}

	nav ul:last-child li button {
		width: 100%;
		text-align: left;
		padding: 0.25rem 0;
		font-size: 0.95rem;
		line-height: 1.2;
	}

	/* Overlay para el menú */
	.menu-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
		z-index: 999;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.menu-overlay.active {
		display: block;
		opacity: 1;
	}

	/* Ajuste del padding del body cuando el menú está abierto */
	body.menu-open {
		overflow: hidden;
	}

	/* Animación del botón hamburguesa */
	.menu-toggle.active i {
		transform: rotate(180deg);
	}

	.menu-toggle i {
		transition: transform 0.3s ease;
	}

	nav .container {
		padding: 0 0.3rem;
		gap: 0.3rem;
	}
	
	nav ul {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}
	
	body {
		padding-top: 120px;
	}

	nav ul li strong {
		padding: 0.2rem 0;
	}

	.menu-toggle {
		padding: 0.2rem;
		margin-left: 0.3rem;
	}

	#theme-toggle {
		margin: 0.15rem 0;
		padding: 0.2rem;
	}

	/* Ajuste del logo en el menú desplegable */
	nav ul:last-child li:first-child {
		margin-bottom: 0.5rem;
		padding-bottom: 0.3rem;
		border-bottom: 1px solid rgba(var(--primary-color), 0.1);
	}

	/* Ajuste del último elemento del menú */
	nav ul:last-child li:last-child {
		margin-top: 0.3rem;
		padding-top: 0.3rem;
		border-top: 1px solid rgba(var(--primary-color), 0.1);
	}
}

/* Hero Section con nuevo estilo */
.hero-section {
	background: linear-gradient(var(--secondary-color), var(--primary-color));
	color: var(--text-color);
	min-height: 80vh;
	position: relative;
	overflow: hidden;
	font-family: "DM Mono", monospace;
	font-weight: 300;
	margin-top: var(--header-height);
}

.hero-content {
	position: relative;
	width: 100%;
	height: calc(80vh - var(--header-height));
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	padding: 2rem 0;
}

.main {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 2;
	max-width: 90%;
}

.main__text-wrapper {
	position: relative;
	padding: 1.5em;
	text-align: center;
}

.main__text-wrapper:before,
.main__text-wrapper:after {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	border-radius: 50%;
}

.main__text-wrapper:before {
	width: 10em;
	height: 10em;
	top: -2em;
	right: -2em;
	opacity: 0.7;
	background: linear-gradient(var(--accent-color), var(--primary-color));
	animation: rotation 7s linear infinite;
}

.main__text-wrapper:after {
	width: 15em;
	height: 15em;
	bottom: -15em;
	background: linear-gradient(var(--magenta), var(--primary-color));
	animation: rotation 7s linear infinite;
}

.circle {
	position: absolute;
	transform: translate(50%, -50%) rotate(0deg);
	transform-origin: center;
	z-index: 0;
}

.circle--ltblue {
	width: 15em;
	height: 15em;
	border-radius: 50%;
	background: linear-gradient(var(--accent-color), var(--secondary-color));
	animation: gradient-fade 8s ease-in-out 3s infinite alternate;
}

.dotted-circle {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	opacity: 0.3;
	animation: rotation 38s linear infinite;
}

.draw-in {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: draw 15s ease-in-out alternate infinite;
}

/* Animaciones */
@keyframes draw {
	from {
		stroke-dashoffset: 1000;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes gradient-fade {
	from {
		transform: translate(10%, -10%) rotate(0deg);
	}
	to {
		transform: translate(50%, -50%) rotate(360deg);
	}
}

/* Ajustes para el texto */
.hero-section h1.animate-character {
	font-size: 2.5em;
	margin-bottom: 0.2em;
	background: none;
	-webkit-text-fill-color: var(--text-color);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.glide-text {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.8rem 0;
	font-size: 1.2em;
}

.glide-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(100%);
	animation: glideReveal var(--glide-duration) ease forwards;
}

.hero-subtitle {
	font-size: 1em;
	max-width: 700px;
	margin: 1rem auto;
	line-height: 1.5;
	opacity: 0.9;
}

/* Botón de contacto */
.hero-section [role="button"].contrast {
	background-color: var(--text-color);
	color: var(--primary-color);
	border: none;
	padding: 0.8rem 1.8rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 30px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	font-family: "DM Mono", monospace;
	margin-top: 1rem;
}

.hero-section [role="button"].contrast:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	background-color: var(--accent-color);
	color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section {
		min-height: 70vh;
	}

	.hero-content {
		height: calc(70vh - var(--header-height));
		padding: 1rem 0;
	}

	.hero-section h1.animate-character {
		font-size: 2em;
	}

	.glide-text {
		font-size: 1em;
		gap: 0.3rem;
	}

	.hero-subtitle {
		font-size: 0.9em;
		padding: 0 1rem;
		margin: 0.8rem auto;
	}

	.main__text-wrapper:before {
		width: 8em;
		height: 8em;
	}

	.main__text-wrapper:after {
		width: 12em;
		height: 12em;
	}

	.circle--ltblue {
		width: 12em;
		height: 12em;
	}

	.hero-section [role="button"].contrast {
		padding: 0.7rem 1.5rem;
		font-size: 0.9rem;
	}
}

.dropping-texts {
	display: inline-block;
	width: 180px;
	text-align: left;
	height: 36px;
	vertical-align: -2px;
	margin-bottom: 2rem;
}

.dropping-texts > div {
	font-size: 0px;
	opacity: 0;
	margin-left: -30px;
	position: absolute;
	font-weight: 300;
	box-shadow: 0px 60px 25px -20px rgba(0,0,0,0.5);
	font-family: 'Roboto', sans-serif;
}

.dropping-texts > div:nth-child(1) {
	animation: roll 5s linear infinite 0s;
}

.dropping-texts > div:nth-child(2) {
	animation: roll 5s linear infinite 1s;
}

.dropping-texts > div:nth-child(3) {
	animation: roll 5s linear infinite 2s;
}

.dropping-texts > div:nth-child(4) {
	animation: roll2 5s linear infinite 3s;
}

@keyframes roll {
	0% {
		font-size: 0px;
		opacity: 0;
		margin-left: -30px;
		margin-top: 0px;
		transform: rotate(-25deg);
	}
	3% {
		opacity: 1;
		transform: rotate(0deg);
	}
	5% {
		font-size: inherit;
		opacity: 1;
		margin-left: 0px;
		margin-top: 0px;
	}
	20% {
		font-size: inherit;
		opacity: 1;
		margin-left: 0px;
		margin-top: 0px;
		transform: rotate(0deg);
	}
	27% {
		font-size: 0px;
		opacity: 0.5;
		margin-left: 20px;
		margin-top: 100px;
	}
	100% {
		font-size: 0px;
		opacity: 0;
		margin-left: -30px;
		margin-top: 0px;
		transform: rotate(15deg);
	}
}

@keyframes roll2 {
	0% {
		font-size: 0px;
		opacity: 0;
		margin-left: -30px;
		margin-top: 0px;
		transform: rotate(-25deg);
	}
	3% {
		opacity: 1;
		transform: rotate(0deg);
	}
	5% {
		font-size: inherit;
		opacity: 1;
		margin-left: 0px;
		margin-top: 0px;
	}
	30% {
		font-size: inherit;
		opacity: 1;
		margin-left: 0px;
		margin-top: 0px;
		transform: rotate(0deg);
	}
	37% {
		font-size: 1500px;
		opacity: 0;
		margin-left: -1000px;
		margin-top: -800px;
	}
	100% {
		font-size: 0px;
		opacity: 0;
		margin-left: -30px;
		margin-top: 0px;
		transform: rotate(15deg);
	}
}

@keyframes bg {
	0% { background: #ff0075; }
	3% { background: #0094ff; }
	20% { background: #0094ff; }
	23% { background: #b200ff; }
	40% { background: #b200ff; }
	43% { background: #8BC34A; }
	60% { background: #8BC34A; }
	63% { background: #F44336; }
	80% { background: #F44336; }
	83% { background: #F44336; }
	100% { background: #F44336; }
}

/* Ajustes responsive para el texto animado */
@media (max-width: 768px) {
	.dropping-texts {
		width: 150px;
		height: 30px;
	}
	
	.dropping-texts > div {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.dropping-texts {
		width: 120px;
		height: 24px;
	}
	
	.dropping-texts > div {
		font-size: 20px;
	}
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
	opacity: 0.1;
	animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 100% 100%;
	}
}

.hero-section h1,
.hero-section .cta-button {
	text-align: center;
}

.hero-section h1 {
	font-size: 4rem;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 1;
}

.hero-subtitle {
	font-size: 1.5rem;
	max-width: 800px;
	margin: 0 auto 2rem;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	text-align: justify;
	hyphens: auto;
	word-wrap: break-word;
}

.cta-button {
	display: inline-block;
	padding: 1rem 2rem;
	background: white;
	color: var(--primary-color);
	text-decoration: none;
	border-radius: 30px;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--section-spacing);
	margin: var(--section-spacing) 0;
}

.profile-card {
	background: var(--background-color);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.profile-card:hover {
	transform: translateY(-5px);
}

.card-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

/* Servicios */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: var(--section-spacing) 0;
}

.service-grid-bottom {
	margin-top: 4rem;
	position: relative;
}

.service-grid-bottom::before {
	content: '';
	position: absolute;
	top: -2rem;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
	opacity: 0.5;
}

.service-grid-bottom::after {
	content: 'Servicios Adicionales';
	position: absolute;
	top: -3rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--background-color);
	padding: 0 1rem;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 1.2rem;
}

.service-card {
	background: var(--card-background);
	border-radius: 8px;
	padding: 1.5rem;
	transition: all 0.3s ease;
	will-change: transform;
	contain: content;
	text-align: center;
	border: 1px solid rgba(var(--primary-color), 0.2);
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.5s ease forwards;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.service-icon {
	width: 60px;
	height: 60px;
	background: rgba(var(--primary-color), 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	transition: all 0.3s ease;
}

.service-icon i {
	font-size: 1.8rem;
	color: var(--primary-color);
}

.service-card h3 {
	color: var(--primary-color);
	margin-bottom: 0.8rem;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
}

.price {
	font-size: 1.3rem;
	font-weight: bold;
	color: var(--primary-color);
	margin-bottom: 1rem;
	display: inline-block;
	padding: 0.4rem 1.2rem;
	background: rgba(var(--primary-color), 0.15);
	border-radius: 20px;
	text-align: center;
}

.service-card ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 90%;
}

.service-card ul li {
	margin-bottom: 0.6rem;
	padding-left: 0;
	position: relative;
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	text-align: left;
	justify-content: flex-start;
}

.service-card ul li:before {
	content: "→";
	color: var(--primary-color);
	font-size: 1rem;
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	border-color: var(--primary-color);
}

.service-card:hover .service-icon {
	transform: scale(1.1);
	background: rgba(var(--primary-color), 0.2);
}

.service-card:hover ul li {
	transform: translateX(3px);
}

.service-card:hover ul li:before {
	transform: translateX(3px);
}

/* Efecto de brillo en el borde */
@keyframes borderGlow {
	0% {
		box-shadow: 0 0 5px rgba(var(--primary-color), 0.5),
					0 0 10px rgba(var(--primary-color), 0.3),
					0 0 15px rgba(var(--primary-color), 0.1);
	}
	50% {
		box-shadow: 0 0 10px rgba(var(--primary-color), 0.8),
					0 0 20px rgba(var(--primary-color), 0.5),
					0 0 30px rgba(var(--primary-color), 0.2);
	}
	100% {
		box-shadow: 0 0 5px rgba(var(--primary-color), 0.5),
					0 0 10px rgba(var(--primary-color), 0.3),
					0 0 15px rgba(var(--primary-color), 0.1);
	}
}

/* Responsive para servicios */
@media (max-width: 1024px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.hero-section h1 {
		font-size: 3rem;
	}
	
	.hero-subtitle {
		font-size: 1.2rem;
	}
	
	.service-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.service-card {
		padding: 1.2rem;
	}
	
	.service-icon {
		width: 50px;
		height: 50px;
	}
	
	.service-icon i {
		font-size: 1.5rem;
	}
	
	.service-card h3 {
		font-size: 1.3rem;
	}
	
	.price {
		font-size: 1.2rem;
		padding: 0.3rem 1rem;
	}
	
	.service-card ul li {
		font-size: 0.9rem;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.footer-section p {
		justify-content: center;
	}
	
	.social-links {
		justify-content: center;
	}
	
	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 300px;
		height: 100vh;
		background: var(--background-color);
		flex-direction: column;
		padding: 5rem 2rem 2rem;
		transition: right 0.3s ease;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	}
	
	.nav-links.active {
		right: 0;
	}
}

/* Modales Mejorados */
dialog {
	background: var(--modal-background);
	border: none;
	border-radius: 8px;
	box-shadow: var(--modal-shadow);
	padding: 2rem;
	max-width: 90%;
	width: 600px;
	contain: content;
}

dialog[open] {
	transform: scale(1);
	opacity: 1;
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: all var(--transition-speed) ease;
}

dialog article {
	padding: 2rem;
	max-width: 100%;
	margin: 0 auto;
}

dialog header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(var(--primary-color), 0.1);
}

dialog header h3 {
	font-size: 1.8rem;
	color: var(--primary-color);
	margin: 0;
	font-weight: 600;
}

/* Contenido del Modal */
.modal-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 1rem;
}

.modal-section {
	background: rgba(var(--primary-color), 0.05);
	border-radius: 12px;
	padding: 2rem;
	transition: all var(--transition-speed) ease;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(var(--primary-color), 0.1);
}

.modal-section:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	background: rgba(var(--primary-color), 0.08);
}

.modal-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
	transform: scaleX(0);
	transition: transform var(--transition-speed) ease;
}

.modal-section:hover::before {
	transform: scaleX(1);
}

.modal-icon {
	width: 60px;
	height: 60px;
	background: rgba(var(--primary-color), 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	transition: all var(--transition-speed) ease;
}

.modal-section:hover .modal-icon {
	transform: scale(1.1);
	background: rgba(var(--primary-color), 0.2);
}

.modal-icon i {
	font-size: 1.8rem;
	color: var(--primary-color);
}

.modal-section h4 {
	font-size: 1.3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	font-weight: 600;
	text-align: center;
}

.modal-section p {
	line-height: 1.6;
	color: var(--text-color);
	margin: 0;
	font-size: 1rem;
	opacity: 0.9;
	text-align: justify;
	hyphens: auto;
	word-wrap: break-word;
}

.close-modal {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-color);
	padding: 0.5rem;
	border-radius: 50%;
	transition: all var(--transition-speed) ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.close-modal:hover {
	background: rgba(var(--primary-color), 0.1);
	color: var(--primary-color);
	transform: rotate(90deg);
}

/* Responsive para modales */
@media (max-width: 768px) {
	dialog {
		width: 95%;
		margin: 1rem;
	}
	
	dialog article {
		padding: 1.5rem;
	}
	
	.modal-content {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.modal-section {
		padding: 1.5rem;
	}
	
	.modal-icon {
		width: 50px;
		height: 50px;
	}
	
	.modal-icon i {
		font-size: 1.5rem;
	}
	
	.modal-section h4 {
		font-size: 1.2rem;
	}
}

/* Formulario */
form {
	max-width: 600px;
	margin: 0 auto;
}

textarea {
	margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section h1 {
		font-size: 2.5rem;
	}
	
	.price {
		font-size: 1.25rem;
	}
}

/* Animaciones */
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.floating {
	animation: float 3s ease-in-out infinite;
	will-change: transform;
}

/* Mejoras en los botones */
button {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color var(--transition-speed) ease;
	will-change: background-color;
}

button:hover {
	background: var(--secondary-color);
}

/* Responsive para servicios */
@media (max-width: 768px) {
	.service-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.service-grid-bottom {
		margin-top: 3rem;
	}
}

/* Footer con espaciado mínimo pero elegante */
footer {
	background: var(--card-background);
	padding: 0.5rem 0;
	text-align: center;
}

.footer-content {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
}

.contact-info {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.contact-info a {
	color: var(--text-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: color 0.3s ease;
	font-size: 0.9rem;
}

.contact-info a:hover {
	color: var(--primary-color);
}

.social-links {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.social-link {
	color: var(--text-color);
	font-size: 1rem;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--primary-color), 0.1);
	transition: all 0.3s ease;
}

.social-link:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-3px);
}

.copyright {
	border-top: 1px solid rgba(var(--primary-color), 0.1);
	padding-top: 0.5rem;
	margin-top: 0.5rem;
}

.copyright-text {
	margin: 0;
	color: var(--text-color);
	opacity: 0.8;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.8rem;
}

/* Responsive ajustado */
@media (max-width: 768px) {
	.footer-content {
		gap: 0.75rem;
	}

	.contact-info {
		gap: 0.4rem;
	}
}

/* Optimización de imágenes y contenido */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Optimización de scroll */
html {
	scroll-behavior: smooth;
}

/* Optimización de fuentes */
body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Optimización de contenedores */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1rem;
	width: 100%;
	box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
	:root {
		--section-spacing: 1rem;
	}
	
	.hero-section {
		padding: 4rem 0 var(--section-spacing);
	}
	
	.hero-section h1 {
		font-size: 2.5rem;
	}
	
	.hero-subtitle {
		font-size: 1.2rem;
	}
	
	.service-grid {
		grid-template-columns: 1fr;
		gap: var(--section-spacing);
	}
	
	.footer-content {
		gap: var(--section-spacing);
	}
}

/* Efectos de Scroll Mejorados */
.scroll-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* Aplicar efectos de scroll a las secciones */
section {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Ajustes de color para mejor visibilidad */
.hero-section {
	background: linear-gradient(var(--secondary-color), var(--primary-color));
	color: var(--text-color);
}

.hero-section h1 {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.service-card {
	background: var(--card-background);
	border: 1px solid rgba(var(--primary-color), 0.2);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-icon {
	background: rgba(var(--primary-color), 0.15);
}

.service-icon i {
	color: var(--primary-color);
}

.price {
	background: rgba(var(--primary-color), 0.15);
	color: var(--primary-color);
}

/* Ajuste de la animación del logo */
.animate-character {
	background-image: linear-gradient(
		-225deg,
		#4f46e5 0%,
		#6366f1 29%,
		#818cf8 67%,
		#a5b4fc 100%
	);
	background-size: 200% auto;
	color: #fff;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: textclip 2s linear infinite;
}

/* Ajuste para el logo en la navegación */
nav ul li strong {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
	color: var(--text-color);
}

nav ul li strong i {
	font-size: 1.5rem;
	color: var(--primary-color);
}

/* Ajuste para el logo en el hero section */
.hero-section h1 {
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 1;
}

.hero-section h1.animate-character {
	text-shadow: none;
}

/* Responsive para la animación */
@media (max-width: 768px) {
	.animate-character {
		font-size: 2.5rem;
	}
}

/* Botón de tema */
#theme-toggle {
	background: none !important;
	border: none !important;
	color: var(--text-color);
	cursor: pointer;
	padding: 0.5rem;
	font-size: 1.2rem;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

#theme-toggle:hover {
	color: var(--primary-color);
	transform: scale(1.1);
}

#theme-toggle i {
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover i {
	transform: rotate(180deg);
}

/* Eliminar todos los estilos de parallax */
/* Efecto Parallax */
.parallax-section {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	padding: 4rem 0;
	margin: 2rem 0;
	border-radius: 1rem;
	background-color: var(--background-color);
}

.parallax-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	transform: translateZ(-1px) scale(2);
	z-index: 0;
	opacity: 0.3;
	filter: blur(2px);
}

.parallax-content {
	position: relative;
	z-index: 1;
	background: rgba(var(--background-color), 0.9);
	padding: 2rem;
	border-radius: 1rem;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	margin: 0 1rem;
}

/* Ajustes para las secciones con parallax */
.parallax-section h2 {
	color: var(--primary-color);
	margin-bottom: 2rem;
	text-align: center;
	font-size: 2.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.parallax-section h2 i {
	margin-right: 0.5rem;
}

/* Ajustes para las cards dentro de parallax */
.parallax-section .card-grid,
.parallax-section .service-grid {
	margin-top: 2rem;
}

/* Efecto hover en las secciones parallax */
.parallax-section:hover .parallax-bg {
	opacity: 0.4;
	transition: opacity 0.3s ease;
}

/* Responsive para parallax */
@media (max-width: 768px) {
	.parallax-section {
		min-height: auto;
		padding: 2rem 0;
	}

	.parallax-bg {
		background-attachment: scroll;
		opacity: 0.2;
	}

	.parallax-content {
		padding: 1.5rem;
		margin: 0 0.5rem;
	}

	.parallax-section h2 {
		font-size: 2rem;
	}
}

/* Optimización de rendimiento para parallax */
@media (prefers-reduced-motion: reduce) {
	.parallax-bg {
		background-attachment: scroll;
	}
}

/* Importar fuente Poppins */
@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");

/* Importar fuente Roboto */
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400');

/* Importar fuente DM Mono */
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;1,500&display=swap");
