/* Reset-ish */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;color:#222;font-size:16px}
a{color:inherit;text-decoration:none}

.container{width:90%;max-width:1180px;margin:0 auto}

.site-header{position:fixed;top:0;left:0;right:0;z-index:120;transition:background-color .28s ease,color .28s ease;}
.site-header .header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.header-inner .hamburger{margin-left:auto}
.site-header .logo{display:flex;align-items:center;gap:12px}
.site-header .logo img{height:44px}
.site-header .brand-text{font-family: 'krinkes decor';font-weight:700;font-size:28px;color:#fff}
.main-nav ul{list-style:none;display:flex;gap:22px;align-items:center}
.main-nav a{font-family: 'Horizon';color:#fff;padding:10px 8px;border-radius:4px;font-size:16px;font-weight:600}
.main-nav a:hover{background:rgba(255,255,255,0.08)}

/* Index, porque no funciona */
.intro-right p {font-family: 'Oswald';}

/* ---------------------------------------------------- */
/* MENÚ HAMBURGUESA MODERNO                             */
/* ---------------------------------------------------- */
.hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 10px;
	border-radius: 8px;
	width: 44px;
	height: 44px;
	position: relative;
	z-index: 1001;
	transition: background-color 0.3s ease;
}

.hamburger:hover {
	background: rgba(96, 165, 250, 0.1);
}

.hamburger:active {
	transform: scale(0.95);
}

/* Barras del hamburguesa */
.hamburger .bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2px;
}

.hamburger .bar:nth-child(1) {
	top: 12px;
}

.hamburger .bar:nth-child(2) {
	top: 21px;
}

.hamburger .bar:nth-child(3) {
	top: 30px;
}

/* Color según scroll */
body:not(.scrolled) .hamburger {
	color: #fff;
}

body.scrolled .hamburger {
	color: #111;
}

/* Animación de transformación a X cuando está abierto */
body.nav-open .hamburger .bar:nth-child(1) {
	top: 21px;
	transform: translateX(-50%) rotate(45deg);
}

body.nav-open .hamburger .bar:nth-child(2) {
	opacity: 0;
	transform: translateX(-50%) scaleX(0);
}

body.nav-open .hamburger .bar:nth-child(3) {
	top: 21px;
	transform: translateX(-50%) rotate(-45deg);
}

/* Menú desplegable moderno */
.main-nav ul {
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.nav-open .main-nav ul {
	display: flex !important;
	flex-direction: column;
	gap: 4px;
	position: fixed;
	top: 70px;
	right: 5%;
	background: #ffffff;
	color: #111;
	padding: 16px;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(96, 165, 250, 0.1);
	min-width: 220px;
	z-index: 1000;
	opacity: 1;
	transform: translateY(0);
	animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.nav-open .main-nav ul a {
	color: #111;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 10px;
	transition: all 0.2s ease;
	display: block;
}

body.nav-open .main-nav ul a:hover {
	background: rgba(96, 165, 250, 0.12);
	color: #3b82f6;
	transform: translateX(4px);
}

/* Hero base (all pages) */
.hero{position:relative;height:100vh;min-height:560px;background-image:linear-gradient(rgba(0,0,0,0.08),rgba(0,0,0,0.02)),url('../images/bandits_13.png');background-size:cover;background-position:center center;display:flex;align-items:center;justify-content:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 40%);} 
.hero-slides{position:absolute;inset:0;overflow:hidden}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center center;opacity:0;transition:opacity 1s ease;will-change:opacity}
.hero-slide.active{opacity:1}
.hero-content{position:relative;z-index:6;text-align:center;color:#fff}
.hero-title{font-family: 'krinkes decor';font-size:46px;}

/* Default state: header over hero (transparent look) */
body:not(.scrolled) .site-header{background:transparent;padding-top:10px;padding-bottom:0}
body:not(.scrolled) .site-header .brand-text, body:not(.scrolled) .main-nav a{color:#fff}
body:not(.scrolled) .site-header .brand-text{font-size:28px}

/* Scrolled state: small fixed header */
/* When scrolled, header keeps same size but switches background to white */
body.scrolled .site-header{background:#fff;color:#111;box-shadow:0 4px 12px rgba(0,0,0,0.08)}
body.scrolled .site-header .brand-text{color:#111;font-size:28px}
/* ---------------------------------------------------- */
/* RESET Y CONFIGURACIÓN GLOBAL                        */
/* ---------------------------------------------------- */
/* Establece box-sizing y elimina márgenes/padding por defecto */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Tamaños y color base del documento */
html,
body {
	height: 100%;
	color: #222;
	font-size: 16px;
}

/* Enlaces: comportamiento por defecto */
a {
	color: inherit;
	text-decoration: none;
}

/* Contenedor central reutilizable */
.container {
	width: 90%;
	max-width: 1180px;
	margin: 0 auto;
}


/* ---------------------------------------------------- */
/* CABECERA Y NAVEGACIÓN                               */
/* ---------------------------------------------------- */
/* Cabecera posicionada inicialmente sobre el hero */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 120;
	transition: background-color .28s ease, transform .28s ease, color .28s ease;
	will-change: transform, background-color;
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
}

.site-header .logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header .logo img {
	height: 44px;
}

.site-header .brand-text {
	font-family: 'krinkes decor';
	font-weight: 700;
	font-size: 28px;
	color: #fff;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	align-items: center;
}

.main-nav a {
	font-family: 'Horizon';
	color: #fff;
	padding: 10px 8px;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
}

.main-nav a:hover {
	background: rgba(255,255,255,0.08);
}

/* Forzar la fuente Oswald en los párrafos de la intro si está disponible */
.intro-right p {
	font-family: 'Oswald', sans-serif;
}


/* ---------------------------------------------------- */
/* HERO / CABECERA PRINCIPAL                            */
/* ---------------------------------------------------- */
.hero {
	position: relative;
	height: 100vh;
	min-height: 560px;
	background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.02)), url('../images/bandits_13.png');
	background-size: cover;
	background-position: center center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 40%);
}

.hero-slides {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	opacity: 0;
	transition: opacity 1s ease;
	will-change: opacity;
}

.hero-slide.active {
	opacity: 1;
}

.hero-slide img,
.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
	position: relative;
	z-index: 6;
	text-align: center;
	color: #fff;
}

.hero-title{
	font-family: 'krinkes decor', 'krinkes', cursive;
	font-size: 46px;
	color: #fff;
	letter-spacing: 1px;
	text-shadow: 0 4px 12px rgba(0,0,0,0.28);
}

/* Estado por defecto: cabecera sobre el hero (transparente) */
body:not(.scrolled) .site-header {
	background: transparent;
}

/* Enhanced hero styles: centered content, readable overlay, CTA */
.hero {
	position: relative;
	min-height: 64vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.hero-slides{position:absolute;inset:0;overflow:hidden}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.hero-slide.active{opacity:1}
.hero-overlay{position:absolute;inset:0;/* lighter overlay to keep images brighter */background:linear-gradient(180deg,rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.36) 100%);pointer-events:none}
.hero-content{position:relative;z-index:22;max-width:980px;padding:40px 20px;text-align:center}
.hero-title{font-family: 'krinkes decor', 'krinkes', cursive; font-size:3.2rem;line-height:1;margin:0 0 8px;color:#fff;text-shadow:0 4px 10px rgba(0,0,0,0.28);letter-spacing:0.6px}
.hero-subtitle{font-family: 'Horizon', 'Oswald', sans-serif;font-size:1.05rem;margin:0 0 18px;color:rgba(255,255,255,0.95)}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-cta{display:inline-flex;align-items:center;justify-content:center;text-align:center;font-family: 'Horizon', 'Oswald', sans-serif;background:#ff5a3c;color:#fff;padding:10px 18px;border-radius:8px;text-decoration:none;font-weight:700;box-shadow:0 6px 20px rgba(255,90,60,0.14);transition:transform .12s ease, box-shadow .12s ease}
.hero-cta:hover,.hero-cta:focus{transform:translateY(-2px);box-shadow:0 10px 30px rgba(255,90,60,0.18)}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.9);color:#fff;padding:8px 16px;border-radius:8px;text-decoration:none}

.btn-epic-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.9);
	color: #fff;
	padding: 10px 22px;
	border-radius: 50px;
	font-family: 'Horizon', sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-epic-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-epic-secondary svg {
	transition: transform 0.3s ease;
}

.btn-epic-secondary:hover svg {
	transform: translateX(4px);
}

@media (max-width:720px){
	.hero-title{font-size:2rem}
	.hero-subtitle{font-size:0.95rem}
	.hero{min-height:56vh}
}

body:not(.scrolled) .site-header .brand-text,
body:not(.scrolled) .main-nav a {
	color: #fff;
}

/* Estado scrolled: cabecera fija y compacta */
body.scrolled .site-header {
	position: fixed;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	padding: 0; /* Removed static padding */
}

body.scrolled .site-header .brand-text {
	color: #111;
	font-size: 28px;
}

body.scrolled .site-header .logo img {
	height: 44px;
}

body.scrolled .main-nav a {
	color: #222;
}

/* Ajustes responsivos para navegación */
@media (max-width: 800px) {
	.main-nav ul {
		display: none;
	}

	.hamburger {
		display: inline-flex;
	}

	.site-header .brand-text {
		font-size: 18px;
	}

	.main-nav a {
		font-size: 15px;
		padding: 10px 12px;
	}

	.hero-title {
		font-size: 34px;
	}

	body.nav-open .main-nav ul {
		right: 12px;
		left: 12px;
		min-width: unset;
		max-width: calc(100vw - 24px);
	}
}

/* Pequeño pulido visual: transiciones suaves */
header.site-header,
.hero {
	transition: all .28s ease;
}

/* ---------------------------------------------------- */
/* FOOTER COMÚN                                         */
/* ---------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #06070a 0%, #0b1220 100%);
  color: #cbd5e1;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.site-footer .footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	place-items: center;
	gap: 30px;
	padding: 0 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.footer-logo-link {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.footer-logo-link:hover {
  transform: translateY(-4px);
}

.footer-logo {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  display: block;
}

.footer-name {
  font-family: 'krinkes';
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.footer-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  line-height: 1.5;
  font-family: 'Horizon', sans-serif;
}

.footer-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;grid-column:2}

.footer-social-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	grid-column: 1;
}

.footer-social{display:flex;gap:10px;align-items:center;justify-content:center}
.social-link{display:inline-block;background:#fff;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;transition:transform .12s ease}
.social-link:hover{transform:scale(1.08)}
.social-icon{width:20px;height:20px;display:block}
.footer-dcs{display:flex;align-items:center;justify-content:center}
.dcs-logo{width:140px;height:auto;display:block}
.footer-version{font-family:'Horizon',sans-serif;background:rgba(255,255,255,0.04);color:#fff;padding:6px 8px;border-radius:8px;font-weight:700;font-size:14px;grid-column:3;justify-self:end}

.footer-copyright {
  margin-top: 2px;
}

.footer-credit {
  margin-top: 2px;
  align-items: center;
  text-align: center;
}

@media (max-width: 800px) {
	.site-footer {
		padding: 22px 0;
	}

	.footer-name {
		font-size: 18px;
	}

	.site-footer .footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
		align-items: center;
		gap: 10px;
		padding: 0 20px;
	}

	.footer-version {justify-self:center}

	.dcs-logo {width:78px}
	
	.social-icon {width:16px;height:16px}

  .footer-meta {
    font-size: 11px;
  }
}

/* Fallback específico para la página Social: imagen hero por defecto cuando JS no inicializa slides */
.page-social .hero-slide.fallback {
	background-image: url('../images/bandits_4.webp');
	background-size: cover;
	background-position: center;
}
/* ========================================================================= */
/* NATIVE MOBILE APP EXPERIENCE */
/* ========================================================================= */
.mobile-bottom-nav {
display: none; /* Hidden on Desktop */
}

@media (max-width: 768px) {
/* 1. Hide Traditional Navigation */
.hamburger, .main-nav {
display: none !important;
}

/* 2. Simplified Header */
.site-header {
background: rgba(15, 23, 46, 0.8) !important;
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header .header-inner {
justify-content: center;
padding: 10px 0;
}

/* 3. Bottom Navigation Bar */
.mobile-bottom-nav {
display: flex;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: rgba(15, 23, 46, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-top: 1px solid rgba(255,255,255,0.1);
height: 60px; /* Default height */
height: calc(60px + env(safe-area-inset-bottom));
z-index: 9999;
justify-content: space-around;
align-items: center;
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.mobile-bottom-nav .nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #94a3b8;
font-size: 10px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: center;
flex: 1;
height: 100%;
transition: all 0.2s ease;
background: transparent;
padding-top: 8px;
}

.mobile-bottom-nav .nav-icon {
width: 24px;
height: 24px;
margin-bottom: 4px;
stroke-width: 2px;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State */
.mobile-bottom-nav .nav-item.active {
color: #60a5fa;
}

.mobile-bottom-nav .nav-item.active .nav-icon {
transform: translateY(-2px);
stroke: #60a5fa;
filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

.mobile-bottom-nav .nav-item:active .nav-icon {
transform: scale(0.9);
}

/* 4. Layout Adjustments */
body {
padding-bottom: 80px; /* Space for bottom nav */
-webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* Hide Scrollbar but allow scrolling */
body::-webkit-scrollbar {
width: 0px;
background: transparent;
}

/* Adjust Hero Text for Mobile */
.hero-title {
font-size: 2.2rem !important; /* Smaller on mobile */
text-align: center;
}

.hero-subtitle {
text-align: center;
}

.hero-content {
padding: 0 20px;
align-items: center;
}

.hero-actions {
justify-content: center;
}
}
