/* index.css - Diseño base para CONNAVIT */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg-dark: #2A2118;  /* Tierra oscuro */
  --bg-earth: #3A2E22; /* Tierra más claro */
  --text-light: #F4EBE1; /* Beige arena suave */
  --text-muted: #D1C5B4;
  --accent-green: #685A48; /* Marrón verdoso sutil */
  --accent-hover: #8A7B66;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo img {
  height: 120px;
  opacity: 0.6; /* Translucent logo */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: opacity 0.3s;
}

.logo img:hover {
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1000;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 6px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-light);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language Switcher Upgraded */
.lang-switch {
  display: flex;
  align-items: center;
  background-color: #ffffff; /* Solid white background */
  border-radius: 30px;
  padding: 3px;
  gap: 0;
  font-family: var(--font-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch .lang-btn {
  color: var(--bg-dark); /* dark text for inactive state */
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1;
  opacity: 0.75;
}

.lang-switch .lang-btn.active {
  background-color: var(--accent-green); /* solid green background for active */
  color: #ffffff; /* white text */
  cursor: default;
  pointer-events: none;
  border-bottom: none;
  opacity: 1;
}

.lang-switch .lang-btn:hover:not(.active) {
  color: var(--accent-green);
  opacity: 1;
}

.lang-switch .lang-separator {
  display: none; /* Hide the divider pipe */
}

nav.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--text-muted);
}

/* Parallax Sections */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.overlay-full {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 8, 5, 0.65); /* Capa más oscura para mejorar muchísimo el contraste */
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.parallax-content h1, .parallax-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 1px;
}

.parallax-content h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.parallax-content h2 {
  font-size: 2rem;
  line-height: 1.8;
  color: #F4EBE1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Hero Section Styles */
.hero-content {
  max-width: 800px;
  margin-left: auto; /* Aligns block to the right */
  text-align: right;
  padding: 2rem 4rem;
}

.hero-quote {
  font-family: 'Veneer', 'Bebas Neue', var(--font-main) !important;
  font-size: 5rem !important;
  font-weight: normal !important;
  line-height: 1.1;
  text-shadow: 3px 3px 15px rgba(0,0,0,0.9);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-quote span {
  font-size: 1.4rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
  display: block;
  margin-top: 1rem;
}

.hero-subtitle {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  border-right: 3px solid var(--accent-green);
  padding-right: 1rem;
}

/* Parallax Typography Updated */
.new-font-parallax h2 {
  font-family: 'Veneer', 'Bebas Neue', var(--font-main) !important;
  font-weight: normal !important;
  font-size: 3rem;
  line-height: 1.3;
  letter-spacing: 2px;
  text-shadow: 3px 3px 15px rgba(0,0,0,0.9);
}

/* Normal Sections */
section.content-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
}

/* What We Do */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--bg-earth);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-green);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* About Us Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member .avatar {
  width: 150px;
  height: 150px;
  background-color: var(--bg-earth);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid var(--accent-green);
}
.team-member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Upcoming Trips */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.trip-banner {
  background: linear-gradient(135deg, var(--bg-earth), #201a15);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--accent-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trip-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trip-banner .details {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

/* Galería Expandida */
.gallery-category {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-description {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
  z-index: 10;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
}

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-green);
}

.testimonial-card .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-card h4 {
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Páginas de Itinerarios */
body.itinerary-page {
  background-image: url('assets/images/fotos/IMG_6710.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}
body.itinerary-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 15, 10, 0.85); /* Capa oscura para que el texto resalte */
  z-index: -1;
}

.itinerary-page {
  padding-top: 140px;
  padding-bottom: 80px;
}
.itinerary-header {
  text-align: center;
  margin-bottom: 4rem;
}
.itinerary-header h1 {
  font-family: 'Veneer', 'Bebas Neue', var(--font-main);
  font-size: 4rem;
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: normal;
}
.itinerary-header p {
  color: var(--accent-green);
  font-size: 1.2rem;
  font-weight: 600;
}
.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.timeline-item {
  padding: 2.5rem;
  background: var(--bg-earth);
  border-radius: 8px;
  border-left: 4px solid var(--accent-green);
  margin-bottom: 2rem;
}
.timeline-item h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-family: var(--font-serif);
}
.timeline-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}
.itinerary-cta {
  text-align: center;
  margin-top: 4rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 1024px) {
  /* Solución para que las imágenes se vean completas y bien proporcionadas en iOS/Móvil */
  .parallax {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    min-height: 60vh; /* Reducido para que fluya mejor */
  }
  
  /* Hero section mobile: Mostrar imagen horizontal completa */
  #proposito.parallax {
    background-size: contain !important;
    background-position: top center !important;
    min-height: auto;
    padding-top: 55vw; /* Da espacio a la imagen arriba */
    background-color: var(--bg-dark);
  }
  #proposito .overlay-full {
    display: none; /* Quitamos la capa oscura para que la foto brille limpia en el top */
  }

  header { padding: 1.5rem; justify-content: space-between; flex-direction: row; }
  .logo img { height: 70px; }
  
  .nav-container {
    gap: 1.2rem;
  }
  
  .hamburger {
    display: block;
    position: relative;
    z-index: 1001; /* Asegurar que esté sobre el menú */
  }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  nav.nav-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Oculto a la derecha */
    left: auto;
    width: 280px;
    height: 100vh;
    background-color: rgba(20, 15, 10, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(0,0,0,0.5);
    visibility: hidden;
  }
  nav.nav-menu.active {
    right: 0;
    visibility: visible;
  }
  nav.nav-menu ul {
    flex-direction: column;
    gap: 2rem;
    font-size: 1.2rem;
    align-items: flex-start;
  }
  
  .hero-content {
    padding: 1rem;
    text-align: center;
    margin: 0 auto;
  }
  .hero-quote {
    font-size: 3rem !important;
  }
  .hero-quote span {
    font-size: 1rem;
    font-family: var(--font-serif) !important;
    letter-spacing: 0;
  }
  .hero-subtitle {
    font-size: 1rem;
    border-right: none;
    border-bottom: 2px solid var(--accent-green);
    padding-right: 0;
    padding-bottom: 0.5rem;
    display: inline-block;
  }
  
  .new-font-parallax h2 { font-size: 1.6rem !important; line-height: 1.3; }
  section.content-section { padding: 3rem 1.5rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
  
  /* Fuentes más pequeñas en móvil */
  .gallery-description { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .card p, .team-member p { font-size: 0.85rem; }
  .testimonial-card .quote { font-size: 1rem; }
  .trip-banner h2 { font-size: 1.8rem; }
  .trip-banner .details { font-size: 1rem; }
}

/* Dossier Page Styles */
body.dossier-page {
  background-image: url('assets/images/bushcraft/Activity Days shelter_1.jpeg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

body.dossier-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 15, 10, 0.82);
  z-index: -1;
}

.dossier-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.dossier-header {
  text-align: center;
  margin-bottom: 4rem;
}

.dossier-header h1 {
  font-family: 'Veneer', 'Bebas Neue', var(--font-main);
  font-size: 4rem;
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: normal;
}

.dossier-header p {
  color: var(--accent-green);
  font-size: 1.2rem;
  font-weight: 600;
}

.dossier-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.dossier-card {
  background: rgba(58, 46, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 550px;
}

.dossier-tabs {
  display: flex;
  background: rgba(42, 33, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-tab-btn {
  flex: 1;
  padding: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.dossier-tab-btn:hover {
  color: var(--text-light);
  background: rgba(255,255,255,0.02);
}

.dossier-tab-btn.active {
  color: var(--text-light);
  border-bottom-color: var(--accent-green);
  background: rgba(255,255,255,0.04);
}

.dossier-slides {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
}

.dossier-slide {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  align-items: center; /* Center items vertically */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(20px);
  padding: 3rem;
  gap: 3rem;
}

.dossier-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
  z-index: 5;
}

.dossier-slide-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dossier-slide-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.dossier-slide-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.dossier-slide-image {
  flex: 0 0 45%; /* Fixed width proportion */
  max-width: 450px; /* Limit maximum width */
  height: 320px; /* Uniform height across all slides */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
}

.dossier-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(42, 33, 24, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-nav-btn {
  background: var(--accent-green);
  border: none;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 20px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-nav-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.dossier-nav-btn:active {
  transform: translateY(0);
}

.dossier-nav-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
  transform: none;
}

.dossier-dots {
  display: flex;
  gap: 0.6rem;
}

.dossier-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dossier-dot:hover {
  background: rgba(255,255,255,0.5);
}

.dossier-dot.active {
  background: var(--text-light);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .dossier-card {
    min-height: auto;
  }
  .dossier-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .dossier-tab-btn {
    flex: none;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  .dossier-slide {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .dossier-slide-content h2 {
    font-size: 1.8rem;
  }
  .dossier-slide-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .dossier-slide-image {
    height: 250px;
    width: 100%;
    flex: none;      /* Override desktop flex-basis */
    max-width: none; /* Override desktop max-width */
  }
  .dossier-controls {
    padding: 1.2rem 1.5rem;
  }
  .dossier-nav-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
