/* ================= VARIABLES Y CONFIGURACIÓN BASE ================= */
:root {

  --marketing-green: #0a2f1c;
  --marketing-bright-green: #00ff66;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #051c10;
  color: #051c10;

  /* Scroll overlay (cuando el navegador lo soporte) */
  overflow-y: overlay;

  /* Ocultar scrollbar en Firefox */
  scrollbar-width: none;
}

/* Ocultar scrollbar en Chrome */
body::-webkit-scrollbar {
  display: none;
}

/* ================= SCROLLBAR CUSTOM ================= */
.scrollbar {
  position: fixed;
  top: 0;
  right: 8px;
  width: 6px;
  height: 100vh;

  z-index: 9999;
  pointer-events: none;
  /* 👈 no interfiere con clicks */
}

.thumb {
  width: 100%;
  position: absolute;
  top: 0;

  background: var(--marketing-bright-green);
  border-radius: 10px;

  box-shadow: 0 0 10px var(--marketing-bright-green),
    0 0 20px var(--marketing-bright-green);

  transition: background 0.3s ease;
}

/* Hover opcional (si decides activar pointer-events) */
.scrollbar:hover .thumb {
  background: #00cc55;
}

/* ================= CONTENIDO DEMO ================= */
.contenido {
  min-height: 200vh;
  /* solo para probar scroll */
}

/* ================= NAVEGACIÓN ================= */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 15px 30px;
  display: flex;
  justify-content: flex-start;
  box-sizing: border-box;
  z-index: 10;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: var(--marketing-bright-green);
}

/* ================= ESTILOS DEL NUEVO LOGO ================= */
.logo-link {

  text-decoration: none;
  outline: none;
}

.nav-logo {

  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 13px;
}


.nav-logo:hover {
  transform: scale(1.05);
}

/* ================= FOOTER ================= */
.footer-section {
  background: linear-gradient(to bottom, #0a2f1c, #051c10);
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  padding: 80px 20px;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 25px;
}

.footer-column a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 14px;
  transition: 0.3s;
}

.footer-column a:hover {
  color: white;
}

/* ================= SECCIÓN PROYECTOS ================= */
.main-content {
  width: 100%;
  display: block;
}

/* --- Sección Principal (Antes Blanca, ahora con degradado oscuro) --- */
.seccion-blanca {
  /* Aplicamos un degradado verde oscuro similar al del footer */
  background: linear-gradient(to bottom, #051c10, #0a2f1c); 
  padding: 140px 5% 80px 5%;
  color: #ffffff; /* Texto general en blanco para que contraste */
}

.titulo-proyectos {
  font-size: 3.5rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 40px;
  letter-spacing: -1px;
  color: #ffffff; /* Aseguramos que el título sea blanco */
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* --- Ajuste de color de texto específico para las tarjetas en el fondo oscuro --- */
.seccion-blanca .tarjeta-proyecto p {
  color: #ffffff; /* Letras blancas para las tarjetas de arriba */
}

/* --- Sección Verde (Se mantiene igual) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap');

.seccion-verde{
    background: linear-gradient(
        135deg,
        #1b5e20,
        #2e7d32
    );
    padding: 120px 20px;
    text-align: center;
}

.titulo-premium{
    max-width: 1000px;
    margin: auto;
}

.titulo-premium h2{
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin: 40px 0 30px;
    letter-spacing: -2px;
}

.titulo-premium span{
    color: #02be05;
    position: relative;
}

.titulo-premium span::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 100%;
    height: 12px;
    background: rgba(255,213,79,.25);
    z-index: -1;
}

.titulo-premium p{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,.9);
    letter-spacing: 1px;
}

.decoracion{
    width: 600px;
    height: 4px;
    margin: auto;
    border-radius: 50px;
    background-color:#02be05;
}


/* --- Estilos compartidos de las tarjetas --- */
.tarjeta-proyecto {
  display: flex;
  flex-direction: column;
}

/* --- Estilos compartidos de las tarjetas y links --- */
.tarjeta-proyecto a {
  text-decoration: none; /* Evita que el texto se subraye al ser un link */
  color: inherit; /* Mantiene el color del texto intacto */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tarjeta-proyecto img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px; /* Bordes ligeramente redondeados */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Sombreado para que resalten */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Marco muy sutil */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación fluida */
}

/* Efecto al pasar el cursor (Hover) */
.tarjeta-proyecto:hover img {
  transform: scale(1.04); /* Ligero zoom */
  box-shadow: 0 12px 25px rgba(0, 255, 102, 0.15); /* La sombra toma un tono verde sutil */
}

.tarjeta-proyecto p {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  /* Por defecto oscuro para la sección verde inferior */
  color: #051c10; 
}

/* --- Sección Verde --- */
.seccion-verde {
  /* Usamos un verde similar al de la imagen, o tu variable si prefieres un tono más neón */
  background-color: #0bd664;
  padding: 80px 5%;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* --- Estilos compartidos de las tarjetas --- */
.tarjeta-proyecto {
  display: flex;
  flex-direction: column;
}

.tarjeta-proyecto img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Mantiene la proporción rectangular de la imagen */
  object-fit: cover;
  margin-bottom: 15px;
}

.tarjeta-proyecto p {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  color: #051c10;
  /* Color oscuro para contraste en fondo blanco y verde */
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #111;
  color: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 260px;
}
.modal-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.modal-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}
.btn-modal {
  display: inline-block;
  padding: 10px 22px;
  background: #fff;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-modal:hover { background: #ddd; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #aaa; }

/* Cards clickeables */
.tarjeta-proyecto {
  cursor: pointer;
}
.tarjeta-proyecto:hover img {
  opacity: 0.85;
  transition: opacity 0.2s;
}
/* --- Responsividad (Móviles y Tablets) --- */
@media (max-width: 900px) {
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .grid-3-cols,
  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .titulo-proyectos {
    font-size: 2.5rem;
  }
}
/* ================= PÁGINA DE DETALLES DEL PROYECTO ================= */
.detalle-proyecto {
  text-align: center; 
}

.titulo-detalle {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #ffffff;
  letter-spacing: -2px;
}

.imagen-banner-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px auto;
}

.imagen-banner {
  width: 100%;
  height: auto;
  max-height: 550px; /* Evita que la imagen sea excesivamente alta */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* ================= TEXTO DETALLE DEL PROYECTO ================= */
.texto-detalle {
  max-width: 900px; /* Lo hacemos un poco más ancho para que se note bien el escalonado */
  margin: 0 auto;
  text-align: left;
  color: #cccccc;
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 0 20px; /* Un poco de respiro en los bordes para pantallas pequeñas */
}

.texto-detalle .intro {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Magia del layout: Empuja la línea y los textos inferiores a la derecha */
.contenido-desplazado {
  margin-left: 35%; 
  width: 65%;
}

.texto-detalle .separador {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15); 
  margin: 0 0 40px 0; 
}

.texto-detalle h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.texto-detalle p {
  margin-bottom: 35px;
}

/* --- Ajuste para móviles --- */
/* En pantallas pequeñas (celulares), el margen a la derecha se vería apretado, 
   así que devolvemos todo a su ancho normal para que se lea bien. */
@media (max-width: 768px) {
  .contenido-desplazado {
    margin-left: 0;
    width: 100%;
  }
}