/* Acqua Vitali — design system propio (navy + dorado) */

:root {
	--navy: #0b3a66;
	--navy-dark: #082a4a;
	--navy-darker: #061d33;
	--gold: #d79a3c;
	--gold-light: #f0b85e;
	--whatsapp: #25d366;
	--whatsapp-dark: #1ebe59;
	--sky: #eef5fb;
	--white: #ffffff;
	--ink: #1c2b3a;
	--ink-soft: #4a5b6c;
	--border: #e1e9f1;
	--radius: 16px;
	--radius-sm: 10px;
	--font-display: 'Baloo 2', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Evita que las grillas se desborden por el tamaño intrínseco de imágenes (bug clásico de CSS Grid). */
.av-hero-grid > *, .av-b2b-grid > *, .av-cards-grid > *, .av-contacto-grid > *, .av-footer-inner > *, .av-pasos-grid > * {
	min-width: 0;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

table { max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
	font-family: var(--font-display);
	color: var(--navy);
	line-height: 1.15;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.av-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.av-skip {
	position: absolute;
	left: -999px;
	top: auto;
}
.av-skip:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	background: var(--white);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
}

/* ===== Header ===== */
.av-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	height: var(--header-h);
	display: flex;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.av-header-inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.av-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.av-brand-logo { height: 48px; width: 48px; border-radius: 50%; display: block; }

.av-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.av-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.av-brand-tag { font-size: .62rem; letter-spacing: .12em; color: var(--gold-light); text-transform: uppercase; font-weight: 600; }

.av-footer .av-brand-name { color: var(--white); }
.av-footer .av-brand-tag { color: var(--gold-light); }

.av-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.av-nav a {
	color: var(--white);
	font-weight: 500;
	font-size: .95rem;
	white-space: nowrap;
}
.av-nav a:hover { color: var(--gold-light); }

.av-nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--whatsapp);
	color: var(--white) !important;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
}
.av-nav-cta:hover { background: var(--whatsapp-dark); color: var(--white) !important; }

.av-menu-toggle-input { display: none; }
.av-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 8px;
	z-index: 110;
}
.av-menu-toggle span {
	width: 26px;
	height: 3px;
	background: var(--white);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

/* ===== WhatsApp flotante ===== */
.av-wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--whatsapp);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
	z-index: 90;
	transition: transform .15s ease;
}
.av-wa-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.av-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;
}

/* ===== Botones ===== */
.av-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .98rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, background .15s ease, color .15s ease;
}
.av-btn:hover { transform: translateY(-2px); }
.av-btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.av-btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }
.av-btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.av-dark .av-btn-outline, .av-footer .av-btn-outline { border-color: var(--white); color: var(--white); }
.av-btn-primary { background: var(--gold); color: var(--navy-darker); width: 100%; border: none; }
.av-btn-primary:hover { background: var(--gold-light); }
.av-btn-sm { padding: 10px 18px; font-size: .88rem; width: 100%; }

/* ===== Hero ===== */
.av-hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--sky), var(--white)); }
.av-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.av-hero-lead { font-size: 1.08rem; max-width: 46ch; }
.av-hero-logo { width: 150px; height: 150px; border-radius: 50%; display: block; margin-bottom: 8px; box-shadow: 0 10px 24px rgba(11,58,102,.18); }
.av-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.av-hero-media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(11,58,102,.18); }

/* ===== Secciones ===== */
.av-section { padding: 64px 0; }
.av-eyebrow {
	color: var(--gold);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .8rem;
	margin: 0 0 8px;
}
.av-section-lead { max-width: 60ch; font-size: 1.05rem; }

.av-dark {
	background: linear-gradient(180deg, var(--navy), var(--navy-dark));
	color: var(--white);
}
.av-dark h2, .av-dark h3 { color: var(--white); }
.av-dark p { color: #cfe0f0; }
.av-dark .av-eyebrow { color: var(--gold-light); }

.av-center { text-align: center; margin-top: 28px; }

/* ===== Cards grid ===== */
.av-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-top: 32px;
}
.av-cards-grid-3 { grid-template-columns: 1fr; }
.av-cards-grid-2 { grid-template-columns: 1fr; }

.av-card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: 0 8px 24px rgba(11,58,102,.08);
	display: flex;
	flex-direction: column;
}
.av-card-light {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: none;
}
.av-dark .av-card-light { color: var(--white); }
.av-dark .av-card-light p { color: #cfe0f0; }
.av-card-light img { border-radius: var(--radius-sm); margin-bottom: 14px; }

.av-card-product { padding: 0; overflow: hidden; }
.av-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sky); }
.av-card-media img { width: 100%; height: 100%; object-fit: cover; }
.av-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.av-card-price { color: var(--gold); font-weight: 700; font-size: .92rem; margin: 0 0 10px; }
.av-card-body .av-btn { margin-top: auto; }

.av-card-testimonio { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.av-testimonio-cita { font-size: 1.05rem; color: var(--white); font-style: italic; }
.av-testimonio-nombre { font-weight: 700; color: var(--gold-light); margin-bottom: 0; }
.av-testimonio-rol { font-size: .85rem; color: #b9cde3; margin-bottom: 0; }

/* ===== Pasos ===== */
.av-pasos-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 32px; text-align: center; }
.av-paso-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--navy-darker);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	margin-bottom: 14px;
}

/* ===== B2B ===== */
.av-b2b-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.av-b2b-media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(11,58,102,.14); }
.av-check-list { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.av-check-list li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.av-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--whatsapp);
	font-weight: 700;
}

/* ===== Page title band (contacto / privacidad / terminos) ===== */
.av-page-title {
	background: linear-gradient(180deg, var(--navy), var(--navy-dark));
	padding: 48px 0;
	text-align: center;
}
.av-page-title h1 { color: var(--white); margin: 0; }

.av-content { padding: 40px 0; }

/* ===== Contacto ===== */
.av-contacto { background: var(--sky); }
.av-contacto-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 32px; align-items: start; }
.av-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.av-info-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}
.av-info-list li:last-child { border-bottom: none; }
.av-info-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--navy);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.av-info-list strong {
	display: block;
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 2px;
}
.av-info-list a, .av-info-list span > span:not(.av-info-icon) { color: var(--ink); }

.av-contacto-form {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: 0 10px 30px rgba(11,58,102,.1);
}
.av-form { display: flex; flex-direction: column; gap: 4px; }
.av-form label {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink);
	margin-top: 14px;
}
.av-form input[type=text], .av-form input[type=tel], .av-form select, .av-form textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--sky);
	color: var(--ink);
	width: 100%;
}
.av-form textarea { resize: vertical; }
.av-form button { margin-top: 20px; }
.av-hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.av-form-aviso { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.av-form-ok { background: #e4f8ec; color: #1a7a3e; }
.av-form-error { background: #fdeceb; color: #b3261e; }

/* ===== Footer ===== */
.av-footer {
	background: var(--navy-darker);
	color: #c8d7e6;
	padding: 56px 0 0;
}
.av-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
.av-footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.av-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.av-footer-col a:hover { color: var(--gold-light); }
.av-footer-brand p { color: #a9bdd1; margin-top: 12px; }

.av-footer-bottom {
	margin-top: 44px;
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 20px 24px;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	text-align: center;
	font-size: .85rem;
}
.av-credito { display: inline-flex; align-items: center; gap: 8px; color: #a9bdd1; }
.av-credito-tommy { border-radius: 4px; }
.av-footer-legal { display: flex; gap: 20px; }
.av-footer-legal a:hover { color: var(--gold-light); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
	.av-cards-grid-2 { grid-template-columns: 1fr 1fr; }
	.av-pasos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
	.av-cards-grid { grid-template-columns: 1fr 1fr; }
	.av-cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.av-contacto-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
	.av-cards-grid-product { grid-template-columns: repeat(3, 1fr); }
	.av-hero-grid { grid-template-columns: 1.1fr .9fr; }
	.av-b2b-grid { grid-template-columns: .9fr 1.1fr; }
	.av-footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (max-width: 1039px) {
	.av-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: var(--navy-dark);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 24px 20px;
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: transform .18s ease, opacity .18s ease;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.av-nav a {
		width: 100%;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255,255,255,.1);
	}
	.av-nav-cta { justify-content: center; margin-top: 14px; }
	.av-menu-toggle { display: flex; }
	.av-menu-toggle-input:checked ~ .av-nav {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
	.av-menu-toggle-input:checked ~ .av-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.av-menu-toggle-input:checked ~ .av-menu-toggle span:nth-child(2) { opacity: 0; }
	.av-menu-toggle-input:checked ~ .av-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (min-width: 1040px) {
	.av-cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
