/* FUENTES */
html {
  font-family: Arial, Helvetica, sans-serif;
}

/* ESTILOS GENERALES */
* {
  padding: 0px;
  margin: 0px;
  overflow-x: hidden;
}

body {
  background-image: url(img/paven.png);
}

/* -----HEADER----- */
.header {
  padding: 1rem;
  width: 100%;
  height: 250px;
  text-align: center;
  margin: 0px auto;
  margin-top: 20px;
}
.picture img {
  width: 140px;
  height: 140px;
}
h1 a {
  font-size: 50px;
  color: #630000;
  margin-top: 5px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px black;
  letter-spacing: 4px;
  transition: all 300ms;
}

h1 a:hover {
  color: #b38280;
  text-shadow: 1px 1px 2px black;
}
/* RESPONSIVE HEADER */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .picture img {
    width: 100px;
    height: 100px;
  }
  .logotipo h1 a {
    font-size: 1.5rem;
    text-align: center;
  }
}
/* -----FIN DEL HEADER----- */
/* -----MENU DE NAVEGACION----- */
.hamburger {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  display: none;
  font-size: 30px;
  color: #630000;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}
.hamburger:hover {
  background: none;
}
.nav {
  background-color: black;
}

.barra {
  list-style: none;
  display: flex; /*agregado*/
  justify-content: center;
  padding: 0;
  margin: 0;
}

.barra > li {
  line-height: 40px;
  float: left;
  transition: all 300ms;
}

.barra > li:hover {
  background-color: #630000;
  box-shadow: 0px 0px 4px green inset;
}

.barra > li > a {
  color: white;
  text-decoration: none;
  display: block;
  padding-left: 20px;
  padding-right: 20px;
}

.barra > li > a:first-child {
  border-left: 1px solid gray;
}

/* MENU DESPLEGABLE */
.nav > ul > li > ul {
  display: none;
  position: absolute;
  width: 160px;
  box-shadow: 0px 2px 2px gray;
  z-index: 3;
}
.nav > ul > li:hover > ul {
  display: block;
}
.nav > ul > li:hover > ul > li {
  background-color: #f2f1f0;
  border-bottom: 1px solid #d6d6d6;
  padding: 8px;
  line-height: 25px;
  font-size: 13px;
  transition: all 300ms;
}
.nav > ul > li:hover > ul > li a {
  color: #666666;
  text-decoration: none;
}
.nav > ul > li:hover > ul > li:hover {
  box-shadow: 0px 0px 6px #666 inset;
}
/* RESPONSIVE MENU DE NAVEGACION */
@media (max-width: 820px) {
  .barra {
    display: none;
    flex-direction: column;
    background-color: #ccc;
    position: absolute;
    top: 60px; /* o según tu diseño */
    right: 0;
    width: 100%;
    padding: 1rem;
  }

  .barra.active {
    display: flex;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }
  .hamburger:focus {
    outline: none;
    box-shadow: none;
  }
}
/* -----FIN DEL MENU DE NAVEGACION----- */

/* -----INICIO DEL MAIN----- */
#main {
  min-height: 100%;
  position: relative;
}
.redireccion {
  text-decoration: none;
  color: white;
}
.video-container {
  position: relative;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.capa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1c1c1d;
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 1;
}
.video-container > *:not(video):not(.capa) {
  position: relative;
  z-index: 2;
}
.video-container h2 {
  font-size: 50px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.video-container p {
  font-size: 20px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn {
  all: unset;
  margin: 20px;
  padding: 5px;
  background-color: #63000000;
  font-size: 30px;
  border-radius: 5px;
  box-shadow: 1px 1px solid #ccc;
  cursor: pointer;
  border: 1px solid white;
}
.btn:hover {
  background-color: #630000;
  border: none;
}
/* RESPONSIVE DEL MAIN */
/* Pantallas pequeñas */
@media (max-width: 768px) {
  .video-container {
    height: 50vh;
  }

  .video-container h2 {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .video-container p {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .btn {
    font-size: 25px;
    padding: 10px 20px;
    margin: 15px;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
  .video-container {
    height: 40vh;
  }

  .video-container h2 {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .video-container p {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .btn {
    font-size: 20px;
    padding: 8px 16px;
    margin: 10px;
  }
}
/* -----FIN DEL MAIN----- */
/* -----INICIO DEL BROCHURE----- */
.descarga {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 10px;
  background-color: #630000;
}
.descarga h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
  flex: 1 1 100;
}
.download-button {
  padding: 8px 12px;
  background-color: #007bff;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  color: white;
}
.download-button:hover {
  background-color: #238cfc;
}
/* RESPONSIVE DEL BROCHURE */
@media (max-width: 600px) {
  .descarga {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .descarga h3 {
    font-size: 1rem;
  }

  .download-button {
    width: 90%;
    text-align: center;
  }
}
@media (max-width: 450px) {
  .descarga {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .descarga h3 {
    font-size: 1rem;
    margin-top: 10px;
    gap: 0.2rem;
  }

  .download-button {
    width: 90%;
    text-align: center;
  }
}
/* -----FIN DEL BROCHURE----- */
/* -----INICIO DEL QUIENES SOMOS----- */
.quienes-somos {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: wrap;
  margin: 0;
  padding: 10px;
  margin: 10px;
  padding: 30px;
}
.def {
  margin-top: 20px;
  font-weight: bold;
}
.parrafo {
  font-weight: 200;
  margin-top: 20px;
  text-align: justify;
}
.quienes-somos-texto {
  width: 60%;
  margin-left: 40px;
}

h4 {
  display: inline-block;
  border-bottom: 3px solid #b38280;
  padding-bottom: 0.3rem;
}
.img-experiencia {
  max-width: 150px;
  height: auto;
  margin-right: 40px;
}
/* RESPONSIVE DEL QUIENES SOMOS */
@media (max-width: 768px) {
  .quienes-somos {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .quienes-somos-texto {
    width: 100%;
    margin-left: 0;
  }

  .img-experiencia {
    margin: 20px auto 0 auto;
    max-width: 120px;
  }
}
/* -----FIN DEL QUIENES SOMOS----- */
/* -----INICIO DE CLIENTES----- */
.clientes {
  max-width: 100%;
  padding: 2rem 1rem;
  overflow: hidden;
  text-align: center;
}
.nuestros-clientes-titulo {
  margin-bottom: 3rem;
}

.img-clientes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.img-clientes img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* RESPONSIVE DE CLIENTES */
@media (max-width: 768px) {
  .img-clientes {
    gap: 1rem;
  }

  .img-clientes img {
    max-width: 100px;
  }

  .nuestros-clientes-titulo {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .img-clientes img {
    max-width: 80px;
  }

  .nuestros-clientes-titulo {
    font-size: 1rem;
  }
}
/* -----FIN DE CLIENTES----- */
/* -----INICIO DE CONTACTO----- */
.contenido-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
}

.contenido-principal-contacto {
  flex: 1 1 300px;
  max-width: 400px;
  margin-left: 15%;
}

.contacto-titulo {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 20px;

  text-align: left;
  color: #333;
}

.contacto-iconos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.contacto-iconos div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #333;
}

.contacto-iconos svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.map {
  flex: 1 1 100%;
  max-width: 600px;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* RESPONSIVE CONTACTO */
@media (min-width: 768px) {
  .contenido-contacto {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .contenido-principal-contacto {
    flex: 1;
    max-width: 400px;
    text-align: left;
  }

  .contacto-iconos {
    align-items: flex-start;
  }

  .map {
    flex: 1;
    max-width: 600px;
  }

  .map iframe {
    height: 100%;
    min-height: 400px;
  }
}
/* -----FIN DEL CONTACTO----- */
/* -----INICIO DEL FOOTER----- */
.footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 0;
  font-size: 16px;
}
/* RESPONSIVE DEL FOOTER */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0;
  }

  .footer-container {
    padding: 0 10px;
  }

  .footer p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .footer p {
    font-size: 12px;
  }
}

/* *****PAG QUIENES SOMOS***** */
#main-vision {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.vision {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
}

.vision img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

.vision .capa {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.vision h2,
.vision p {
  z-index: 2;
}
.vision h2 {
  font-size: 50px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.vision p {
  font-size: 20px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
/* CONTENIDO DE VISION */
.contenido-vision {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

.intro-vision {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

.intro-vision img {
  width: 40%;
  border-radius: 10px;
  object-fit: cover;
  display: flex;
  justify-content: end;
}

.texto-intro {
  flex: 1;
}

section {
  margin-bottom: 40px;
}

section img {
  width: 40%;
  max-width: 600px;
  margin-top: 20px;
  border-radius: 10px;
  object-fit: cover;
}
.vision-empresarial p {
  text-align: justify;
}
/* RESPONSIVE PARA PAG VISION */
@media (max-width: 768px) {
  .vision {
    padding: 0 15px;
  }
  .vision h2 {
    font-size: 40px;
    letter-spacing: 2px;
    padding: 0 10px;
  }

  .vision p {
    font-size: 20px;
  }

  .intro-vision {
    flex-direction: column;
    text-align: center;
  }

  .intro-vision img {
    width: 100%;
    max-width: 100%;
  }

  .contenido-vision {
    padding: 20px 10px;
  }

  section img {
    max-width: 100%;
  }

  .vision-empresarial p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .vision h2 {
    text-align: center;
    font-size: 35px;
  }

  .vision p {
    text-align: center;
    font-size: 10px;
  }

  .intro-vision {
    gap: 10px;
  }

  .intro-vision img {
    width: 100%;
  }

  section img {
    width: 100%;
  }
}
@media (max-width: 390px) {
  .vision p {
    font-size: 10px;
    text-align: center;
  }
}
/* *****PAG PROYECTOS REALIZADOS***** */
#main-cv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.cv {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
}

.cv img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}
.cv img:hover {
  transform: scale(1.1);
}

.cv .capa {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.cv h2,
.cv a {
  z-index: 2;
}
.cv h2 {
  font-size: 50px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.cv a {
  font-size: 20px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.download-button-cv {
  padding: 8px;
  background-color: #007bff;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  color: white;
}
.download-button-cv:hover {
  background-color: #238cfc;
}
/* RESPONSIVE DE PROYECTOS REALIZADOS */
@media (max-width: 768px) {
  .cv h2 {
    font-size: 35px;
  }

  .cv a {
    font-size: 18px;
    padding: 8px 15px;
  }

  .cv .capa {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .download-button-cv {
    width: 90%;
    margin-top: 20px;
    padding: 12px 25px;
  }

  .cv {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .cv h2 {
    font-size: 28px;
  }

  .cv a {
    font-size: 16px;
    padding: 5px 8px;
  }

  .cv .capa {
    background-color: rgba(0, 0, 0, 0.2);
  }

  .download-button-cv {
    font-size: 14px;
    width: 90%;
    padding: 10px 20px;
  }

  .cv {
    padding: 5px;
  }
}

/* *****PAG DE FORMULARIO***** */
#main-contacto {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.contacto {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
}

.contacto img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

.contacto .capa {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.contacto h2,
.contacto p {
  z-index: 2;
}
.contacto h2 {
  font-size: 50px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}
.contacto p {
  font-size: 20px;
  text-shadow: 1px 1px 1px black;
  letter-spacing: 4px;
  transition: all 300ms;
}

.body-formulario {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-container {
  background: rgba(240, 240, 240, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.body-formulario p {
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn-form {
  width: 100%;
  padding: 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  border-radius: 5px;
  color: white;
}

button:hover {
  background-color: #238cfc;
}
/* RESPONSIVE DE LA PAG CONTACTO */
@media (max-width: 768px) {
  .contacto {
    padding: 0 15px;
  }

  .contacto h2 {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .contacto p {
    font-size: 16px;
    letter-spacing: 1px;
    padding: 0 10px;
  }

  .contacto img {
    object-position: center top;
  }
}

@media (max-width: 480px) {
  .contacto h2 {
    text-align: center;
    font-size: 40px;
  }

  .contacto p {
    text-align: center;
    font-size: 24px;
  }

  .contacto {
    justify-content: center;
    padding-top: 100px;
  }

  .contacto img {
    object-position: center 10%;
  }
}
/* *********************************SERVIVIOS***************************** */

.servicios {
  padding: 20px;
  text-align: center;
}

.fila-horizontal {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tarjeta {
  flex: 0 0 90%;
  max-width: 300px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  scroll-snap-align: center;
  transition: transform 0.3s;
  text-align: left;
}

.tarjeta img {
  width: 100%;
  border-radius: 8px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}

.tarjeta h3 {
  margin-top: 0;
  color: #007bff;
}

.tarjeta p {
  font-size: 15px;
  margin-bottom: 10px;
}

.btn-desplegar {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-desplegar:hover {
  background-color: #0056b3;
}

.lista-oculta {
  list-style-type: disc;
  margin-top: 10px;
  padding-left: 20px;
  display: none;
}

.lista-oculta.visible {
  display: block;
}

/* Indicadores de posición */
.indicadores {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.punto {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  transition: background-color 0.3s;
}

.punto.activo {
  background-color: #007bff;
}

/* Pista de deslizamiento */
.desliza-pista {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* Responsive: cambiar layout en pantallas grandes */
@media (min-width: 768px) {
  .fila-horizontal {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .tarjeta {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .indicadores,
  .desliza-pista {
    display: none;
  }
}
/* *******************TARJETAS EN EL CV****************************** */
.contenedor-proyectos {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
}

/* Titulares */
.contenedor-proyectos h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.contenedor-proyectos h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-top: 30px;
  border-left: 4px solid #4a90e2;
  padding-left: 10px;
}

.contenedor-proyectos h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-top: 20px;
}

/* Puntos */
.contenedor-proyectos p {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
}

.contenedor-proyectos p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-size: 1.2rem;
  line-height: 1;
}

/* Animación de difuminado */
@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .contenedor-proyectos {
    padding: 15px;
  }

  .contenedor-proyectos h2 {
    font-size: 1.5rem;
  }

  .contenedor-proyectos h3 {
    font-size: 1.2rem;
  }
}
