/*
   Archivo: css/style.css
   Descripción: Estilos CSS para - index.html
   Autor: ChidarruStudios
   Fecha de creación: 18-09-2025
   Última modificación: 18-09-2025
*/

/* ========================
   SCROLL MAS SUAVE
   Configuración de scroll
======================== */
html {
  scroll-behavior: smooth;
}

/* ========================
   RESET BÁSICO
   Elimina márgenes, paddings y ajusta box-model
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   ESTILO GLOBAL
   Fuente base, color de texto y altura de línea
======================== */
body {
  font-family: 'Arial', sans-serif;
  background: #141414; /* Fondo global oscuro */
  color: #e0e0e0;      /* Texto más claro para contraste */
  line-height: 1.5;
}

/* ========================
   CONTENEDOR CENTRAL
   Máximo ancho y centrado automático
======================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================
   ANIMACION DE SECCIONES
   Efecto de entrada suave al hacer scroll
======================== */

/* Al inicio todas las secciones ocultas y desplazadas 
section.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}*/

/* Cuando entran en vista 
section.visible {
  opacity: 1;
  transform: translateY(0);
}*/

/* ========================
   1. CABECERA FIJA — TRANSPARENTE AL INICIO
======================== */
.header-transparent {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: transparent;
  /* estado normal: solo 1rem arriba y abajo */
  padding: 1rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================
   2. ESTADO “OPACO” AL SCROLL
======================== */
.header-transparent.scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

/* ========================
   3. ESTADO EXPANDIDO (submenú abierto)
   Solo añade espacio inferior para el submenú
======================== */
.header-transparent.expanded {
  padding: 1rem 0 4rem; /* Solo para submenús normales como servicios */
  transition: padding 0.3s;
}
.header-transparent.expanded.lang {
  padding: 1rem 0 5rem; /* Solo para el menú de idiomas (lang) */
  transition: padding 0.3s;
}


/* ========================
   LOGO
   Ajusta tamaño máximo del logo y alinea texto
======================== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  max-height: 50px;    /* Limita alto del logo */
  width: auto;
  transition: transform 0.3s; /* Efecto zoom al pasar ratón */
}

.logo img:hover {
  transform: scale(1.1); /* Efecto zoom al pasar ratón */ 
  transition: transform 0.3s;
}


/* ========================
   NAVEGACIÓN
   Lista horizontal de enlaces y colores de hover
======================== */
nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  z-index: 20;
}

nav .nav-links li {
  margin-left: 1.5rem; /* Separación entre ítems */
  position: relative; /* Para submenús */
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #6effeb;      /* Verde al pasar ratón */
}

/* Submenú */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  display: none;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  white-space: nowrap;
  padding: 0.2em 1em;
  display: block;
}

/* ========================
   BOTÓN MENÚ (HAMBURGUESA)
   Solo visible en móvil
======================== */
.nav-toggle {
  display: none;       /* Hidden en desktop */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
}

.nav-toggle:hover {
  color: #6effeb; /* Verde más oscuro al pasar ratón */
}

/* ========================
   RESPONSIVE & MENÚ MÓVIL
   Overlay verde translúcido
======================== */
@media (max-width: 768px) {
  /* Menú oculto por defecto */
  nav .nav-links {
    display: none;               /* sigue oculto hasta .show */
    position: fixed;             /* saca el menú del flujo normal */
    inset: 0;                    /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100vh;               /* cubre toda la altura de la ventana */
    background: rgba(21, 90, 79, 0.85); /* turquesa oscuro translúcido */
    backdrop-filter: blur(4px);
    flex-direction: column;
    justify-content: center;
    align-items: stretch; /* ocupa todo el ancho */
    text-align: center;
    z-index: 1001;               /* debe ser mayor que el header (1000) */
  }

  /* Cuando añadimos la clase .show, simplemente lo mostramos */
  nav .nav-links.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column; 
    display: none;  
    width: 100%;  
  }
  .nav-links.open {
    display: flex;  
  }
  .submenu {
    position: static; 
    box-shadow: none; 
  }
  .submenu.open { 
    display: flex;  
    flex-direction: column; 
  }

  .has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height .4s ease, opacity .4s ease, transform .4s ease;
  }

  .has-submenu .submenu.show {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
  }

  /* El botón hamburguesa encima de todo */
  .nav-toggle {
    display: block;
    z-index: 1100; /* para que siempre esté delante del menú si quieres */
  }

  /* Enlaces sin márgenes extra */
  nav .nav-links li {
    margin: 0;
  }

  /* Enlaces como bloque y hover simple */
  nav .nav-links a {
    display: block;
    padding: 1rem 0;                  /* área táctil cómoda */
    font-size: 1.6rem;
    color: #fff;
    transition: background 0.3s ease;
    width: 100%; /* Ocupa todo el ancho */
  }

  /* Fondo translúcido al pasar ratón */
  nav .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2); /* Fondo blanco translúcido al pasar ratón */
  }

  /* Clase que bloquea el scroll del body */
  .no-scroll {
    overflow: hidden;
    height: 100%;
  }

  /* Grids a una columna en móvil */
  .service-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   2. SECCIÓN HERO
   Vídeo full-screen con overlay de texto y CTA
======================== */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Usa dynamic viewport height cuando está disponible para evitar recortes por UI del navegador */
@supports (height: 100dvh) {
  #hero { height: 100dvh; }
}

.hero-img {
  filter: brightness(0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  top: 40%;
  transform: translateY(-40%);
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ========================
   3. TOURS DESTACADOS
   Grid de tarjetas con imagen + vídeo hover
======================== */
#featured-services {
  background: #141414; /* Fondo */
  padding: 4rem 0;
}

#featured-services h2 {
  text-align: center;
  margin-bottom: 4rem;
  color: #6effeb;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 7rem;
  padding: 0 1rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  will-change: transform, opacity;
  aspect-ratio: 3/3;
  transition: 0.3s
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card:hover {
  /* Variante A: vuelve el escalado suave */
  transform: scale(1.03);
  box-shadow: 0 0 24px 8px rgba(110,255,235,0.35), 0 2px 10px rgba(0,0,0,0.25);
  filter: brightness(1.05);
}


.service-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  text-align: center;
  padding: 1rem 1rem;
}
/* ========================
   Ajustes para pantallas muy estrechas (ej. Z Flip en modo vertical)
   Reduce recortes y espacios para mejor encuadre
======================== */
@media (max-width: 430px) {
  /* Hero: centra más alto el foco y baja ligeramente el overlay */
  .hero-img { object-fit: cover; object-position: 50% 30%; }
  .hero-overlay { top: 35%; transform: translateY(-35%); }

  /* Featured Services: menos gap y tarjetas más altas para mostrar más imagen */
  #featured-services .service-grid { gap: 1.5rem; }
  #featured-services .service-card { aspect-ratio: 4 / 5; }
  #featured-services .service-card img { object-position: center top; }

  /* Contacto: imagen menos recortada */
  .img-container { aspect-ratio: 4 / 5; }
  .img-container img { object-position: center top; }
}

/* Aún más estrecho: afina encuadre y altura de tarjetas para evitar cortes */
@media (max-width: 380px) {
  .hero-img { object-position: 50% 20%; }
  .hero-overlay { top: 32%; transform: translateY(-32%); }

  #featured-services .service-grid { gap: 1rem; }
  #featured-services .service-card { aspect-ratio: 3 / 4; }
  #featured-services .service-card img { object-position: center top; }

  .img-container { aspect-ratio: 3 / 4; }
  .img-container img { object-position: center top; }
}

/* ========================
   4. COMUNIDAD / DESCARGA
   Sección con botones de acción principales
======================== */
#community {
  background: #141414;
  padding: 4rem 0 3.5rem;
  position: relative;
}

#community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 35%, rgba(110,255,235,0.12), transparent 60%),
              radial-gradient(circle at 70% 65%, rgba(110,255,235,0.10), transparent 65%);
  pointer-events: none;
  opacity: .55;
}

.community-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
}

.community-title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: .75rem;
  background: linear-gradient(90deg, #6effeb, #b4fff6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.community-subtitle {
  font-size: 1.05rem;
  color: #cfcfcf;
  margin: 0 auto 2.2rem;
  max-width: 640px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.cta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 1000px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .5px;
  line-height: 1;
  background: #1f1f1f;
  color: #e9ffff;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.6);
  transition: background .35s, transform .35s, box-shadow .35s, border-color .35s, color .35s;
}

.cta-pill i { font-size: 1.05rem; }

.cta-pill.primary { /* Launcher */
  background: linear-gradient(135deg, #0d3b66, #0a2a49);
  border-color: #13527f;
}

.cta-pill.primary:hover {
  background: linear-gradient(135deg, #13527f, #0d3b66);
  transform: translateY(-4px);
  box-shadow: 0 6px 22px -6px rgba(19,82,127,0.65), 0 4px 12px -4px rgba(0,0,0,0.65);
}

.cta-pill.discord { /* Discord brand */
  background: #5865F2;
  border-color: #4752c4;
  color: #ffffff;
}

.cta-pill.discord:hover {
  background: #4752c4;
  transform: translateY(-4px);
  box-shadow: 0 6px 22px -6px rgba(88,101,242,0.55), 0 4px 12px -4px rgba(0,0,0,0.55);
}

.cta-pill.whatsapp { /* WhatsApp brand */
  background: #25D366;
  border-color: #1aae53;
  color: #ffffff;
}

.cta-pill.whatsapp:hover {
  background: #1ec05b;
  transform: translateY(-4px);
  box-shadow: 0 6px 22px -6px rgba(37,211,102,0.5), 0 4px 12px -4px rgba(0,0,0,0.55);
}

/* Focus accesible */
.cta-pill:focus-visible {
  outline: 3px solid #6effeb;
  outline-offset: 3px;
}

.cta-pill:active { transform: translateY(-1px) scale(.97); }

@media (max-width: 640px) {
  .community-actions { gap: .9rem; }
  .cta-pill { flex: 1 1 100%; justify-content: center; }
  .community-subtitle { font-size: .95rem; }
}

/* ========================
   5. SOBRE NOSOTROS
   Texto + grid de miembros con hover overlay
======================== */
#about-us {
  background: #141414; /* Fondo solicitado */
  padding: 4rem 0;
}
#about-us .container {
  max-width: 1210px; /* Limita ancho del contenedor */
  margin: 0 auto;

}

#about-us h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: #6effeb;
}

#about-us .about-text {
  text-align: justify;
  margin: 0 auto 2rem; /* Espacio entre párrafo y grid */
  max-width: 1210px; /* Limita ancho del párrafo */
}

 .team-grid {
  display: grid;
  /* Columnas auto-ajustables con ancho máximo controlado para que queden más juntas */
  grid-template-columns: repeat(auto-fit, minmax(150px, 170px));
  gap: 3rem; /* Menos espacio entre ellos */
  justify-content: center; /* Centra el conjunto dentro del contenedor */
  align-items: start;
 }

 .team-member {
  position: relative;
  width: 150px;           /* Aumentado */
  height: 150px;          /* Aumentado */
  margin: 0 auto;         /* Centrado */
  border-radius: 50%;
  overflow: hidden;
 }

.team-member a {          /* Hace clickable toda el área */
  display: block;
  width: 100%;
  height: 100%;
}

.team-member img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.member-overlay {
  position: absolute;
  inset: 0;               /* Ocupa todo el círculo */
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.5rem; 
  opacity: 0;             /* Oculto al inicio */
  transition: opacity 0.3s ease; 
}

.team-member:hover .member-overlay,
.team-member:focus-within .member-overlay {
  opacity: 1;             /* Aparece suavemente */
}

/* ========================
   6. CONTÁCTANOS
   Reusa fondo + grid de iconos y mapa
======================== */
/* 6. Contáctanos */
#contact-us {
  position: relative;
  background: url('../assets/img/hero-bg.png') center/cover no-repeat;
  padding: clamp(3rem, 8vw, 6rem) 2rem;
  text-align: center;
  color: #ffffff;
}

#contact-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.thanks-container {
	text-align: justify;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;
	max-width: 400px;
	margin: 0 auto;
	padding: 2rem 2rem;
	border-radius: 0.625rem;
	background: rgba(0, 0, 0, 0.3); /* Fondo opaco*/
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.thanks-container h2 {
	color: #6effeb;
	text-align: center;
}

.thanks-container p {
	margin-bottom: 1rem; /* Más espacio debajo del párrafo */
	margin-top: 1rem;
}

.thanks-container a {
	color: #ffffff;
	text-decoration: none;
	text-align: center;
}

.thanks-container a:hover {
	color: #6effeb;
}

.img-container {
	width: 100%;
	max-width: 400px;
	height: 100%;
	min-height: 200px;
	aspect-ratio: 1/1;
	margin: 0 auto 1rem auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.15);
	border-radius: 0.625rem;
	overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Animación hover para los dos contenedores de contacto */
.thanks-container:hover,
.img-container:hover {
  transform: scale(1.025);
  box-shadow: 0 0 18px -2px rgba(110,255,235,0.4), 0 4px 18px rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.4);
}

.img-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0.625rem;
}

/* ========================
   7. FOOTER
   Pie con fondo verde y texto centrado
======================== */
footer {
  background: #141414; /* Uniforme con el resto */
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #1f1f1f; /* Separación sutil */
}

/* ========================
   POLITICA DE COOKIES
   Estilo para el link de cookies en el footer
======================== */

.cookies-link {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.5rem;
  transition: color 0.2s;
  text-decoration: none;
}
.cookies-link:hover {
  color: #6effeb;
}

/* ========================
   AVISO / BANNER COOKIES
======================== */
.cookie-banner[hidden] {
	 display: none !important; 
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 880px);
  background: #181818;
  border: 1px solid #242424;
  border-bottom: none;
  box-shadow: 0 0 24px -6px rgba(0,0,0,0.6), 0 8px 28px -4px rgba(0,0,0,0.55);
  padding: 1.25rem 1.5rem 1.35rem;
  z-index: 1500;
  font-size: 0.95rem;
  color: #d6d6d6;
  backdrop-filter: blur(4px);
  display: grid;
  gap: 1rem;
  border-radius: 0.85rem 0.85rem 0 0;
}

.cookie-inner { 
	display: flex; 
	flex-direction: 
	column; 
	gap: 1rem; 
}
.cookie-text { 
	margin: 0; 
	line-height: 1.4; 
}
.cookie-text .cookie-link { 
	color: #6effeb; 
	text-decoration: none; 
}
.cookie-text .cookie-link:hover { 
	text-decoration: underline; 
}

.cookie-actions { 
	display: flex; 
	flex-wrap: wrap; 
	gap: .65rem; 
	justify-content: center; 
}
.cookie-actions.prefs { 
	justify-content: center; 
}

.ck-btn {
  background: #242424;
  color: #f0f0f0;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  padding: .65rem 1.1rem;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.ck-btn:hover { 
	background: #2d2d2d; 
}
.ck-btn:active { 
	transform: translateY(1px); 
}
.ck-btn:focus-visible { 
	outline: 2px solid #6effeb; 
	outline-offset: 2px; 
}

.ck-btn.primary { 
	background: #6effeb; 
	color: #072c26; 
	border-color: #64e8d7; 
	font-weight: 600; 
}
.ck-btn.primary:hover { 
	background: #52dac6; 
}

.ck-btn.secondary { 
	background: #303030; 
}
.ck-btn.secondary:hover { 
	background: #3a3a3a; 
}

.ck-btn.info {
	 background: #20414c; 
	 color: #cfeff4; 
	 border-color: #2f5f6d; 
}
.ck-btn.info:hover { 
	background: #2b5662; 
}

.cookie-prefs { 
	border-top: 1px solid #222; 
	padding-top: .75rem; 
	animation: fadeIn .35s ease; 
}
.cookie-prefs[hidden] { 
	display: none !important; 
}
.cookie-prefs h3 { 
	margin: .25rem 0 .5rem; 
	font-size: 1.05rem; 
	color: #6effeb; 
}
.cookie-list { 
	list-style: none; 
	margin: 0 0 .75rem; 
	padding: 0; 
	display: flex; 
	flex-direction: column; 
	gap: .4rem; 
}
.cookie-list label { 
	cursor: pointer; 
	display: flex; 
	align-items: center; 
	gap: .5rem; 
}
.cookie-list input[type="checkbox"] { 
	accent-color: #6effeb; 
	width: 16px; 
	height: 16px; 
}

@media (max-width: 620px) {
	.cookie-banner { 
		width: 100%; 
		left: 0; 
		transform: none; 
		border-radius: 0.85rem 0.85rem 0 0; 
	}
	.cookie-actions { 
		flex-direction: column; 
		align-items: stretch; 
	}
	.ck-btn { 
		width: 100%; 
		justify-content: center; 
	}
}
