/* Reset y base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
	color: #333;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Estilos generales */
.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

section {
	padding: 80px 0;
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
	margin-bottom: 20px;
	color: #1a1a1a;
}

h1 {
	font-size: 3.5rem;
}

h2 {
	font-size: 2.5rem;
}

h3 {
	font-size: 1.8rem;
}

p {
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.btn {
	display: inline-block;
	padding: 14px 30px;
	background-color: #f67e3f;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	margin-top: 15px;
}

.btn:hover {
	background-color: #0253ac;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(2, 83, 172, 0.25);
}

.btn-secondary {
	background-color: transparent;
	color: #f67e3f;
	border: 2px solid #f67e3f;
}

.btn-secondary:hover {
	background-color: #f67e3f;
	color: white;
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	padding: 20px 0;
	transition: all 0.3s ease;
}

.header-scrolled {
	padding: 10px 0;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Por defecto ocultamos el botón hamburguesa en pantallas grandes; se mostrará solo en mobile */
.mobile-menu-btn {
	display: none;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 50px;
	margin-right: 10px;
}

.logo h1 {
	font-size: 1.8rem;
	color: #0253ac;
	margin: 0;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 30px;
}

.nav-links a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	font-size: 1.1rem;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: #f67e3f;
}

.contact-buttons {
	display: flex;
	align-items: center;
}

.contact-btn {
	display: flex;
	align-items: center;
	margin-left: 20px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	padding: 8px 15px;
	border-radius: 30px;
	border: 1px solid #ddd;
}

.contact-btn i {
	margin-right: 8px;
	font-size: 1.2rem;
}

.contact-btn.whatsapp {
	background-color: #25d366;
	color: white;
	border-color: #25d366;
}

.contact-btn.whatsapp:hover {
	background-color: #128c7e;
	transform: translateY(-3px);
}

.contact-btn.email {
	background-color: #f8f9fa;
	color: #0253ac;
	border-color: #0253ac;
}

.contact-btn.email:hover {
	background-color: #0253ac;
	color: white;
	transform: translateY(-3px);
}

/* Hero Section */
.hero {
	background: linear-gradient(135deg, #0253ac 0%, #0081c5 100%);
	color: white;
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(../ffffff.svg);
	background-size: cover;
	background-position: center;
	opacity: 0.1;
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 600px;
}

.hero h1 {
	font-size: 4rem;
	margin-bottom: 20px;
	line-height: 1.2;
	color: white;
}

.hero p {
	font-size: 1.3rem;
	margin-bottom: 30px;
	opacity: 0.9;
}

.hero-buttons {
	display: flex;
	gap: 15px;
}

/* Features Section */
.features {
	background-color: #f8f9fa;
}

.section-title {
	text-align: center;
	margin-bottom: 60px;
}

.section-title h2 {
	position: relative;
	display: inline-block;
}

.section-title h2::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background-color: #f67e3f;
	border-radius: 2px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.feature-card {
	background-color: white;
	padding: 40px 30px;
	border-radius: 15px;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
	width: 80px;
	height: 80px;
	background-color: #e3f2fd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px;
	color: #0253ac;
	font-size: 2rem;
}

.feature-card h3 {
	margin-bottom: 15px;
	color: #1a1a1a;
}

/* Pricing Section */
.pricing {
	background-color: white;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.pricing-card {
	border: 1px solid #e0e0e0;
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.3s ease;
	text-align: center;
	padding: 40px 30px;
	position: relative;
}

.pricing-card.popular {
	border-color: #f67e3f;
	transform: scale(1.05);
	z-index: 1;
	box-shadow: 0 20px 40px rgba(246, 126, 63, 0.15);
}

.pricing-card.popular::before {
	content: "MÁS POPULAR";
	position: absolute;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #f67e3f;
	color: white;
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 0.9rem;
	font-weight: 600;
}

.pricing-card h3 {
	font-size: 1.8rem;
	margin-bottom: 15px;
	color: #1a1a1a;
}

.price {
	font-size: 3rem;
	font-weight: 700;
	color: #0253ac;
	margin-bottom: 20px;
}

.price span {
	font-size: 1rem;
	color: #666;
	font-weight: 400;
}

.pricing-features {
	list-style: none;
	margin-bottom: 10px;
	text-align: left;
}

.pricing-features li {
	padding: 5px 0;
	border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
	border-bottom: none;
}

.pricing-features li i {
	color: #28a745;
	margin-right: 10px;
}

/* Testimonials Section */
.testimonials {
	background-color: #f8f9fa;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.testimonial-card {
	background-color: white;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	position: relative;
}

.testimonial-card::before {
	position: absolute;
	top: 20px;
	left: 20px;
	font-size: 5rem;
	color: #e0e0e0;
	font-family: Georgia, serif;
	line-height: 1;
}

.testimonial-text {
	margin-bottom: 20px;
	font-style: italic;
	position: relative;
	z-index: 1;
}

.client-info {
	display: flex;
	align-items: center;
}

.client-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 15px;
	border: 3px solid #f0f0f0;
}

.client-name {
	font-weight: 600;
	color: #1a1a1a;
}

.client-role {
	color: #666;
	font-size: 0.9rem;
}

/* Contact Section */
.contact {
	background-color: #0253ac;
	color: white;
}

.contact-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 50px;
}

.contact-info h3 {
	color: white;
	margin-bottom: 20px;
	font-size: 2rem;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
}

.contact-icon {
	width: 50px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	font-size: 1.5rem;
}

.contact-text h4 {
	margin-bottom: 5px;
	color: white;
}

.contact-form {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 40px;
	border-radius: 15px;
}

.contact-form label {
	display: block;
	margin-bottom: 5px;
	color: #ffffff;
	font-weight: 600;
	font-size: 0.9rem;
}

.contact-form .btn {
	width: 100%;
	text-align: center;
}

.form-group {
	margin-bottom: 20px;
}

.form-control {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 1rem;
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
	min-height: 150px;
	resize: vertical;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	/* hide navbar contact buttons on small screens because floating buttons are used */
	.contact-buttons {
		display: none;
	}
	/* reduce padding on form wrapper for small devices */
	.contact-form {
		padding: 25px;
	}
}

/* Footer */
footer {
	background-color: #1a1a1a;
	color: white;
	padding: 40px 0 20px;
}

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

.footer-column h3 {
	margin-bottom: 20px;
	font-size: 1.5rem;
	color: white;
}

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

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #bbb;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #f67e3f;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-link {
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	background-color: #f67e3f;
	transform: translateY(-5px);
}

/* Justify text in the first footer column */
.footer-column p {
	text-align: justify;
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #bbb;
	font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1130px) {
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.hero h1 {
		font-size: 2.8rem;
	}

	.hero p {
		font-size: 1.1rem;
	}

	/* Mobile nav: usamos max-height para animar la apertura y permitir transiciones */
	.nav-links {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.98);
		max-height: 0;
		overflow: hidden;
		padding: 0;
		opacity: 0;
		transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
		z-index: 999;
	}

	.nav-links.mobile-active {
		max-height: 420px; /* suficiente para mostrar varios enlaces */
		opacity: 1;
		padding: 18px 0;
	}

	.nav-links li {
		margin: 12px 0;
		text-align: center;
	}

	/* Botón visible y con estilo accesible (solo en mobile, el display se anula fuera del media query) */
	.mobile-menu-btn {
		display: inline-flex;
		background: white;
		border: none;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		align-items: center;
		justify-content: center;
		font-size: 1.1rem;
		color: #0253ac;
		box-shadow: 0 6px 18px rgba(2, 83, 172, 0.12);
		cursor: pointer;
		transition: transform 0.15s ease, background-color 0.15s ease;
	}

	.mobile-menu-btn:active,
	.mobile-menu-btn.open {
		transform: scale(0.98) rotate(0deg);
	}

	/* Backdrop detrás del menú cuando está abierto */
	.menu-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.35);
		z-index: 998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	.menu-backdrop.active {
		opacity: 1;
		pointer-events: auto;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 10px;
	}

	.btn {
		width: 100%;
		text-align: center;
	}

	.section-title h2 {
		font-size: 2rem;
	}

	.price {
		font-size: 2.5rem;
	}

	.contact-form {
		padding: 30px;
	}
}

/* Icons */
.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.8s ease-out forwards;
}

/* WhatsApp and Email Buttons */
.floating-contact {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.floating-contact-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.floating-contact-btn.whatsapp {
	background-color: #25d366;
}

.floating-contact-btn.email {
	background-color: #0081c5;
}

.floating-contact-btn:hover {
	transform: translateY(-5px) scale(1.1);
}

@media (max-width: 700px) {
	.pricing-card.popular::before {
		padding: 8px 10px;
	}
}
