:root {
	--navy: #0b2545;
	--teal-dark: #0e7c86;
	--teal: #2ec4b6;
	--teal-light: #7fe7dc;
	--white: #ffffff;
	--gray-soft: #f4f6f7;
	--gray-warm: #6b7280;
	--radius: 14px;
	--shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
	--font: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font);
	color: var(--navy);
	background: var(--white);
	line-height: 1.5;
}

img {
	max-width: 100%;
	display: block;
}

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

.container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid #eceff1;
}

.site-header nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 24px;
	max-width: 1120px;
	margin: 0 auto;
}

.site-header .logo-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-shrink: 0;
	gap: 2px;
	padding: 8px 0;
}

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

.site-header .logo img {
	height: 64px;
}

.nav-tagline {
	margin: 0;
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--teal-dark);
	font-size: clamp(0.7em, 1.6vw, 0.85em);
	white-space: nowrap;
}

@media (max-width: 720px) {
	.site-header nav {
		flex-wrap: wrap;
		padding: 10px 24px;
	}
	.site-header .logo-block {
		order: 1;
		padding: 0;
	}
	.site-header .logo img {
		height: 56px;
	}
	.nav-tagline {
		font-size: clamp(0.75em, 3vw, 0.9em);
		white-space: normal;
	}
	.menu-toggle {
		order: 2;
	}
}

.site-header .links {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 0.95em;
	font-weight: 600;
}

.site-header .links a:hover {
	color: var(--teal-dark);
}

.btn-cta {
	background: var(--navy);
	color: var(--white) !important;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.btn-cta:hover {
	background: var(--teal-dark);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 1em;
	color: var(--navy);
	font-family: var(--font);
}

@media (max-width: 720px) {
	.site-header .links {
		position: fixed;
		inset: 64px 0 0 0;
		background: var(--white);
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		gap: 20px;
		display: none;
	}
	.site-header .links.open {
		display: flex;
	}
	.menu-toggle {
		display: block;
	}
}

/* Footer */
.site-footer {
	background: var(--navy);
	color: var(--teal-light);
	padding: 48px 24px 40px;
	margin-top: 80px;
	text-align: center;
	font-size: 0.9em;
	border-top: 3px solid var(--teal);
}

.site-footer a:hover {
	color: var(--white);
}

.site-footer .footer-logo {
	height: 72px;
	margin: 0 auto 20px;
}

@media (max-width: 720px) {
	.site-footer .footer-logo {
		height: 84px;
	}
}

/* Sections */
.hero {
	background: var(--navy);
	color: var(--white);
	text-align: center;
	padding: 90px 24px;
}

.hero p.eyebrow {
	color: var(--teal-light);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.85em;
	font-weight: 700;
	margin-bottom: 12px;
}

.hero h1 {
	font-size: clamp(2em, 5vw, 3.2em);
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.hero p.lead {
	max-width: 560px;
	margin: 0 auto 28px;
	color: #cdd8e3;
	font-size: 1.1em;
}

section.container {
	padding-top: 64px;
	padding-bottom: 64px;
}

section {
	padding: 64px 0;
}

h2.section-title {
	font-size: 1.8em;
	margin-bottom: 32px;
	text-align: center;
	letter-spacing: -0.01em;
}

/* Cards */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.card {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	background: var(--white);
	border: 1px solid #eceff1;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(11, 37, 69, 0.12);
}

.card .photo {
	height: 200px;
	background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 0.9em;
	font-weight: 600;
	text-align: center;
	padding: 16px;
}

.card .body {
	padding: 20px;
}

.card h3 {
	margin: 0 0 8px;
	font-size: 1.2em;
}

.card p {
	color: var(--gray-warm);
	font-size: 0.95em;
	margin: 0 0 16px;
}

.badge {
	display: inline-block;
	background: var(--gray-soft);
	color: var(--navy);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.8em;
	font-weight: 600;
	margin-right: 8px;
	margin-bottom: 8px;
}

.price {
	font-size: 1.3em;
	font-weight: 700;
	color: var(--navy);
}

.price small {
	font-size: 0.6em;
	color: var(--gray-warm);
	font-weight: 500;
}

/* Fondo turquesa oscuro: texto blanco sobre #2ec4b6 no alcanza el contraste WCAG AA (2.2:1). */
.btn {
	display: inline-block;
	background: var(--teal-dark);
	color: var(--white);
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-size: 0.95em;
	font-family: var(--font);
	transition: background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
	background: var(--navy);
}

.btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.btn.secondary {
	background: transparent;
	color: var(--navy);
	border: 1.5px solid var(--navy);
}

.btn.secondary:hover {
	background: var(--navy);
	color: var(--white);
}

.form-msg {
	margin-top: 12px;
	font-size: 0.95em;
	color: #c92127;
}

.form-msg.ok {
	color: var(--teal-dark);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.empty-state {
	text-align: center;
	color: var(--gray-warm);
	padding: 40px;
}

.skeleton {
	background: linear-gradient(90deg, var(--gray-soft) 25%, #e9edf0 37%, var(--gray-soft) 63%);
	background-size: 400% 100%;
	animation: skeleton-loading 1.4s ease infinite;
	border-radius: 8px;
	height: 16px;
}

@keyframes skeleton-loading {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

/* Forms */
label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 6px;
}

input,
select,
textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #dde3e7;
	border-radius: 10px;
	font-family: var(--font);
	font-size: 1em;
	margin-bottom: 18px;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--teal-dark);
	box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}

/* Foco visible y homogéneo para teclado en enlaces y botones */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Pie: enlaces legales */
.site-footer .footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 14px 0 18px;
}

.site-footer .footer-links a,
.site-footer #footer-whatsapp a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(127, 231, 220, 0.4);
}

/* Botón flotante de WhatsApp (abajo a la izquierda; el chat ocupa la derecha).
   Sube lo que mida el banner de cookies mientras esté visible. */
#agy-whatsapp {
	position: fixed;
	left: 24px;
	bottom: calc(24px + var(--agy-banner-h, 0px));
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(11, 37, 69, 0.3);
	z-index: 998;
	transition: background 0.2s ease, transform 0.2s ease, bottom 0.2s ease;
}

#agy-whatsapp:hover {
	background: var(--teal-dark);
	transform: translateY(-2px);
}

body #agy-chat-bubble {
	bottom: calc(24px + var(--agy-banner-h, 0px));
	transition: bottom 0.2s ease;
}

body #agy-chat-panel {
	bottom: calc(96px + var(--agy-banner-h, 0px));
}

/* Aviso de cookies: barra discreta inferior */
#agy-cookies {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background: var(--white);
	color: var(--navy);
	border-top: 1px solid #eceff1;
	box-shadow: 0 -8px 24px rgba(11, 37, 69, 0.1);
	padding: 14px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	font-size: 0.9em;
	animation: agy-slide-up 0.3s ease;
}

#agy-cookies p {
	margin: 0;
	max-width: 640px;
}

.agy-cookies-acciones {
	display: flex;
	align-items: center;
	gap: 18px;
}

.agy-cookies-acciones a {
	color: var(--teal-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#agy-cookies .btn {
	padding: 8px 18px;
}

@keyframes agy-slide-up {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#agy-cookies {
		animation: none;
	}
}

/* Casilla de aceptación (privacidad) */
.check-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 0.9em;
	margin-bottom: 18px;
}

.check-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--teal-dark);
}

.check-row a {
	color: var(--teal-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* FAQ (acordeón nativo <details>) */
.faq {
	max-width: 720px;
	margin: 0 auto;
}

.faq details {
	border-bottom: 1px solid #eceff1;
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 40px 18px 0;
	font-weight: 600;
	position: relative;
	display: block;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.faq details[open] summary::after {
	content: "\2212";
	background: var(--navy);
	color: var(--white);
}

.faq summary:hover {
	color: var(--teal-dark);
}

.faq .faq-respuesta {
	color: var(--gray-warm);
	margin: 0 0 18px;
	max-width: 640px;
}

/* Página del Capitán */
.capitan-hero {
	position: relative;
	min-height: 62vh;
	background: linear-gradient(135deg, var(--navy) 0%, #123a63 60%, var(--teal-dark) 100%);
	color: var(--white);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.capitan-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.capitan-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.35) 55%, rgba(11, 37, 69, 0.1) 100%);
}

.capitan-hero-texto {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 24px;
}

.capitan-hero-texto .eyebrow {
	color: var(--teal-light);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.85em;
	font-weight: 700;
	margin: 0 0 10px;
}

.capitan-hero-texto h1 {
	font-size: clamp(2em, 5vw, 3.4em);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

.capitan-titulacion {
	margin: 0;
	font-size: 1.15em;
	color: #cdd8e3;
}

.capitan-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-top: -40px;
	position: relative;
	z-index: 2;
}

.capitan-stat {
	background: var(--white);
	border: 1px solid #eceff1;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	text-align: center;
}

.capitan-stat strong {
	display: block;
	font-size: 1.8em;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.capitan-stat span {
	color: var(--gray-warm);
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.capitan-bio {
	max-width: 720px;
	margin: 0 auto;
	font-size: 1.05em;
	line-height: 1.7;
}

.capitan-bio p {
	margin: 0 0 20px;
}

.capitan-certs {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 720px;
	display: grid;
	gap: 12px;
}

.capitan-certs li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 18px;
	border: 1px solid #eceff1;
	border-radius: 12px;
	background: var(--gray-soft);
}

.capitan-certs li::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 7px;
	border-radius: 50%;
	background: var(--teal);
}

.capitan-cta {
	background: var(--navy);
	color: var(--white);
	text-align: center;
	padding: 64px 24px;
	margin-top: 32px;
}

.capitan-cta p {
	max-width: 560px;
	margin: 0 auto 24px;
	color: #cdd8e3;
	font-size: 1.1em;
}

/* Tarjeta "Tu capitán" en la portada */
.home-capitan {
	display: grid;
	grid-template-columns: minmax(0, 320px) 1fr;
	gap: 32px;
	align-items: center;
	border: 1px solid #eceff1;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	background: var(--white);
}

.home-capitan .foto {
	aspect-ratio: 4 / 5;
	background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
}

.home-capitan .foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-capitan .texto {
	padding: 24px 32px 24px 0;
}

.home-capitan .texto p {
	color: var(--gray-warm);
	margin: 0 0 20px;
}

@media (max-width: 720px) {
	.home-capitan {
		grid-template-columns: 1fr;
	}
	.home-capitan .foto {
		aspect-ratio: 4 / 3;
	}
	.home-capitan .texto {
		padding: 0 24px 24px;
	}
	.capitan-stats {
		margin-top: 24px;
	}
}

/* Páginas legales */
.legal {
	max-width: 760px;
	line-height: 1.7;
}

.legal h2 {
	font-size: 1.3em;
	margin: 36px 0 12px;
}

.legal p,
.legal li {
	color: #3b4759;
}

.legal a {
	color: var(--teal-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
	margin: 12px 0;
}

.legal th,
.legal td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eceff1;
	vertical-align: top;
}

.legal th {
	background: var(--gray-soft);
	font-weight: 600;
}

.legal .tabla-scroll {
	overflow-x: auto;
}

.legal .placeholder-aviso {
	background: #fff7e6;
	border: 1px solid #ffe0a3;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 0.9em;
	color: #7a4b00;
}
