@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --Color-primario: #15b7c9;
  --Color-secundario: #27d0ea;
  --Color-terciario: #05a6d3;
  --Color-texto: #666777;
  --Color-fondo: #ffffff;
  --Altura-navbar: 80px;
}

* {
  font-family: 'Poppins', sans-serif;
}

body {
  padding-top: var(--Altura-navbar);
  background-color: var(--Color-fondo);
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;

}

/* ============================= */
/* HERO DE IMAGEN PRINCIPAL */
/* ============================= */

.hero-imagen {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:  30% center;
  display: block;
}


/* ===== Tablets ===== */
@media (max-width: 992px) {
  .hero-imagen {
    height: 450px;
  }
}

/* ===== Móviles grandes ===== */
@media (max-width: 768px) {
  .hero-imagen {
    height: 350px;
  }
}

/* ===== Móviles pequeños ===== */
@media (max-width: 480px) {
  .hero-imagen {
    height: 250px;


  }}

/* ========================================== */
/* SECCIÓN DESCRIPCIÓN DEL PROYECTO + FORMULARIO */
/* ========================================== */



/* ======== CONTENEDOR GENERAL DEL FORMULARIO ======== */
.formulario-proyecto {
  background-color: #ffffff;
  padding: 60px 0;
}



/* ======== CUADRO DEL FORMULARIO ======== */
.formulario-proyecto .wrapper {
  background: #00adb7;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* ======== TÍTULO ======== */
.form-title {
  font-size: 1.8rem;
  text-align: center;
  color: var(--Color-terciario);
  margin-bottom: 25px;
}

/* Centrar título y descripción en el medio exacto */
.detalle-descripcion .col-md-7 {
  display: flex;
  flex-direction: column; /* Para apilar título y descripción */
  justify-content: center; /* Centrado vertical */
  align-items: center;     /* Centrado horizontal */
  text-align: center;      /* Centrar texto */
  min-height: 400px;       /* Ajusta según lo alto que quieras la sección */
}


/* ======== FILAS DE INPUTS ======== */
.input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.input-field {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

.input-field.full-width {
  flex: 1 1 100%;
}

/* ======== INPUTS ======== */
.input-field input {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field input:focus {
  border-color: #0ba5cf;
  box-shadow: 0 0 0 3px rgba(11, 138, 207, 0.15);
  outline: none;
}

.input-field label {
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
}

/* ======== CHECKBOX ======== */
.input-checks {
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #555;
}

.input-checks label {
  display: block;
  margin-bottom: 6px;
}

/* ======== BOTÓN ======== */
.form-boton {
  text-align: center;
}

.form-boton button {
  background-color: #0ba8cf;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 40px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.form-boton button:hover {
  background-color: #058ea6;
  cursor: pointer;
}



@media (max-width: 480px) {
  .formulario-proyecto .wrapper {
    padding: 20px 15px; /* Menos espacio interno */
    max-width: 95%;     /* Que no ocupe todo el ancho */
    margin: 0 auto;
  }

  .form-title {
    font-size: 1.4rem; /* Más pequeño en móviles */
    margin-bottom: 20px;
  }

  .input-field label {
    font-size: 13px;
  }

  .input-field input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .form-boton button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 30px;
  }
}


/* ============================= */
/* SECCIÓN DE PLANOS - AGRANDAR IMAGEN */
/* ============================= */


.seccion-planos {
  padding: 80px 20px;
  background-color: #fff;
}

.contenedor-planos {
  max-width: 1400px; /* más espacio para la imagen */
  margin: 0 auto;
  padding: 0 20px;
}

.contenido-planos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.imagen-plano {
  flex: 1 1 650px;
  max-width: 800px;
}

.imagen-plano img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer; /* para indicar que se puede ampliar */
}

.texto-plano {
  flex: 1 1 450px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.texto-plano h3 {
  font-size: 22px;
  color: var(--Color-terciario);
  display: flex;
  align-items: center;
  gap: 10px;
}

.texto-plano h3::before {
  content: '\f015';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--Color-terciario);
  font-size: 22px;
}

.texto-plano p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .imagen-plano,
  .texto-plano {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contenido-planos {
    flex-direction: column;
    align-items: center;
  }

  .imagen-plano {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .seccion-planos {
    padding: 50px 15px;
  }

  .titulo-planos {
    margin-bottom: 25px;
  }

  .titulo-planos .titulo-seccion {
    font-size: 30px;
  }

  .texto-plano h3 {
    font-size: 20px;
  }

  .texto-plano p {
    font-size: 15px;
  }
}

/* ===== MODAL ===== */
.modal-plano {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

.zoom-container {
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  background: #000;
  border-radius: 10px;
}

.zoom-inner {
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.zoom-inner img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

/* ============================= */
/* TÍTULO DE SECCIONES */
/* ============================= */

.titulo-seccion {
  font-size: 28px;
  color: var(--Color-terciario);
  margin-bottom: 30px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
/* ============================= */
/* SECCIÓN BENEFICIOS - AJUSTADO PARA ALARGAR HORIZONTALMENTE */
/* ============================= */
.beneficios-proyecto {
    margin-bottom: 20px;
    padding-left: 20px;
}

.beneficios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 0;
    max-width: 1450px;
    margin: 0 auto;
}

.beneficio-item {
    width: 140px;
    height: auto;
    flex-shrink: 0;
    flex-grow: 0;
    background: none;
    border-radius: 0;
    padding: 0;
    display: block;
}

.beneficio-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    border: none;
    outline: none;
    box-shadow: none;
}

@media (max-width: 1400px) {
    .beneficios-grid {
        max-width: 1100px;
    }
    .beneficio-item {
        width: 150px;
    }
}

@media (max-width: 1100px) {
    .beneficios-grid {
        max-width: 900px;
    }
    .beneficio-item {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .beneficios-grid {
        max-width: 768px;
        justify-content: center;
    }
    .beneficio-item {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .beneficios-grid {
        max-width: 600px;
    }
    .beneficio-item {
        width: 170px;
    }
}

@media (max-width: 480px) {
    .beneficios-grid {
        max-width: 350px;
    }
    .beneficio-item {
        width: calc(50% - 16px / 2);
    }
}

@media (max-width: 320px) {
    .beneficios-grid {
        max-width: 100%;
        justify-content: center;
    }
    .beneficio-item {
        width: 100%;
    }
}


.beneficio-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.beneficio-item:hover {
  transform: translateY(-8px);

}
/* ============================= */
/* VARIABLES                    */
/* ============================= */
:root {
  --altura-galeria: 450px;
}

@media screen and (max-width: 768px) {
  :root {
    --altura-galeria: 300px;
  }
}

.galeria-media-wrapper {
  position: relative;
  width: 100%;
  height: var(--altura-galeria);
  overflow: hidden;
}


/* ============================= */
/* GALERÍA DE PROYECTO          */
/* ============================= */


/* Contenedor general de la galería */
.galeria-proyecto {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #ffffff;
}

.titulo-galeria h2 {
  font-size: 30px;
  font-weight: bold;
  color: var(--Color-terciario, var(--Color-terciario));
}

/* Flex para galería y descripción si la tuvieses */
.contenedor-galeria-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Contenedor multimedia que mantiene altura */
.galeria-multimedia {
  width: 100%;
}

/* Contenedor fijo para fotos o video */
.galeria-media-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 550px; /* Aumentado para que no corte las imágenes */
  overflow: visible;
  position: relative;
}

/* Expanding cards */
.expanding-fotos {
  display: flex;
  gap: 10px;
  width: 80%;
  height: 550px; /* Ajustado para mostrar imagen completa */
  margin: 0 auto;
}

.expanding-fotos .panel {
  flex: 0.5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s ease-in-out;

}

.expanding-fotos .panel.active {
  flex: 5;
}

/* Botones */
.galeria-controles {
  margin-top: 20px;
}

.galeria-controles button {
  padding: 10px 20px;
  border: none;
  background-color: var(--Color-primario);
  color: #fff;
  border-radius: 8px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.galeria-controles button:hover {
  background-color: var(--Color-secundario);
}

.galeria-controles .activo {
  background-color: var(--Color-secundario);
}

/* Video contenedor ajustado a la altura de las imágenes */
#galeria-video {
  max-width: 80%;
  margin: 0 auto;
  height: 550px; /* misma altura que .expanding-fotos */
  overflow: hidden;
  border-radius: 20px;
}

#galeria-video video {
  width: 100%;
  height: 100%; /* fuerza que el video ocupe toda la altura del contenedor */
  object-fit: cover; /* mantiene proporción y recorta si es necesario */
  border-radius: 20px;
}


/* ===== Móviles grandes ===== */
@media (max-width: 768px) {
  .galeria-media-wrapper {
    min-height: 300px;
  }

  .expanding-fotos {
    height: 300px;
    flex-direction: column; /* opcional, apila imágenes si quieres */
  }

  #galeria-video {
    height: 300px;
  }
}


/* ===== Móviles pequeños ===== */
@media (max-width: 480px) {
  .galeria-media-wrapper {
    min-height: 220px;
  }

  .expanding-fotos {
    height: 220px;
  }

  #galeria-video {
    height: 220px;
  }
}
  
.video-modal {
  display: none; /* nunca mostrar al cargar */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.video-modal video {
  width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* ============================= */
/* MAPA DEL PROYECTO */
/* ============================= */

.mapa-proyecto {
  padding: 60px 20px;
  background-color: #fff;
  margin-top: 60px;
}

.mapa-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* Asegura alturas iguales entre mapa y detalle */
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.mapa-embed {
  flex: 1 1 550px;
  min-width: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mapa-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.mapa-detalle {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* ?? Centrado vertical */
  align-items: center;      /* ?? Centrado horizontal */
  gap: 20px;
  min-height: 420px;        /* ?? Igual altura que el mapa */
  padding: 0 10px;
}

.mapa-titulo {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--Color-terciario);
  margin: 0;
  line-height: 1.3;
}

.mapa-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  max-width: 400px;
  text-align: left;
}

/* Ícono con máscara SVG */
.icono-ubicacion {
  width: 40px;
  height: 40px;
  background-color: var(--Color-primario);
  mask: url('/assets/img/iconos/ubicacion.svg') no-repeat center;
  -webkit-mask: url('/assets/img/iconos/ubicacion.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  display: inline-block;
  flex-shrink: 0;
}

.mapa-info > div {
  text-align: center;
}

@media (max-width: 768px) {
  .mapa-layout {
    display: block; /* ?? Eliminamos flex para que nada empuje */
    text-align: center; /* ?? Centra todo */
  }

  .mapa-embed {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;  /* ?? Centra horizontalmente */
    min-width: auto;
  }

  .mapa-embed iframe {
    display: block;
    width: 100%;
    height: 300px;
  }

  .mapa-detalle {
    margin-top: 20px;
    text-align: center;
  }
}




