:root {
    --verde-oscuro: #3F4F2E;
    --verde-medio: #6C7D49;
    --verde-claro: #4A6A20;
    --amarillo: #EAB128;
    --rojo: #CA151F;
    --azul: #0F4899;
    --blanco: #ffffff;
    --gris-suave: #f8f8f8;
    --fuente: 'Poppins', sans-serif;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
  }

  /*
  * {
    outline: 1px solid red;
  }

  */

body {
    margin: 0;
    font-family: var(--fuente);
    background-color: var(--gris-suave);
    color: var(--verde-oscuro);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;
    
}



/* Language Selector Styles */
.language-selector {
  position: relative;
  order: 3; /* aparece a la derecha */
  margin-left: 10px;
}
.language-flags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flag-icon {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.flag-icon:hover,
.flag-icon.active {
  opacity: 1;
}
.flag-icon.active {
  border-bottom: 2px solid #000;
}
.flag-icon img {
  width: 30px;
  height: 20px;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
  .menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  .logo { order: 1; }
  .language-selector {
    order: 2;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
  }
  .navbar { order: 3; display: flex; align-items: center; }
  /* Mostrar sólo la bandera activa */
  .language-flags .flag-icon:not(.active) { display: none; }
  .language-flags.expanded .flag-icon { 
    display: block !important;
  }
  .language-flags.expanded {
    position: absolute;
    top: 100%; right: 0;
    background: #fff; border: 1px solid #ddd;
    border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px; z-index: 1000;
    flex-direction: column;
  }
  .language-flags.expanded .flag-icon { margin: 5px 0; }
  /* Menú hamburguesa */
  #menu-list { display: none; }
  #menu-list.active {
    display: block; position: absolute;
    top: 0px; left: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    text-align: center; padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 999;
  }
  .navbar ul li { margin: 1rem 0; }
  .navbar ul li a {
    font-size: 1.2rem; padding: 15px 0; display: block;
  }
}

.hamburger {
    display: none; /* se mostrará sólo en móvil */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación cuando el burger está activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================== */
/*   ESTILOS RESPONSIVOS (MÓVIL)  */
/* ============================== */
@media screen and (max-width: 768px) {
    /* Mostrar hamburger en móvil */
    .hamburger {
        display: flex;
        order: 3;
    }
    
    /* Ocultar menú por defecto en móvil */
    .navbar-content {
        display: none;
        width: 100%;
    }
    
    /* Mostrar menú cuando está activo */
    .navbar-content.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-content.active ul {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        margin: 0;
    }
    
    .navbar-content.active ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-content.active ul li:last-child {
        border-bottom: none;
    }
    
    .navbar-content.active ul li a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        font-size: 1.1rem;
        color: #333;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .navbar-content.active ul li a:hover {
        background-color: rgba(44, 85, 48, 0.1);
        color: #2c5530;
    }
    
    /* Ajustar padding de la .menu en móvil */
    .menu {
        padding: 1rem;
        position: relative;
    }
    
    .logo img {
        height: 40px;
    }
}


/* ===== ESTILOS ADICIONALES PARA TABLETS ===== */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .navbar-content ul li {
        margin: 0 0.5rem;
    }
    
    .navbar-content ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== ANIMACIONES SUAVES ===== */
.navbar-content {
    transition: all 0.3s ease;
}

.navbar-content.active {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


  
section {
    padding: 4rem 1rem;
}

section:hover {
    transition: var(--transicion);
}

img:hover {
    transform: scale(1.03);
    transition: var(--transicion);
    box-shadow: var(--sombra-suave);
}

h1, h2, h3 {
    font-weight: 600;
}

.btn, .btn-outline {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--transicion);
    display: inline-block;
    margin: 0.5rem;
}

.btn {
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    box-shadow: var(--sombra-suave);
}

.btn:hover {
    background-color: var(--verde-claro);
    color: var(--blanco);
    box-shadow: var(--sombra-hover);
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid var(--amarillo);
    color: var(--amarillo);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    box-shadow: var(--sombra-hover);
    transform: scale(1.05);
}


/* === INTERACTIVIDAD GENERAL === */
section:hover {
    transition: all 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--sombra-suave);
}

.tours li:hover,
.articulos li:hover {
    background-color: var(--verde-medio);
    color: var(--blanco);
    cursor: pointer;
    padding-left: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}





/* ========== HEADER ========== */

.header {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    position: absolute;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    color: var(--blanco);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-content .container {
    padding: 50px 20px;
    max-width: 800px;
}

.header-content h1 {
    font-size: 2.5rem;
    color: var(--amarillo);
    margin-bottom: 1rem;
}

.header-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.header-content a {
    text-decoration: none;
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.header-content a:hover {
    background-color: var(--verde-claro);
    color: var(--blanco);
}

/* ========== MENÚ ========== */

.menu {
    width: 100%;
    background: var(--blanco);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    position: fixed; 
}

.menu .logo img {
    height: 40px;
}

.logo {
  order: 1;
}

/* 2) Menú de navegación en el medio, y lo empujamos todo lo posible a la derecha */
.navbar {
  order: 2;
  margin-left: auto;
}

/* 3) Selector de idioma a la derecha */
.language-selector {
  order: 3;
  margin-left: 1rem; /* separarlo un poco del nav */
}


.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0 1rem;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--verde-oscuro);
    font-weight: 600;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--verde-claro);
}



.language-flags {
    display: flex;
    gap: 10px;
}

.flag-icon img {
    width: 30px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.flag-icon.active img,
.flag-icon img:hover {
    opacity: 1;
}



.about{
  background-color: var(--blanco);
  padding: 0;
}

/* Contenedor full-bleed */
.about-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
}

/* Imagen */
.about-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transform: scale(1.02); /* estado inicial ligero zoom */
}

/* Columna texto */
.about-text{
  background: var(--blanco);
  padding: 4rem 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2{
  font-size: clamp(2.4rem, 5vw, 5rem);
  margin: 0 0 1.25rem 0;
  color: var(--verde-claro);
  line-height: 1.1;
}

.about-text p{
  font-size: 1.1rem;
  color: var(--verde-oscuro);
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

/* ---------- Keyframes compartidos ---------- */
@keyframes about-reveal {
  0%   { opacity: 0; transform: translateY(18px); }
  40%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes about-img-pan {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ---------- Estado base: oculto + stagger ---------- */
.about-text > *{
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.about-text > *:nth-child(1){ --d: 0ms; }
.about-text > *:nth-child(2){ --d: 90ms; }
.about-text > *:nth-child(3){ --d: 180ms; }
.about-text > *:nth-child(4){ --d: 270ms; }

/* ---------- Ruta MODERNA (cuando <html> tiene .has-sda) ---------- */

/* Variante A (view-timeline nombrado) */
.has-sda .about-text{
  view-timeline-name: --about;
  view-timeline-axis: block;
}
.has-sda .about-text > *{
  animation: about-reveal 800ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--d, 0ms);
  animation-timeline: --about;
  animation-range: entry 15% cover 30%;
}
.has-sda .about-image{
  animation: about-img-pan 1200ms cubic-bezier(.2,.7,.2,1) both;
  animation-timeline: --about;
  animation-range: entry 5% cover 20%;
}

/* Variante B (cuando el UA solo soporta animation-timeline: view()) */
@supports (animation-timeline: view()) and (not (view-timeline-name: --t)) {
  .has-sda .about-text > *{
    animation: about-reveal 800ms cubic-bezier(.2,.7,.2,1) both;
    animation-delay: var(--d, 0ms);
    animation-timeline: view();
    animation-range: entry 15% cover 30%;
  }
  .has-sda .about-image{
    animation: about-img-pan 1200ms cubic-bezier(.2,.7,.2,1) both;
    animation-timeline: view();
    animation-range: entry 5% cover 20%;
  }
}

/* ---------- Fallback universal (IO): .is-visible / .reveal-in ---------- */
.about-text.is-visible > *{
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.about-image.reveal-in{
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  transform: scale(1);
}

/* Accesibilidad: si el usuario pide menos animación, quítalas */
@media (prefers-reduced-motion: reduce){
  .about-text > *, .about-image{
    animation: none !important;
    transition: none !important;
  }
  .about-text > *{
    opacity: 1; transform: none;
  }
}

/* Responsive */
@media (max-width: 768px){
  .about-container{
    grid-template-columns: 1fr;
    margin-left: 0;
    width: 100%;
    box-shadow: none;
  }
  .about-image{
    height: 300px;
  }
  .about-text{
    padding: 2rem 1.5rem;
  }
}
html.no-sda .about-text > *{
  opacity: 0 !important;
  transform: translateY(18px) !important;
}

/* 2) Cuando el IO agregue .is-visible, revela con transición y stagger */
.about-text.is-visible > *{
  opacity: 1 !important;
  transform: none !important;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}

/* 3) Habilita la transición de la imagen (anula el transition:none previo) */
.about .about-image{
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1) !important;
}

/* 4) Estado final de la imagen cuando el IO añada .reveal-in */
.about-image.reveal-in{
  transform: scale(1) !important;
}







/* === MINDO SECTION === */
.mindo-section {
  background-color: var(--gris-suave);
  padding: 0;
}

/* 2 columnas: texto 50% + mapa 50% */
.mindo-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100vw;                      /* ancho completo */
  margin-left: calc(-50vw + 50%);    /* anular padding body */
  max-width: none;                   /* quita el max-width */
  align-items: stretch;             /* estira columnas a igual alto */
}

/* Texto: fondo blanco para legibilidad */
.mindo-text {
  width: 50%;
  background: var(--verde-medio);
  padding: 3rem;
  box-sizing: border-box;
}

/* Título y lista de bullets */
.mindo-text h2 {
  color: var(--amarillo);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.mindo-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.mindo-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.mindo-list li h3 {
  margin: 0 0 0.5rem;
  color: var(--blanco);
  font-size: 1.3rem;
}
.mindo-list li p {
  margin: 0;
  color: var(--blanco);
  line-height: 1.6;
}
.mindo-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background: var(--amarillo);
  border-radius: 50%;
}

/* Mapa ocupa la otra mitad */
.mindo-mapa {
  width: 50%;
  min-height: 500px;
}
.mapa-mindo {
  width: 100%;
  height: 100%;
  border: none;
}

/* 4) Responsive: en móvil el mapa ocupa todo el ancho */
@media (max-width: 1024px) {
  .mindo-container {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    
  }
  .mindo-text,
  .mindo-mapa {
    width: 100%;
    min-height: auto !important;
  }
  .mindo-text {
    padding: 2rem 1.5rem;
  }
  .mapa-mindo {
    height: auto !important;
    min-height: 300px; /* o el alto que necesites */
  }
  .mindo-mapa, 
  .mapa-mindo {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}



/* TOURS */
.tours {
    padding: 4rem 1rem;
    background-color: var(--gris-claro);
    text-align: center;
}

.tours h2 {
    color: var(--verde-oscuro);
    font-size: 2rem;
}

.tours ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 2rem auto 0;
}

.tours li {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* COMPROMISO */
.compromiso {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--blanco);
}

.compromiso h2 {
    color: var(--verde-claro);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.compromiso p {
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

/* === TOURS SECTION (DESKTOP) === */
.tours-section {
  position: relative;
  background: url('https://storage.googleapis.com/sachaexpeditionscontenido/Contenido_Tours/Birdwatching/Fondo_tours-section.avif')
              center/cover no-repeat;
  padding: 4rem 1rem;
  /* quitamos el height fijo y el overflow hidden */
}

.tours-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;  /* que el grid empiece abajo del título */
}

/* 30% para el título */
.tours-title-wrapper {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tours-title-wrapper .titulo-principal {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--blanco);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1;
}

/* 70% para las cards en 2 columnas, filas automáticas */
.tours-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

/* tarjetas flexibles que llenan cada celda */
.tour-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: var(--sombra-hover);
  overflow: hidden;
  transition: transform var(--transicion);
}
.tour-card:hover {
  transform: scale(1.03);
}

/* altura fija para la imagen, siempre visible */
.tour-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex: none;
}

/* cuerpo de texto flexible sólo en altura de contenido */
.tour-card h4 {
  margin: 1rem;
  font-size: 1.3rem;
  color: var(--verde-oscuro);
  flex: none;
}
.tour-card p {
  margin: 0 1rem 1rem;
  line-height: 1.4;
  color: var(--verde-oscuro);
  flex: none;
}

/* el botón siempre al fondo de la tarjeta, y visible */
.tour-card button {
  margin: auto 1rem 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transicion);
  flex: none;
}
.tour-card button:hover {
  background-color: #a7111a;
}
@media (max-width: 768px) {
  /* 1) Apilar el contenedor entero */
  .tours-container {
    flex-direction: column;
    align-items: center;
  }

  /* 2) Centrar y agrandar el título */
  .tours-title-wrapper {
    width: 100%;
    padding: 2rem 0 1rem;
    justify-content: center;
    text-align: center;
  }
  .tours-title-wrapper .titulo-principal {
    font-size: 3rem;
    line-height: 1.2;
  }

  /* 3) Volver a “una card por fila” y centrar */
  .tours-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }

  /* 4) Cards más estrechas y centradas */
  .tour-card {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* 5) Imagen fija en altura */
  .tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: none;
  }
}
  
  /* ========== POPUPS ========== */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  
  .popup-content {
    display: flex;
    flex-direction: column;
    background-color: var(--blanco);
    padding: 2rem 2rem 4rem;
    border-radius: 10px;
    width: 90%;
    max-width: 580px;
    position: relative;
    text-align: left;
  }
  
  .popup-close {
    position: absolute;
    top: 10px; right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .popup-content h3 {
    font-size: 1.5rem;
    color: var(--azul);
    margin-bottom: 1rem;
  }
  
  .popup-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #333;
  }
  
  .popup-buttons {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
  }
  /* Asegurarnos de que los <a> actúen como items flex */
  .popup-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px; 
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    /* eliminamos cualquier posición absoluta */
    position: static !important;
  }
  
  /* estilos de cada botón */
  .popup-galeria-btn {
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
  }
  .popup-galeria-btn:hover {
    background-color: #d9a720;
  }
  
  .popup-reserva-btn {
    background-color: var(--azul);
    color: white;
    text-align: center;
  }
  .popup-reserva-btn:hover {
    background-color: #0c3d82;
  }


  
  /* Medidor de esfuerzo reutilizable */
  .medidor-esfuerzo {
    margin-top: 1rem;
  }
  
  .medidor-barra {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.3rem;
  }
  
  .nivel-facil {
    width: 33%;
    background-color: var(--verde-claro);
    height: 100%;
  }
  
  .nivel-moderado {
    width: 66%;
    background-color: var(--amarillo);
    height: 100%;
  }
  
  .nivel-dificil {
    width: 100%;
    background-color: var(--rojo);
    height: 100%;
  }
  
  .medidor-label {
    font-size: 0.9rem;
    color: var(--verde-oscuro);
    margin-left: 5px;
  }

/* === PAQUETES DE TOURS === */

.titulo-principal {
    font-size: 3rem;
    color: var(--verde-oscuro);
    margin-bottom: 2.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--verde-claro);
    display: inline-block;
    padding-bottom: 0.75rem;
  }

.paquetes-section {
    background-color: var(--gris-suave);
    padding: 4rem 1rem;
    text-align: center;
}

.paquetes-section h2 {
    font-size: 2.2rem;
    color: var(--verde-claro);
    margin-bottom: 2rem;
}

.paquetes-categoria {
    margin-bottom: 3rem;
}

.paquetes-categoria h3 {
    font-size: 1.6rem;
    color: var(--verde-oscuro);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--verde-medio);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.tour-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tour-thumb {
    width: 300px;
    background-color: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.tour-thumb:hover {
    transform: scale(1.03);
    box-shadow: var(--sombra-hover);
}

.tour-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.tour-thumb h4 {
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--verde-oscuro);
}

.portfolio-carousel-control {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    font-size: 2rem !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .portfolio-carousel {
    position: relative;
    height: 160px;
  }
  .portfolio-carousel-control:hover {
    background-color: transparent;
    transform: translateY(-50%);
  }
  
  .portfolio-prev {
    left: 10px;
  }
  
  .portfolio-next {
    right: 10px;
  }

/* === POPUP === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background-color: var(--blanco);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: var(--sombra-hover);
    position: relative;
    text-align: left;
    overflow-y: auto;
    max-height: 80vh;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--verde-oscuro);
}

.popup-content {
    position: relative;
    padding-bottom: 60px; /* Espacio para el botón */
  }
  
  .popup-reserva-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--verde-claro);
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
  }
  
  .popup-reserva-btn:hover {
    background-color: var(--verde-medio);
  }


  @media (min-width: 769px) {
    .popup-buttons {
      position: absolute;
      bottom: 20px;
      right: 20px;
      flex-direction: row;
    }
    .popup-buttons a {
      width: auto;
      padding: 12px 18px;
      font-size: 0.95rem;
    }
  }
  
  /* === Móvil: apilado full-width bajo el medidor === */
@media (max-width: 768px) {
  /* más aire entre medidor y botones */
  .medidor-esfuerzo { margin-bottom: 1.25rem; }

  /* contenedor de botones centrado y en flujo */
  .popup-buttons {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;          /* centra */
    gap: .75rem !important;
    margin-top: 1rem !important;             /* debajo del medidor */
    width: 100%;
  }

  /* botón: centrado y ancho cómodo */
  .popup-buttons a,
  .popup-reserva-btn {
    position: static !important;             /* anula absolute anterior */
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;                  /* full width del contenedor */
    max-width: 320px;                        /* no se hace gigante */
    padding: .9rem 1rem !important;
    text-align: center !important;
    margin: 0 auto !important;               /* centra */
    font-size: 1rem !important;
  }
}
/* === MEDIDOR DE ESFUERZO === */
.medidor-esfuerzo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--verde-oscuro);
}

.medidor-barra {
    display: flex;
    height: 10px;
    width: 100px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #eee;
}

.medidor-barra div {
    height: 100%;
}

.nivel-facil {
    width: 33%;
    background-color: #A8D08D;
}

.nivel-moderado {
    width: 66%;
    background-color: #F4B183;
}

.nivel-dificil {
    width: 100%;
    background-color: #E26B6B;
}

.medidor-label {
    font-style: italic;
}



.tour-thumb button {
    background-color: var(--verde-claro);
    color: var(--blanco);
    border: none;
    padding: 10px 16px;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tour-thumb button:hover {
    background-color: var(--verde-medio);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ---------------------------------------
   PAQUETES TURÍSTICOS – TABS & ESTILO
-----------------------------------------*/
  
  .paquetes-section {
    background-color: var(--verde-oscuro);
    padding: 4rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
  }
  
  .tabs-container {
    display: inline-flex;
    background: var(--gris-suave);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .tabs-container .tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    cursor: pointer;
    transition: background var(--transicion), color var(--transicion);
  }
  
  .tabs-container .tab:not(.active):hover {
    background: rgba(0,0,0,0.1);
  }
  
  .tabs-container .tab.active {
    background: var(--amarillo);
    color: var(--verde-oscuro);
  }
  
  .tour-thumb-grid {
    display: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .tour-thumb-grid.active {
    display: flex;
  }
  
  .tour-thumb {
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra-hover);
    transition: transform var(--transicion);
  }
  .tour-thumb:hover {
    transform: scale(1.03);
  }
  
  .paquetes-section .titulo-principal {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  @media (max-width: 768px) {
    .tabs-container {
      width: 100%;
      justify-content: space-around;
    }
    .tabs-container .tab {
      padding: 0.5rem 1rem;
      font-size: 1rem;
    }
    .paquetes-container {
      padding: 1.5rem;
    }
    .tour-thumb {
      width: 90%;
    }
  }

/* === APORTE COMUNIDAD === */



.aporte-comunidad {
    background-color: var(--verde-medio);
    color: var(--blanco);
    text-align: center;
    padding: 4rem 1rem;
    width: 100vw;             /* ocupa toda la pantalla */
    margin-left: calc(-50vw + 50%); /* truco para anular padding del body */
    box-sizing: border-box;
}

.aporte-comunidad h2 {
    font-size: 2rem;
    color: var(--amarillo);
}

.aporte-comunidad p {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.comunidad-tour-card {
    width: 280px;
    background-color: #fdf6dc; /* similar a var(--amarillo) bajado */
    color: var(--verde-oscuro);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s;
    text-align: left;
    padding-bottom: 1rem;
  }
  
  .comunidad-tour-card:hover {
    transform: scale(1.02);
  }
  
  .comunidad-tour-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
  }
  
  .comunidad-tour-card h4 {
    margin: 1rem 1rem 0.3rem;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
  }
  
  .comunidad-tour-card p {
    font-size: 0.95rem;
    color: var(--verde-oscuro);
    margin-top:    0;
    margin-right:  1rem;
    margin-bottom: 1.5rem; /* ↑ más espacio abajo */
    margin-left:   1rem;
    line-height: 1.4;
  }
  
  .comunidad-tour-card button {
    display: block;
    margin: 1rem auto 0 auto;  /* top auto bottom auto */
    padding: 10px 20px;
    border: none;
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .comunidad-tour-card button:hover {
    background-color: #dcae27;
  }

  
.comunidad-tours {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .aporte-comunidad .tour-card {
    background-color: var(--blanco);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  



/* === RESPONSIVO === */
@media (max-width: 768px) {
    .tour-cards {
        flex-direction: column;
        align-items: center;
    }

    .tour-card {
        width: 90%;
    }
}


/* -----------------------------------------
   IMPACTO EN LA COMUNIDAD – CARRUSEL
------------------------------------------ */

/* 1) Carousel: scroll-snap + espacio al final */
.aporte-comunidad .community-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-right: 2rem;        /* evita que la última card se corte */
    margin-bottom: 1.5rem;      /* espacio para las flechas */
    -webkit-overflow-scrolling: touch;
  }
  
  .aporte-comunidad .community-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .aporte-comunidad .community-carousel .comunidad-tour-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
  }
  
  /* 2) Tarjetas */
  .aporte-comunidad .comunidad-tour-card {
    background-color: #fdf6dc;
    border-radius: 10px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    transition: transform var(--transicion);
  }
  .aporte-comunidad .comunidad-tour-card:hover {
    transform: scale(1.02);
  }
  
  /* (imagen, título y botón mantienen tu estilo actual) */
  
  /* 3) Navegación estática debajo */
  .aporte-comunidad .community-carousel-nav {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .aporte-comunidad .community-carousel-nav button {
    background: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: background var(--transicion);
  }
  .aporte-comunidad .community-carousel-nav button:hover {
    background: var(--amarillo);
  }
  
  /* 4) Responsive */
  @media (max-width: 768px) {
    .aporte-comunidad .community-carousel {
      gap: 0.75rem;
      padding-right: 1rem;
      margin-bottom: 1rem;
    }
    .aporte-comunidad .community-carousel .comunidad-tour-card {
      width: 240px;
    }
    .aporte-comunidad .community-carousel-nav button {
      width: 2rem;
      height: 2rem;
      font-size: 1rem;
    }
  }

  @media (max-width: 768px) {
  /* 1) Título más grande */
  .aporte-comunidad h2 {
    font-size: 2.5rem;
  }

  /* 2) Espacio extra entre párrafo y carrusel */
  .aporte-comunidad p {
    margin-bottom: 1.5rem;
  }

  /* 3) Ocultar flechas en móvil para permitir scroll táctil */
  .aporte-comunidad .community-carousel-nav {
    display: none;
  }

  /* 4) Ajustar margen inferior del carrusel para compensar la falta de flechas */
  .aporte-comunidad .community-carousel {
    margin-bottom: 1.5rem;
  }
  
}

/* Hint de deslizar SOLO en móvil */
.swipe-hint {
    display: none;
  }
  @media (max-width: 768px) {
    .swipe-hint {
      display: block;
      text-align: center;
      color: var(--amarillo);
      opacity: 0.6;
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }
  }
  

/* === ARTÍCULOS === */
.articulos {
  background-color: var(--blanco);
  color: var(--verde-oscuro);
  text-align: center;
  padding: 4rem 1rem;
}

.articulos h2 {
  font-size: 2rem;
  color: var(--verde-claro);
  margin-bottom: 2rem;
}

.articulos ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.articulos li {
  position: relative;
  margin-bottom: 1rem;
  background-color: var(--gris-suave);
  padding: 1rem 1rem 1rem 1.5rem; /* espacio extra a la izquierda */
  border-radius: 8px;
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border-left: 4px solid var(--amarillo);
  font-weight: 500;
}

.articulos li:hover {
  background-color: var(--amarillo);
  transform: translateY(-3px);
}

.articulos li:hover h3,
.articulos li:hover p {
  color: var(--verde-oscuro);
}

.articulos li h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--verde-oscuro);
}

.articulos li p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

.articulos a {
  color: var(--verde-oscuro);       
  text-decoration: none;            
  font-weight: 600;                  
  transition: color 0.3s;           
}


.articulos a:hover {
  color: var(--verde-claro);
  text-decoration: underline;        
  text-decoration-thickness: 2px;   
}


a {
  color: var(--verde-oscuro);
  text-decoration: none;
}
a:hover {
  color: var(--verde-claro);
  text-decoration: underline;
}

/* Adaptación móvil */
@media (max-width: 600px) {
  .articulos h2 {
      font-size: 1.75rem;
  }
  .articulos li {
      padding-left: 1rem;
      border-left-width: 3px;
  }
}


/* CTA FINAL */
.cta {
    background-color: #2C3A1E;
    color: var(--blanco);
    text-align: center;
    padding: 4rem 1rem;
    width: 100vw;             /* ocupa toda la pantalla */
    margin-left: calc(-50vw + 50%); /* truco para anular padding del body */
    box-sizing: border-box;
}

.cta h2 {
    font-size: 2rem;
    color: var(--amarillo);
    margin-bottom: 1rem;
}

.cta p {
    max-width: 700px;
    margin: auto;
    margin-bottom: 2rem;
    line-height: 1.6;
}



/* === FOOTER === */
.footer {
  background-color:#121212;
  color: var(--blanco);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3rem 1rem 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
 
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

/* Cada columna */
.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

/* Logo y descripción */
.footer-column .logo {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--amarillo);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* Encabezados de columna */
.footer-heading {
  font-size: 1.2rem;
  color: var(--blanco);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Listas de enlaces y contacto */
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}
.footer-links li a,
.footer-contact li a {
  color: var(--blanco);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links li a:hover,
.footer-contact li a:hover {
  color: var(--amarillo);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social .social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}
.footer-social .social-icon img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.footer-social .social-icon:hover {
  background: var(--amarillo);
  transform: translateY(-3px);
  border-color: var(--blanco);
}
.footer-social .social-icon:hover img {
  filter: none;
}

/* Pie de página */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    flex: none;
    width: 100%;
  }
  .footer-desc {
    max-width: 300px;
    margin: 0.5rem auto 1.5rem;
  }
  .footer-social {
    justify-content: center;
  }
}



/* === ARTICULOS === */


.articles-link p {
    font-size: 1.5rem; 
    font-weight: bold;
    color: #2C3A1E; 
    padding: 0.5rem 0.5rem; 
    background: rgba(245, 245, 220, 0.8); 
    border-radius: 10px; 
    max-width: 50%; 
    margin: 0 auto; 
    margin-bottom: 1rem ;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}


/* Link styling */
.articles-link a {
    color: #2C3A1E; 
    font-weight: bold;
    text-decoration: none;
    padding: 0.25rem 1rem; 

}

.articles-link a:hover {
    color: #ffffff; /* Cambiar color a blanco al pasar el mouse */
    text-decoration: underline; /* Subrayado al pasar el mouse */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo más oscuro al pasar el mouse */
}

/* Articulo - Construcciones Elevadas */

.article-banner {
    position: relative;
    padding: 6rem 1rem;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
  }

  .article-banner.banner-aves {
    background-image: url('https://storage.googleapis.com/sachaexpeditionscontenido/Contenido_Articulos/Contenido_Articulos_articulo-identificar-aves-comunes.avif');
  }
  
  .article-banner.banner-turismo {
    background-image: url('https://storage.googleapis.com/sachaexpeditionscontenido/Contenido_Articulos/articulo-practicas-turismo-responsable%20(1).avif');
  }
  
  .article-banner.banner-reforestacion {
    background-image: url('https://storage.googleapis.com/sachaexpeditionscontenido/Contenido_Articulos/articulo-impacto-reforestacion%20(1).avif');
  }
  
  .article-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 74, 39, 0.65); /* capa de color verde oscuro con opacidad */
    z-index: 2;
  }
  
  .article-banner .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .article-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
  }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.article-meta i {
    margin-right: 8px;
}

/* Contenido principal del artículo */
.article-content {
    width: 100%;
    padding: 0;
}

.article-content .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.article-body {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    position: relative;
    border-left: 5px solid #0b4a27;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-intro {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background-color: rgba(11, 74, 39, 0.05);
    border-radius: 8px;
}

.article-body h2 {
    color: #2C3A1E;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    position: relative;
}

.article-body h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0b4a27, transparent);
    margin-top: 8px;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.article-list, .article-list-numbered {
    margin: 1.5rem 0 2rem;
    padding-left: 1.5rem;
}

.article-list li, .article-list-numbered li {
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.6;
}

.article-list li strong, .article-list-numbered li strong {
    color: #2C3A1E;
}

/* Compartir artículo */
.article-share {
    display: flex;
    align-items: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

.article-share span {
    margin-right: 1rem;
    font-weight: 600;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #2C3A1E;
    color: #fff;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
}

.share-btn.whatsapp:hover {
    background-color: #25d366;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .article-banner {
        padding: 3rem 0;
    }

    .article-banner h1 {
        font-size: 2rem;
    }

    .article-content .container {
        width: 100%;
        margin: 0 auto;
    }

    .article-body {
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-banner h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-body {
        padding: 1.2rem;
    }
}

/* Adjust for mobile view */
@media (max-width: 768px) {
    .articles-link p {
        font-size: 1rem; /* Ajustar el tamaño de fuente en móviles */
        padding: 1rem 1.5rem;
    }

    .articles-link a {
        font-size: 1rem; /* Ajustar tamaño de fuente del enlace */
    }
}

/* === GALERÍA GENERAL === */

.gallery-section {
  scroll-margin-top: 110px; /* ajusta según la suma de header + barra */
}

.gallery-nav {
  position: sticky;
  top: var(--altura-header, 70px);
  background: var(--verde-oscuro);        /* verde oscuro sólido */
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1500;
}

/* Botones */
.gallery-nav a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blanco);
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  transition: var(--transicion);
}

/* Hover */
.gallery-nav a:hover {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  transform: translateY(-2px);
}

/* Activo */
.gallery-nav a.active {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  box-shadow: inset 0 0 0 2px var(--verde-oscuro);
}

/* Ocultar navbar de galería en móvil */
.gallery-nav {
  display: none;
}

/* Mostrar solo en desktop */
@media (min-width: 769px) {
  .gallery-nav {
    display: flex;
  }
}
.gallery-section {
  padding: 4rem 1rem;
  background-color: var(--gris-suave);   /* aquí cambiamos el blanco por gris-suave */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}
.gallery-section:nth-child(even) {
  background-color: var(--gris-suave);
}
.gallery-section h2 {
  font-size: 2.4rem;
  color: var(--verde-oscuro);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.gallery-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--amarillo);
  margin: 0.5rem auto 0;
}

/* Grid de miniaturas */
.gallery-grid {
  display: grid;
  /* 4 columnas iguales */
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  width: 100%;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  /* altura automática para mantener proporción */
  height: auto;
  /* tú puedes forzar una relación fija si quieres, p.ej. 16:9 */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--sombra-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-section {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1rem;
  }
  .gallery-section h2 {
    font-size: 2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    padding: 1rem;
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}



/* === FORMULARIO DE CONTACTO=== */

/* === FORMULARIO DE CONTACTO === */
.contacto {
    background-color: var(--gris-suave);
    padding: 4rem 2rem;
    color: var(--verde-oscuro);
}

/* Dos columnas: izquierda formulario, derecha info */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* mitad-mitad */
    gap: 3rem;
    align-items: flex-start;
}

/* Formulario */
.contacto-formulario h2 {
    color: var(--verde-claro);
    margin-bottom: 1rem;
}

.contacto-formulario p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    outline: none;
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(74, 106, 32, 0.2);
}

/* Botón */
.contacto-formulario .btn {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    align-self: flex-start; /* botón alineado a la izquierda */
}

/* Mensajes */
.contacto-ok {
    margin-top: 1rem;
    font-weight: 600;
    color: #1a7f37;
}
.contacto-err {
    margin-top: 1rem;
    font-weight: 600;
    color: #c92a2a;
}

/* Info de contacto */
.contacto-info h3 {
    margin-bottom: 1rem;
    color: var(--verde-claro);
}

.contacto-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--verde-oscuro);
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contacto-icon:hover {
    transform: translateX(5px);
    color: var(--verde-claro);
}

.contacto-icon img {
    width: 28px;
    height: 28px;
}

/* Responsive: apila en móvil */
@media (max-width: 768px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }
  .contacto-formulario .btn {
    align-self: center;      
    margin: 0 auto;          
    width: auto;             
    min-width: 220px;        
    text-align: center;
  }
}






















