/* =====================================================
   RIEMANNPRECAST.CL - PROYECTOS.CSS
   CSS COMPLETO PARA proyectos.html
   Incluye: Cabecera fija, video fondo (hero), y footer
   ===================================================== */

/* ========================== RESET GENERAL ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: #FFD700;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* ========================== CABECERA FIJA ========================== */
.cabecera {
  width: 100%;
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.fila-cabecera {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cabecera-logo img {
  height: 60px;
  margin-left: 20px;
  display: block;
}

.cabecera-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 20px;
}

.cabecera-toggle .linea {
  width: 25px;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
}

.cabecera-menu {
  display: flex;
}

.cabecera-enlaces {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-right: 20px;
}

.boton-menu {
  background-color: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.boton-menu:hover,
.boton-menu.activo {
  background-color: #FFD700;
  color: #000;
}

/* ========================== ESPACIADOR MENU FIJO ========================== */
.espacio-cabecera {
  margin-top: 80px;
}

/* ========================== HERO / VIDEO DE FONDO ========================== */
.seccion-video {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 1;
}

.contenido-video {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.contenido-video h2 {
  font-size: 2rem;
  color: #FFD700;
  margin-bottom: 1rem;
}

.contenido-video p {
  font-size: 1.1rem;
  color: #fff;
}

/* ========================== FOOTER ========================== */
.footer {
  background-color: #141617;
  color: #eaeaea;
  padding: 3rem 1rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 10;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-columna {
  flex: 1 1 250px;
  min-width: 240px;
}

.footer-logo img {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-logo h3 {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0;
}

.footer-columna h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-columna p {
  margin: 0.3rem 0;
  font-size: 0.92rem;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #2a2c2d;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-copy a {
  color: #FFD700;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 768px) {
  .cabecera-toggle {
    display: flex;
  }

  .cabecera-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    display: none;
  }

  .cabecera-menu.activo {
    display: flex;
  }

  .cabecera-enlaces {
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem;
    gap: 10px;
    margin: 0;
  }

  .boton-menu {
    width: 100%;
    text-align: right;
  }

  .seccion-video {
    height: 50vh;
  }

  .contenido-video h2 {
    font-size: 1.5rem;
  }

  .contenido-video p {
    font-size: 1rem;
  }

  .footer-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-columna {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .footer-logo img {
    margin: 0 auto 1rem;
    display: block;
  }
}
/* =====================================================
   SECCIÓN PROYECTOS REALIZADOS - TARJETAS + MODALES
   ===================================================== */

/* ========================== CONTENEDOR GENERAL ========================== */
.seccion-proyectos {
  background-color: #000;
  padding: 4rem 2rem;
}

.contenedor-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}


/* ========================== TARJETA DE PROYECTO ========================== */
.tarjeta-proyecto {
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-proyecto:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
}

/* Logo del cliente */
.proyecto-logo img {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
}

/* Nombre del cliente */
.proyecto-nombre {
  color: #FFD700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Imagen del proyecto */
.proyecto-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

/* Botón */
.boton-proyecto {
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-proyecto:hover {
  background-color: #e6c200;
}

/* ========================== MODAL PROYECTO ========================== */
.modal-proyecto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-proyecto.activo {
  display: flex;
}

/* Capa oscura */
.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  top: 0;
  left: 0;
}

/* Contenido modal */
.modal-contenido {
  position: relative;
  background-color: #111;
  color: #fff;
  padding: 2rem;
  max-width: 650px;
  width: 100%;
  max-height: 90vh; /* Altura máxima del viewport */
  overflow-y: auto; /* Activa scroll interno */
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}
.modal-contenido img {
  max-width: 500px;     /* límite máximo de ancho */
  width: 100%;          /* escala proporcional dentro del contenedor */
  height: auto;         /* mantiene proporción */
  display: block;       /* evita inline gaps */
  margin: 1rem auto;    /* centra la imagen */
  border-radius: 8px;   /* opcional: bordes redondeados */
}


.modal-contenido h3 {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-contenido p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Botón cerrar (X) */
.modal-cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #FFD700;
  cursor: pointer;
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 600px) {
  .contenedor-proyectos {
    grid-template-columns: 1fr;
  }

  .modal-contenido {
    padding: 1.5rem;
  }

  .modal-contenido h3 {
    font-size: 1.3rem;
  }

  .modal-contenido p {
    font-size: 0.95rem;
  }
}
