/* ===== CSS Variables / Themes ===== */
:root {
	--gold: #bf994e;
	--gold-light: #d4b06a;
	--gold-dark: #a6832f;
	--dark: #11100c;
	--dark-lighter: #1e1d17;
	--dark-card: #2a2820;

	/* Light mode (default) */
	--bg-primary: #f5f2ec;
	--bg-secondary: #eae5da;
	--bg-card: #ffffff;
	--text-primary: #11100c;
	--text-secondary: #4a4638;
	--text-muted: #7a7464;
	--border: #d6d0c4;
	--shadow: rgba(17, 16, 12, 0.1);
	--nav-bg: rgba(245, 242, 236, 0.95);
	--hero-overlay: linear-gradient(120deg, rgba(17, 16, 12, 0.56) 0%, rgba(17, 16, 12, 0.36) 52%, rgba(191, 153, 78, 0.42) 100%);
	--hero-glow-1: rgba(212, 176, 106, 0.48);
	--hero-glow-2: rgba(236, 211, 161, 0.3);
	--hero-glow-3: rgba(166, 131, 47, 0.26);
	--hero-glow-opacity: 0.72;
	--hero-glow-animation: none;
	--hero-content-bg: rgba(27, 22, 12, 0.34);
	--hero-content-border: rgba(212, 176, 106, 0.42);
	--hero-content-blur: 0px;
}

[data-theme="dark"] {
	--bg-primary: #11100c;
	--bg-secondary: #1e1d17;
	--bg-card: #2a2820;
	--text-primary: #f5f2ec;
	--text-secondary: #c9c3b5;
	--text-muted: #8a8474;
	--border: #3a3830;
	--shadow: rgba(0, 0, 0, 0.3);
	--nav-bg: rgba(17, 16, 12, 0.95);
	--hero-overlay: linear-gradient(120deg, rgba(17, 16, 12, 0.82) 0%, rgba(17, 16, 12, 0.68) 60%, rgba(191, 153, 78, 0.24) 100%);
	--hero-glow-1: rgba(191, 153, 78, 0.25);
	--hero-glow-2: rgba(30, 29, 23, 0.38);
	--hero-glow-3: rgba(30, 29, 23, 0.2);
	--hero-glow-opacity: 1;
	--hero-glow-animation: heroGlowShift 14s ease-in-out infinite alternate;
	--hero-content-bg: rgba(17, 16, 12, 0.18);
	--hero-content-border: rgba(191, 153, 78, 0.26);
	--hero-content-blur: 4px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	transition:
		background-color 0.3s,
		color 0.3s;
}

a {
	color: var(--gold);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--gold-light);
}

img {
	max-width: 100%;
	height: auto;
}

/* ===== Navigation ===== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--nav-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	padding: 0 2rem;
	transition: background 0.3s;
}

.nav-container {
	max-width: none;
	margin: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-primary);
}

.nav-logo img {
	height: 50px;
	width: 50px;
	object-fit: contain;
}

.nav-logo span {
	color: var(--gold);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
	margin-left: auto;
}

.nav-links a {
	color: var(--text-primary);
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
}

.nav-links a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gold);
	transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--gold);
}

/* Theme Toggle */
.theme-toggle {
	background: none;
	border: 2px solid var(--border);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: var(--text-primary);
	transition:
		border-color 0.3s,
		color 0.3s;
}

.theme-toggle:hover {
	border-color: var(--gold);
	color: var(--gold);
}

/* Mobile hamburger */
.nav-hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.nav-hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--text-primary);
	border-radius: 2px;
	transition:
		transform 0.3s,
		opacity 0.3s;
}

/* ===== Hero Section ===== */
.hero {
	position: relative;
	height: 90vh;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: url("../assets/hero-bg.jpg") center/cover no-repeat;
	margin-top: 70px;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-overlay);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(70% 60% at 12% 22%, var(--hero-glow-1) 0%, transparent 70%),
		radial-gradient(55% 50% at 85% 72%, var(--hero-glow-2) 0%, transparent 75%),
		radial-gradient(42% 35% at 58% 88%, var(--hero-glow-3) 0%, transparent 78%);
	animation: var(--hero-glow-animation);
	opacity: var(--hero-glow-opacity);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	padding: 2rem;
	border-radius: 16px;
	background: var(--hero-content-bg);
	border: 1px solid var(--hero-content-border);
	backdrop-filter: blur(var(--hero-content-blur));
}

.hero-logo {
	width: 160px;
	height: 160px;
	object-fit: contain;
	margin-bottom: 1.5rem;
}

.hero h1 {
	font-size: 3rem;
	color: #fff;
	margin-bottom: 0.5rem;
	text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hero h1 span {
	color: var(--gold);
}

.hero p {
	font-size: 1.2rem;
	color: #ddd;
	margin-bottom: 2rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@keyframes heroGlowShift {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
		opacity: 0.9;
	}
	100% {
		transform: translate3d(0, -8px, 0) scale(1.04);
		opacity: 1;
	}
}

.btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition:
		transform 0.2s,
		box-shadow 0.2s,
		background 0.2s;
	border: none;
}

.btn-primary {
	background: var(--gold);
	color: var(--dark);
}

.btn-primary:hover {
	background: var(--gold-light);
	color: var(--dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(191, 153, 78, 0.4);
}

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

.btn-outline:hover {
	background: var(--gold);
	color: var(--dark);
}

.btn-full {
	width: 100%;
}

/* ===== Sections ===== */
.section {
	padding: 5rem 2rem;
}

.section-alt {
	background: var(--bg-secondary);
}

.page-header {
	margin-top: 70px;
	padding-bottom: 0;
}

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

/* ===== About (¿Quiénes somos?) ===== */
.about-section {
	padding: 0rem 0 4rem;
}

.about-image-wrapper {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 8px 32px var(--shadow);
	margin-bottom: 3rem;
}

.about-image-wrapper img {
	width: 100%;
	max-height: 700px;
	object-fit: cover;
	object-position: top;
	display: block;
}

.about-content {
	max-width: 780px;
	margin: 0 auto;
}

.about-content p {
	color: var(--text-secondary);
	font-size: 1.075rem;
	line-height: 1.85;
	margin-bottom: 1.4rem;
}

.about-tagline {
	margin-top: 2.5rem;
	padding: 2rem 2.5rem;
	border-left: 4px solid var(--gold);
	background: var(--bg-card);
	border-radius: 0 0.75rem 0.75rem 0;
	box-shadow: 0 4px 16px var(--shadow);
}

.about-tagline p {
	font-size: 1.2rem;
	font-style: italic;
	color: var(--gold);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.about-tagline span {
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* ===== CTA Section ===== */
.cta-section {
	text-align: center;
}

.cta-title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.cta-title span {
	color: var(--gold);
}

.cta-text {
	color: var(--text-muted);
	max-width: 500px;
	margin: 0 auto 2rem;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header h2 {
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
}

.section-header h2 span {
	color: var(--gold);
}

.section-header p {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
}

/* ===== Categories Grid ===== */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.category-card {
	background: var(--bg-card);
	border-radius: 12px;
	padding: 2rem;
	border: 1px solid var(--border);
	transition:
		transform 0.3s,
		box-shadow 0.3s;
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px var(--shadow);
}

.category-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.category-card h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--gold);
}

.category-card .age-range {
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.schedule-list {
	list-style: none;
	margin-top: 1rem;
}

.schedule-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.95rem;
	color: var(--text-secondary);
}

.schedule-list li:last-child {
	border-bottom: none;
}

.schedule-list .day {
	font-weight: 600;
	color: var(--text-primary);
}

/* ===== Trainers ===== */
.trainers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.trainer-card {
	background: var(--bg-card);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	transition:
		transform 0.3s,
		box-shadow 0.3s;
}

.trainer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px var(--shadow);
}

.trainer-photo {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-bottom: 3px solid var(--gold);
}

.trainer-info {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.trainer-info h3 {
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
}

.trainer-role {
	color: var(--gold);
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.trainer-bio {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.trainer-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.trainer-stat {
	text-align: center;
}

.trainer-stat .stat-number {
	font-size: 1.2rem;
	font-weight: 700;
	text-align: center;
	color: var(--gold);
	display: block;
}

.trainer-stat .stat-label {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.trainer-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1.25rem;
	padding: 0.6rem 1.2rem;
	background: #25d366;
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.3s;
}

.trainer-whatsapp:hover {
	background: #1da851;
	color: #fff;
}

.trainer-whatsapp i {
	font-size: 1.2rem;
}

/* ===== Gallery – Carousel ===== */
.carousel {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--bg-card);
	box-shadow: 0 8px 32px var(--shadow);
}

.carousel-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.carousel-slide {
	flex: 0 0 100%;
	min-width: 100%;
	max-height: 70vh;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dark);
}

.carousel-slide img {
	width: 100%;
	max-height: 70vh;
	object-fit: contain;
	display: block;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(17, 16, 12, 0.55);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}

.carousel-btn:hover {
	background: var(--gold);
	color: var(--dark);
}

.carousel-btn-prev {
	left: 1rem;
}

.carousel-btn-next {
	right: 1rem;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 0 0.65rem;
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border);
	border: none;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
	background: var(--gold);
	transform: scale(1.3);
}

/* ===== Gallery – Videos ===== */
.video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.video-card {
	border-radius: 1rem;
	overflow: hidden;
	background: var(--bg-card);
	box-shadow: 0 4px 16px var(--shadow);
}

.video-card.landscape {
	grid-column: span 3;
}

.video-card.portrait {
	grid-column: span 1;
}

.video-card video {
	width: 100%;
	display: block;
}

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

	.video-card.landscape,
	.video-card.portrait {
		grid-column: span 1;
	}
}

/* ===== Contact Form ===== */
.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.contact-info h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.contact-info p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.contact-detail {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.contact-detail-icon {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.contact-detail-text strong {
	display: block;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 0.15rem;
}

.contact-detail-text span {
	color: var(--text-primary);
}

.contact-detail-text p {
	display: grid;
	grid-template-columns: 5.75rem auto;
	align-items: baseline;
	gap: 0.75rem;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.contact-detail-text p:last-child {
	margin-bottom: 0;
}

.contact-person-label {
	color: var(--text-primary);
	/* font-weight: 600; */
}

.contact-hours {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form {
	background: var(--bg-card);
	border-radius: 12px;
	padding: 2rem;
	border: 1px solid var(--border);
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--gold);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* ===== Footer ===== */
.footer {
	background: var(--dark);
	color: #ccc;
	padding: 3rem 2rem 1.5rem;
}

.footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-container {
	justify-self: center;
	align-self: center;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.footer-logo img {
	height: 45px;
}

.footer-logo span {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--gold);
}

.footer p {
	font-size: 0.9rem;
	color: #999;
	max-width: 320px;
}

.footer-slogan{
	text-align: center;
}

.footer h4 {
	color: var(--gold);
	margin-bottom: 1rem;
	font-size: 1rem;
}

.footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: #999;
	font-size: 0.9rem;
}

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

.footer-links li,
.footer-links li a {
	display: flex;
	align-items: center;
	gap: 0;
}

.footer-links li i {
	width: 1.2em;
	min-width: 1.2em;
	text-align: center;
	color: var(--gold);
	margin-right: 0.4rem;
}

.footer-bottom {
	max-width: 1200px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin: 0 auto;
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid #2a2820;
	font-size: 0.85rem;
	color: #666;
}

/* ===== Lightbox ===== */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.lightbox.active {
	display: flex;
}

.lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 8px;
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
}

/* ===== Familia ADN – Carousel Video Slides ===== */
.carousel-slide-video {
	background: var(--dark);
}

.carousel-slide-video video {
	width: 100%;
	max-height: 70vh;
	display: block;
}

/* ===== Familia ADN – Instagram Grid ===== */
.instagram-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.instagram-item {
	position: relative;
	border-radius: 0.75rem;
	overflow: hidden;
	aspect-ratio: 1;
	display: block;
	cursor: pointer;
}

.instagram-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.instagram-item:hover img {
	transform: scale(1.08);
}

.instagram-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 16, 12, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
	color: #fff;
	font-size: 2rem;
}

.instagram-item:hover .instagram-overlay {
	opacity: 1;
}

.instagram-cta {
	text-align: center;
	margin-top: 1rem;
}

.instagram-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.05rem;
	padding: 0.9rem 2.5rem;
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.instagram-btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: var(--nav-bg);
		backdrop-filter: blur(10px);
		flex-direction: column;
		padding: 1rem 2rem 2rem;
		gap: 0;
		border-bottom: 1px solid var(--border);
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links li {
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--border);
		width: 100%;
	}

	.nav-links li:last-child {
		border-bottom: none;
	}

	.nav-hamburger {
		display: flex;
	}

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

	.hero-logo {
		width: 120px;
		height: 120px;
	}

	.section {
		padding: 3rem 1.25rem;
	}

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

	.form-row {
		grid-template-columns: 1fr;
	}

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

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

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

	.instagram-grid {
		gap: 0.5rem;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 1.6rem;
	}

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

	.section-header h2 {
		font-size: 1.7rem;
	}
}
