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

:root {
	--red-primary: #D53030;
	/* red of the logo mark itself; used behind it so no rim shows through */
	--red-logo: #C44039;
	--red-dark: #B52828;
	--gray-dark: #4A5568;
	--gray-medium: #718096;
	--gray-light: #E2E8F0;
	--gray-bg: #F7FAFC;
	--white: #FFFFFF;
	--black: #1A202C;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--gray-dark);
	background-color: var(--white);
}

.container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 clamp(20px, 3.5vw, 56px);
}

/* Header */
#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: all 0.3s ease;
}

#header.scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

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

.logo-circle {
	width: 56px;
	height: 56px;
	background-color: var(--red-logo);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: bold;
	font-size: 20px;
}

.logo-circle img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	padding: 5px;
}

.logo-text h1 {
	font-size: 20px;
	color: var(--red-primary);
	font-weight: 700;
	line-height: 1.2;
}

.logo-text p {
	font-size: 12px;
	color: var(--gray-medium);
	line-height: 1;
}

nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

nav a {
	text-decoration: none;
	color: var(--gray-dark);
	font-weight: 500;
	transition: color 0.3s ease;
}

nav a:hover {
	color: var(--red-primary);
}

nav.footer-col {
	flex-direction: column;
	gap: 0;
	align-items: flex-start;
}

.btn-whatsapp {
	background-color: var(--red-primary);
	color: var(--white) !important;
	padding: 10px 24px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
	background-color: var(--red-dark);
}

.mobile-menu-btn {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
}

.mobile-menu-btn span {
	width: 25px;
	height: 3px;
	background-color: var(--gray-dark);
	transition: all 0.3s ease;
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 78px;
	left: 0;
	right: 0;
	background-color: var(--white);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 20px;
	flex-direction: column;
	gap: 15px;
	z-index: 999;
}

.mobile-menu a {
	text-decoration: none;
	color: var(--gray-dark);
	font-weight: 500;
	padding: 10px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
	background-color: var(--gray-light);
}

.mobile-menu.active {
	display: flex;
}

/* Hero Section */
.hero {
	padding: 116px 0 56px;
	background: linear-gradient(135deg, var(--gray-bg) 0%, var(--white) 100%);
}

.hero-intro {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 32px;
}

.hero-text h2 {
	font-size: 44px;
	color: var(--black);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
}

.text-red {
	color: var(--red-primary);
}

.hero-text p {
	font-size: 18px;
	color: var(--gray-medium);
	line-height: 1.7;
	max-width: 620px;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn-primary {
	background-color: var(--red-primary);
	color: var(--white);
}

.btn-primary:hover {
	background-color: var(--red-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(213, 48, 48, 0.3);
}

.btn-outline {
	border: 2px solid var(--red-primary);
	color: var(--red-primary);
	background-color: transparent;
}

.btn-outline:hover {
	background-color: var(--red-primary);
	color: var(--white);
}

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

.section-header h2 {
	font-size: 42px;
	font-weight: 700;
	color: var(--black);
	margin-bottom: 15px;
}

.section-header p {
	font-size: 18px;
	color: var(--gray-medium);
	max-width: 720px;
	margin: 0 auto;
}

/* Catalog Section */
.catalog {
	display: none;
	padding: 80px 0;
	background-color: var(--gray-dark);
}

.catalog .section-header h2,
.catalog .section-header p {
	color: var(--white);
}

.catalog-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 40px;
}

.catalog-card {
	background-color: var(--white);
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.catalog-icon {
	font-size: 64px;
	text-align: center;
	margin-bottom: 20px;
}

.catalog-card h3 {
	font-size: 28px;
	font-weight: 700;
	color: var(--black);
	margin-bottom: 15px;
}

.catalog-card p {
	font-size: 16px;
	color: var(--gray-medium);
	margin-bottom: 25px;
	line-height: 1.8;
}

.catalog-features {
	list-style: none;
	margin-bottom: 30px;
}

.catalog-features li {
	font-size: 16px;
	color: var(--gray-dark);
	padding: 8px 0;
	border-bottom: 1px solid var(--gray-light);
}

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

.catalog-cta {
	background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
	padding: 40px;
	border-radius: 16px;
	color: var(--white);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.catalog-cta h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
}

.catalog-cta p {
	font-size: 16px;
	margin-bottom: 25px;
	opacity: 0.95;
}

.btn-outline-white {
	border: 2px solid var(--white);
	color: var(--white);
	background-color: transparent;
}

.btn-outline-white:hover {
	background-color: var(--white);
	color: var(--red-primary);
}

/* Contact Section */
.contact {
	padding: 80px 0;
	background-color: var(--white);
}

.contact-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Grid de tarjetas de contacto */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}

.contact-card-item {
	background-color: var(--white);
	border: 2px solid var(--gray-light);
	padding: 30px 20px;
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s ease;
}

.contact-card-item:hover {
	border-color: var(--red-primary);
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card-item .contact-icon {
	font-size: 48px;
	width: 80px;
	height: 80px;
	background-color: rgba(213, 48, 48, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.contact-card-item h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--black);
	margin-bottom: 10px;
}

.contact-card-item p {
	font-size: 14px;
	color: var(--gray-medium);
	line-height: 1.6;
}

.contact-card-item a {
	color: var(--gray-medium);
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-card-item a:hover {
	color: var(--red-primary);
}

/* CTA de WhatsApp */
.contact-cta {
	text-align: center;
	padding: 20px 0;
}

.btn-large {
	padding: 18px 40px;
	font-size: 18px;
}

/* Mapa a ancho completo */
.map-container-full {
	height: 450px;
	border-radius: 16px;
	overflow: hidden;
	border: 2px solid var(--gray-light);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
	background-color: var(--black);
	color: var(--white);
	padding: 60px 0 30px;
}

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

.footer-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.footer-logo h3 {
	font-size: 20px;
	color: var(--white);
	font-weight: 700;
	line-height: 1.2;
}

.footer-logo p {
	font-size: 12px;
	color: var(--gray-medium);
	line-height: 1;
}

.footer-desc {
	font-size: 14px;
	color: var(--gray-medium);
	line-height: 1.6;
}

.footer-col h4 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--gray-medium);
}

.footer-col ul li a {
	color: var(--gray-medium);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-col ul li a:hover {
	color: var(--red-primary);
}

.social-links {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.social-links a {
	width: 40px;
	height: 40px;
	background-color: var(--gray-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.social-links a:hover {
	background-color: var(--red-primary);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 30px;
	border-top: 1px solid var(--gray-dark);
}

.footer-bottom p {
	font-size: 14px;
	color: var(--gray-medium);
}

.footer-links {
	display: flex;
	gap: 20px;
}

.footer-links a {
	font-size: 14px;
	color: var(--gray-medium);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: var(--red-primary);
}

/* WhatsApp Floating Button */
:root {
	--wa-size: 56px;
	--wa-gap: 20px;
	--wa-bg: #25D366;
	--wa-fg: #ffffff;
	--wa-shadow: 0 10px 18px rgba(0, 0, 0, .18), 0 6px 6px rgba(0, 0, 0, .12);
	--wa-shadow-active: 0 6px 10px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .14);
}

.wa-float {
	background: #25D366;
	box-shadow: var(--wa-shadow);
	position: fixed;
	inset: auto var(--wa-gap) var(--wa-gap) auto;
	width: var(--wa-size);
	height: var(--wa-size);
	border-radius: 50%;
	color: var(--wa-fg);
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	z-index: 1100;
	transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
	outline: none;
	touch-action: none;
	animation: wa-bob 3.5s ease-in-out infinite alternate;
	border: none;
}

.wa-float svg {
	width: 36px;
	height: 36px;
	display: block;
}

.wa-float:hover {
	transform: translateY(-2px);
	box-shadow: var(--wa-shadow-active);
}

.wa-float:active {
	transform: translateY(0);
	box-shadow: var(--wa-shadow);
}

.wa-float svg {
	width: calc(var(--wa-size) * .56);
	height: calc(var(--wa-size) * .56);
	display: block;
}

/* Pulso sutil */
.wa-float::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .35);
	animation: wa-pulse 5s ease-out infinite;
	pointer-events: none;
}

/* Tooltip */
.wa-tooltip {
	position: fixed;
	background: #111827;
	color: #fff;
	font: 500 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	padding: 6px 8px;
	/* border-radius: 6px; */
	opacity: 0;
	transform: translate(-8px, -8px);
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
	z-index: 1101;
	white-space: nowrap;
}

.wa-float[data-hover="1"]+.wa-tooltip {
	opacity: .95;
	transform: translate(-4px, -4px);
}

@media (prefers-reduced-motion: reduce) {
	.wa-float {
		animation: none;
	}

	.wa-float::after {
		animation: none;
	}
}

@keyframes wa-bob {
	from {
		transform: translateY(0)
	}

	to {
		transform: translateY(-4px)
	}
}

@keyframes wa-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, .35);
	}

	60% {
		box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

/* FAQ Section */
.faq-section {
	padding: 80px 0;
	background-color: var(--white);
}

.faq-container {
	max-width: 900px;
	margin: 0 auto;
}

.faq-item {
	background-color: var(--white);
	border: 2px solid var(--gray-light);
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item:hover {
	border-color: var(--red-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
	width: 100%;
	padding: 25px 30px;
	background-color: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	transition: background-color 0.3s ease;
}

.faq-question:hover {
	background-color: var(--gray-bg);
}

.faq-question h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--black);
	margin: 0;
	flex: 1;
}

.faq-icon {
	font-size: 24px;
	font-weight: 300;
	color: var(--red-primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 0 30px 25px 30px;
}

.faq-answer p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--gray-medium);
	margin: 0;
}

.faq-answer strong {
	color: var(--gray-dark);
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	.faq-question {
		padding: 20px;
	}
	
	.faq-question h3 {
		font-size: 16px;
	}
	
	.faq-item.active .faq-answer {
		padding: 0 20px 20px 20px;
	}
	
	.faq-answer p {
		font-size: 15px;
	}
}

/* Responsive */
@media (max-width: 968px) {
	nav {
		display: none;
	}

	.mobile-menu-btn {
		display: flex;
	}

	.catalog-content {
		grid-template-columns: 1fr;
	}

	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-intro {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.hero-text h2 {
		font-size: 34px;
	}


	.section-header h2 {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.hero-buttons {
		flex-direction: column;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}

	.hero {
		padding: 100px 0 40px;
	}

	.hero-text h2 {
		font-size: 28px;
	}

	.hero-text p {
		font-size: 16px;
	}

	.hero-buttons {
		width: 100%;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}


	.footer-content {
		grid-template-columns: 1fr;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.map-container-full {
		height: 300px;
	}
}

/* Promo Slider */
.promo-slider {
	position: relative;
}

/* Aligns the banner to the same grid as every other section instead of
   bleeding to the viewport edge, which kept forcing its height. */
.slider-frame {
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.slider-track {
	display: flex;
	width: 300%;
	transform: translateX(0);
	transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
	flex: 0 0 33.3333%;
	width: 33.3333%;
	display: block;
}

.slide img {
	display: block;
	width: 100%;
	height: auto;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: var(--gray-light);
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots button:hover {
	background-color: var(--gray-medium);
}

.slider-dots button[aria-selected="true"] {
	background-color: var(--red-primary);
	transform: scale(1.35);
}

.slider-dots button:focus-visible {
	outline: 2px solid var(--red-primary);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.slider-frame {
		border-radius: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slider-track {
		transition: none;
	}
}

/* Visually hidden but still read by search engines and screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Shared closing CTA so every section ends in a next step */
.section-cta {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* How to ask */
.how-to {
	padding: 80px 0;
	background-color: var(--white);
}

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.step-card {
	position: relative;
	background-color: var(--gray-bg);
	border-radius: 12px;
	padding: 32px 28px 28px;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--red-primary);
	color: var(--white);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
}

.step-card h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--black);
	margin-bottom: 8px;
}

.step-card p {
	font-size: 16px;
	color: var(--gray-medium);
}

/* Why GDS */
.why {
	padding: 80px 0;
	background-color: var(--gray-bg);
}

.benefits {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.benefit-card {
	background-color: var(--white);
	border-left: 4px solid var(--red-primary);
	border-radius: 10px;
	padding: 26px 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--black);
	margin-bottom: 8px;
	line-height: 1.3;
}

.benefit-card p {
	font-size: 15px;
	color: var(--gray-medium);
}

/* Kept after the base rules above so they win the cascade */
@media (max-width: 1200px) {
	.benefits {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 968px) {
	.steps {
		grid-template-columns: 1fr;
	}

	.benefits {
		grid-template-columns: repeat(2, 1fr);
	}

	.how-to,
	.why {
		padding: 60px 0;
	}
}

@media (max-width: 640px) {
	.benefits {
		grid-template-columns: 1fr;
	}
}

/* Sticky WhatsApp bar. Phone only: it replaces the floating circle there,
   which overlapped content, and repeats the main CTA within thumb reach. */
.wa-bar {
	display: none;
}

@media (max-width: 768px) {
	.wa-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		padding: 15px 20px;
		padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
		background-color: #25D366;
		color: var(--white);
		font-size: 17px;
		font-weight: 700;
		text-decoration: none;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
	}

	.wa-bar:active {
		background-color: #1FB855;
	}

	/* The bar takes over on phones, so the circle and its tooltip step aside. */
	.wa-float,
	.wa-tooltip {
		display: none !important;
	}

	body {
		padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
	}
}
