/* CSS Variables */
:root {
  --primary-bg: #1e192c;
  --text-color: #fff;
  --shadow: 5px 5px 25px rgb(33, 34, 34);
  --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(255, 255, 255, 0.808);
  --form-bg: rgba(123, 151, 170, 0.589);
  --btn-red: #d10808;
  --btn-hover: rgb(131, 34, 10);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}
html {
  height: 100%;
  width: 100%;
}
body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  max-width: 100vw;
}
.barra_superior {
  background-color: rgb(89, 90, 89);
  color: #fff;
  top: 0;
  text-align: right;
  height: 34px;
  padding: 4px 0 4px;
  position: fixed;
  width: 100%;
  z-index: 5000;
}
.barra_superior ul a {
  align-items: center;
  text-decoration: none;
  color: #fff;
  margin-right: 10px;
  &:hover {
    color: #c7c5c5;
  }
}

/* barra navegadora*/
.nav {
  width: 100vw;
  top: 34px;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.808);
  display: flex;
  align-items: center;
  padding: 5px;
  z-index: 5000;
}
.nav > .nav-header {
  flex: 0.95;
  padding-left: 1rem;
}
.nav > .nav-list {
  display: flex;
  gap: 2rem;
}
.nav > .nav-list > li {
  list-style-type: none;
}
.nav > .nav-list > li a {
  text-decoration: none;
  color: #5c5a5a;
  cursor: pointer;
  font-weight: bold;
  &:hover {
    color: #bcbebc;
  }
}
.nav > #nav-check {
  display: none;
}
@media (max-width: 900px) {
  .nav {
    padding: 4px;
  }
  .nav > .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 0.2rem;
  }
  .nav > .nav-btn > label {
    display: inline-block;
    width: 50px;
    height: 50px;
    padding: 4px;
  }
  .nav > .nav-btn > label > span {
    display: block;
    width: 25px;
    height: 10px;
    border-top: 3px solid #413f40;
  }
  .nav > .nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.808);
    height: 0;
    transition: all 0.3s ease-in;
    top: 59px;
    left: 0;
    overflow: hidden;
  }
  .nav > .nav-list > li {
    width: 100%;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
    &:hover {
      color: #bcbebc;
    }
  }
  .nav > #nav-check:checked ~ .nav-list {
    height: 200px;
  }
}
/*--------*/
.container {
  width: 100%;
  height: 100vh;
  background-image: url(imagenes/Dylcon\ Clientes.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20vh;
  font-weight:500;
  box-sizing: border-box;
}
.container div{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  box-shadow: 5px 5px 25px rgb(33, 34, 34);
  text-align: center;
}
.container_caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 20px;
  background-color: rgba(123, 151, 170, 0.589);
  width: auto;
  box-shadow: 5px 5px 25px rgb(33, 34, 34);
  text-align: center;
  box-sizing: border-box;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin-top: 10px;
  padding: 6px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  text-align: center;
}
h3 {
  font-size: clamp( 1rem, 2.5vw, 1.5rem);
  padding-left: 20px;
}
p {
  font-size: clamp(0.8rem, 3vw, 1.2rem);
  padding: 1% 2%;
}
/*Para Quienes Somos*/
.container_2 {
  width: 100%;
  height: 100vh;
  background-image: url(imagenes/Dylcon\ Obras.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.container_2 div {
  display: flex;
  flex-direction: column;
  background-color: rgba(92, 75, 29, 0.555);
  width: 80vw;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  box-shadow: 5px 5px 25px rgb(33, 34, 34);
  text-align: left;
}
/*---*/
/*Para Dylcon Obras y Servicios*/
.container_3 {
  width: 100%;
  height: auto;
  padding-top: 3vw;
  background-image: url(imagenes/Dylcon\ Obras\ y\ Servicios.jpeg);
  background-size: cover;
  background-position: center;
}
.container_3 ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 5px;
  font-weight: bold;
  padding: 10px;
  padding-bottom: 40px;
  text-align: center;
  text-shadow: 5px 5px 10px #000000;
  position: relative;
  width: 80vw;
  margin: auto;
}
.container_3 i:hover {
  background-color: rgba(121, 76, 61, 0.568);
  transition: background-color 1s;
  border-radius: 15px;
}

.container_3 div {
  background-color: rgba(16, 126, 120, 0.637);
  width: 80vw;
  padding-left: auto;
  padding-right: auto;
  padding-bottom: 20px;
  box-shadow: 5px 5px 25px rgb(33, 34, 34);
  text-align: left;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  text-overflow: ellipsis;
}
/*---*/
/*Para Contacto*/
.container_4 {
  width: 100%;
  height: 100vh;
  padding-top: 3vw;
  background-image: url(imagenes/Dylcon\ camion.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.formulario_2 {
  width: 65vw;
  background-color: #b39574be;
  padding: 12px;
  border-radius: 13px;
}
.formulario_2 label {
  width: 40vw;
  margin-left: auto;
  margin-right: auto;
}
.formulario_2 input {
  width: 40vw;
  margin-left: auto;
  margin-right: auto;
}
.formulario_2 textarea {
  width: 40vw;
  margin-left: auto;
  margin-right: auto;
}
input,
textarea {
  padding: 8px;
  border: 1px solid #d5e9ff;
  background-color: #f7f1f1;
  color: #102a43;
}
input[type="submit"] {
  width: 5rem;
  background: #d10808;
  color: white;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  font-size: 1.2rem;
  border-radius: 5px;
  margin-top: 1.3em;
}
input[type="submit"]:hover {
  background-color: rgb(131, 34, 10);
  transition: background-color 2s;
}
/*---*/

/*Para Empleo*/
.container_5 {
  width: 100%;
  height: auto;
  padding-top: 3vw;
  padding-bottom: 50px;
  background-image: url(imagenes/Dylcon\ pala.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.formulario1 {
  width: 70%;
  background-color: #7795b1cb;
  padding-top:10px;
  padding-bottom: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 13px;
  text-align: left;
  line-height: 2em;
  margin-top: 80px;
}
.formulario1  label{
  width: 50vw;
  margin-left: auto;
  margin-right: auto;
}
.formulario1 input {
  width: 50vw;
  margin-left: auto;
  margin-right: auto;
}
.formulario1 textarea {
  width: 50vw;
  margin-left: auto;
  margin-right: auto;
}
select{
  color: #000000;
  background-color: rgb(178, 187, 187);
  width:50vw;
}
.formulario1 input[type="submit"] {
  width: 5rem;
  background:#d10808;
  color: white;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  font-size: 1.2rem;
  border-radius: 5px;
  margin-top: 1.3em;
}
/*---*/
/*Para OBRAS*/
.container_obras {
  width: 100%;
  height: auto;
  padding-top: 3vh;
  background-size: cover;
  background-position: center;
  background-image: url(imagenes/Dylcon\ escavadora.jpg);
  text-align: center;
  position: relative;
}
.container_obras_sub{
  background-color: #504c4b6b;
  margin-top: 100px;
  padding: 5px;
}
.container_obras img{
  margin-right: 10px;
  max-width: 100%;
}
.container_obras_sub img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(54, 49, 43, 0.795);
}
.obras_servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 8px;
  align-items: center;
  justify-items:center;
  padding-top: 7vh;
  padding-bottom: 7vh;
}

.box_obra {
  background-color: rgb(255, 255, 255);
  padding: 5px;
  color: #383737;
  text-align: center;
  justify-items: center;
  align-items: center;
  margin-bottom: 10px;
  width:60%;
}

/*---*/
.boton-empezar {
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: rgb(253, 251, 251);
  border: 2px solid red;
  border-radius: 12px;
  align-self: center;
  padding: 5px;
  margin-top: 50px;
  transition: all 0.4s;
  background-color: rgb(209, 27, 27, 0.9);

  &:hover {
    background-color: rgba(114, 51, 51, 0.7);
  }
}
.separador {
  width: 100%;
  height: 14px;
  background-color: rgb(255, 255, 255);
}

/*SLIDER*/
.caja_slider {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.box{
  position: absolute;
  top: 18%;
  max-width: 300px;
  height: auto;
  z-index: 2;
}
/* movimiento de fotos*/
@keyframes slidy {
  0% {
    left: 0%;
  }
  20% {
    left: 0%;
  }
  25% {
    left: -100%;
  }
  45% {
    left: -100%;
  }
  50% {
    left: -200%;
  }
  70% {
    left: -200%;
  }
  75% {
    left: -300%;
  }
  95% {
    left: -300%;
  }
  100% {
    left: -400%;
  }
}

div#slider {
  overflow: hidden;
  position: absolute;
  z-index: 1;
}
div#slider_2 {
  width: 80%;
  background-color: rgba(89, 114, 78, 0.507);
  padding:20px;
  top:40%;
  box-shadow: 5px 5px 25px rgb(33, 34, 34);
  text-align: center;
  position:absolute;
  display: flex;
  flex-direction: column;
  align-items:center;
  z-index: 2;
}
div#slider figure img {
  width: 20%;
  float: left;
  height: 100vh;
  object-fit: cover;
}
div#slider figure {
  position: relative;
  width: 500%;
  height: 100vh;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 16s slidy infinite;
}
div#cliente {
width: 250px;
height: auto;
  position: relative;
  overflow: hidden;
}
div#cliente figure {
  position: relative;
  width: 500%;
  height: auto;
  animation: 16s slidy infinite;
  margin-left: 400%;
}
div#cliente figure img{
  width:20%;
  float: left;
  height: auto;
  object-fit: cover;
  }
/*------*/

/*Pie de pagina*/
.footer {
  background-color: #504c4b;
  color: #fff;
  padding: 10px;
  border-top: 3px solid #e40606;
  width: 100%;
  height: auto;
}
.footer_caja {
  max-width: 100%;
  margin: 5px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 5px;
  padding: 5px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: center;
}

.footer-col ul {
  list-style: none;
  padding-bottom:  10px;
}
.footer-col a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  &:hover {
    color: #7c7474;
  }
}
.footer-col i {
  padding-right: 15px;
}
.footer-col li {
  display: grid;
  margin: 5px;
  position: relative;
  white-space: nowrap;
  font-size: 15px;

  a:active {
    content: "";
  }
  a:hover {
    color: #7c7474;
  }
}

.caja {
  width: 100%;
  background-color: rgb(62, 63, 62);
  color: #fff;
  text-align: center;
  bottom: 0;
  height: 30px;
display: flex;
}


/* MEDIA RESPONSIVE*/

@media (max-width: 900px) {
  .footer_caja{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .formulario_2 {
    width: 90vw;
  }
  .formulario_2 label,
  .formulario_2 input,
  .formulario_2 textarea {
    width: 80vw;
  }
  .formulario1 {
    width: 90%;
  }
  .formulario1 label,
  .formulario1 input,
  .formulario1 textarea,
  select {
    width: 80vw;
  }
  .container_2 div {
    width: 90vw;
  }
  .container_3 ul,
  .container_3 div {
    width: 90vw;
  }
  .obras_servicios {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}
@media (max-width: 500px) {
  .obras_servicios{
    grid-template-columns: 1fr;
  }
.box_obra{
  width: 35%;
}
}
/* flecha */
.ir-arriba {
  display: none;
  background-repeat: no-repeat;
  cursor: pointer;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

/* boton whatsapp*/
.whatsapp-btn {
  position: fixed;
  bottom: 260px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

/* icono whatsapp*/
.whatsapp-btn i {
  color: #fff;
  font-size: 24px;
  animation: beat 2s ease-in-out infinite;
}

/*animation contorno */
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*animacion del icono*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.dropdown {
  position: relative;
  display: inline-block;
  height: 0px;
}

.dropdown-content {
  display: none;
  position: fixed;
  bottom: 210px;
  right: 50px;
  background-color: #f9f9f9;
  min-width: 160px;
  color:#000000;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 4444;
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Estilos para el contenedor de la imagen */
#imageContainer {
  text-align: center; 
  position: absolute;
  z-index: 9999;
  width: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

/* Estilos para la imagen */
#myImage {
  display: none;
  max-width: 100%; /* Ajustar la imagen al ancho del contenedor */
  max-height: 100%; /* Ajustar la imagen al alto del contenedor */
}
