/* ==================== RESET GLOBAL ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ==================== ESTILOS GENERALES ==================== */
body {
  font-family: 'Arial', sans-serif;
  background-color: #e9e9e9;
  color: #333;
  height: 100vh;
}

/* ==================== HEADER ==================== */
header {
  background: #131313;
  color: #fdfdfdec;
  padding: 1rem;
  text-align: center;
  display: flex;
}

.logo {
  background-image: url(../img/isotipo.svg);
  height: 50px;
  width: 50px;
  background-repeat: no-repeat;
  background-size: cover;
}
.menu-toggle {
  display: none;
}
nav {
  margin-left: 73%;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #fdfdfdec;
  text-decoration: none;
  font-weight: bold;
}

/* ==================== SECCIÓN MISIÓN, VISIÓN Y VALORES ==================== */

.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8; /* puedes ajustar opacidad */
}
.seccion-mvv {
  background-size: cover;
  background-position: center;
  height: 550px;
  position: relative;
  overflow-x: hidden;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.contenido-mvv {
  display: flex;
  gap: 6rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 280px;
  margin:0 auto;
  background-color: #cfcfcf;
}

.tarjeta-mvv {
  background: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  width: 300px;
  height: 320px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 2px 2px 15px #696969;
}

.tarjeta-mvv h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-weight: 400;
  font-style: bold;
}

.tarjeta-mvv:hover {
  transform: translateY(-8px);
}

.tarjeta-mvv img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.tarjeta-mvv p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.tarjeta-mvv.mision,
.tarjeta-mvv.vision {
  background-color: lab(10.77% 0 0);
  color: #fff;
}

.tarjeta-mvv.valores {
  background-color: #f4f4f4;
  color: #131313;
}

.valores_card {
  list-style: none;
  text-align: left;
}

/* ==================== SECCIÓN NOSOTROS ==================== */
.nosotros {
  background-color: #e6e6e6;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  margin-bottom: 75px;

}

.contenedor-nosotros {
  display: flex;
  max-width: 1100px;
  background-color: #cacaca;
  border-radius: 12px;
  height: 250px;
  overflow: visible;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  align-items: center;
}

.imagen-nosotros {
  width: 400px;
  max-width: 450px;
  height: 300px;
  border-radius: 15px;
  position: relative;
  background-image: url(../img/equipo_prov.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(-20px);
  box-shadow: 3px 3px 15px #b1b1b1;
}

.texto-nosotros {
  padding: 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.texto-nosotros h3 {
  font-size: 18px;
}

.texto-nosotros p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.stats-nosotros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgb(219, 219, 219);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat img {
  width: 24px;
  height: 24px;
}

/* ==================== SECCIÓN SERVICIOS ==================== */
.servicios {
  margin-top: 150px;
  background-color: #e6e6e6;
  padding: 4rem 2rem;
  text-align: center;
}

.contenedor-servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: left;
  margin-left: 280px;
}

.contenedor-servicios h2 span {
  display: block;
  font-weight: 300;
  font-size: 1.5rem;
}

.grid-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card-servicio {
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 300px;
  flex: 1;
  transition: transform 0.3s ease;
}

.card-servicio:hover {
  transform: translateY(-8px);
}

.card-servicio h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-servicio img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card-servicio p {
  font-size: 12pt;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

/* ==================== SECCIÓN EQUIPO ==================== */
.nuestro-equipo {
  background-color: #f1f1f1;
  padding: 4rem 2rem;
  text-align: center;
  height: 350px;

}

.contenedor-equipo h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  margin-left: 350px;

}

.contenedor-equipo h2 span {
  display: block;
  font-weight: 300;
  font-size: 1.5rem;
}

.grid-equipo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  height: 350px;
  padding: 25px 0 25px 0;
}

.card-equipo {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  max-width: 280px;
  height: 280px;
  flex: 1;
  transition: transform 0.3s ease;
  position: relative;
}

.icono_equipo {
  border: 5px solid rgb(255, 255, 255);
  background-color: #cacaca;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  transform: translate(65%, -65%);
  margin-bottom: 7px;
}

.icono_equipo img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.card-equipo:hover {
  transform: translateY(-8px);
}

.card-equipo h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 0.5rem;
}

.card-equipo p {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #444;
}

.card-equipo span {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}


/* ==================== SECCIÓN CONTACTO ==================== */
.contacto {
  background-color: #e6e6e6;
  padding: 4rem 2rem;
  text-align: center;
}

.contenedor-contacto h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.contenedor-contacto h2 span {
  display: block;
  font-weight: 300;
  font-size: 1.5rem;
}

.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.formulario-contacto button {
  background-color: #131313;
  color: white;
  padding: 0.9rem;
  height: 50px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #000;
}

.botones {
  display: flex;
  justify-content: center;
  padding: 25px;
  gap: 15px;
}

.btn-whatsapp {
  height: 50px;
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  text-align: center;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}
/* ==================== FOOTER ==================== */
footer {
  margin-top: 85px;
  background: #131313;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  justify-content: center;
}
.info{
  display: flex;
  gap: 5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom:20px;
}

#mail,#tel,#direccion{
  padding-right:50px;
  text-align: center;
  display: flex;  
  align-items: center;
  justify-content: center;
  border-right: 2px solid white;
}
.icon{
  width: 25px;
  height: 25px;
  margin-right: 15px;
}
#direccion{
  border: none;
}
#derechos{
  font-size: 8pt;
  letter-spacing: 1.5pt;
}
/* ==================== MEDIA QUERY: LAPTOP (≥ 1024px) ==================== */
@media (min-width: 1024px) {
  nav {
    margin-left: auto;
  }
  .nosotros{
  margin-top: 0;
}
  .contenedor-equipo h2,
  .contenedor-servicios h2 {
    margin-left: 280px;
    text-align: left;
  }

  .contenido-mvv {
    flex-direction: row;
  }

  .contenedor-nosotros {
    flex-direction: row;
    height: auto;
  }
}


/* ==================== MEDIA QUERY: TABLET (≥ 768px y < 1024px) ==================== */
@media (max-width: 1023px) and (min-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-left: 0;
  }

  nav ul {
    justify-content: center;
  }
  .contenido-mvv {
    flex-direction:row;
    align-items: center;
    gap: 1rem;
  }

  .tarjeta-mvv{
    width:400px;
    height: 300px;
  }
.nosotros{
  margin-top: 0;
}
.contenedor-nosotros {
    flex-direction: column;
    height: auto;
    padding: 2rem;
  }

  .imagen-nosotros {
    width: 100%;
    height: 250px;
    transform: none;
  }

  .texto-nosotros {
    padding: 1rem;
  }

  .grid-servicios,
  .grid-equipo {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-servicio,
  .card-equipo {
    max-width: 25%;
  }

  .contenedor-equipo h2,
  .contenedor-servicios h2 {
    margin-left: 0;
    text-align: center;
  }
  #derechos{
  font-size: 6pt;
  letter-spacing: 1.5pt;
}
}


/* ==================== MEDIA QUERY: MÓVIL (< 768px) ==================== */
@media (max-width: 767px) {

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Mostrar menú hamburguesa solo en móvil */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
  }

  /* Asegura que no se vea en desktop */
.nav-principal {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: #131313;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

  .nav-principal.open {

  display: block;
  opacity: 1;
  transform: translateY(0);
  }

  /* Estilo del header en vertical */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    position: relative;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  /* Sección MVV en columna sin salir del banner */
   .video-fondo {
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
  }
 
  .seccion-mvv {
    position: relative;
    height:550px ;
    padding: 2rem 1rem;
    align-items: center;
    overflow: visible;
  }

  .contenido-mvv {
    position: relative; /* ✅ asegura que esté sobre el video */
    z-index: 0;
    gap: 2rem;
    width: 100%;
    flex-direction: column;
    margin-bottom: 15px;
    padding-top: 1rem;
    gap: 2rem;
    height:850px;
  }

  .tarjeta-mvv {
    width: 75%;
    max-width: 75%;
    height: 300px;
    padding: 1.5rem;
    transform: translateY(30px);
  }
.nosotros {
    margin-bottom: 3rem; /* agrega espacio inferior */
    height: 600px;
    background-color: none;
  }
.imagen-nosotros{
  width: 400px;
  height: 200px;
  border-radius: 15px;
  position: static;
  box-shadow: none;
}
  .servicios {
    margin-top: 150px;
    padding-top: 0; /* para asegurar separación del título */
  }

  .contenedor-servicios h2 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.2;
  }

  .contenedor-servicios h2 span {
    font-size: 1.2rem;
  }
  /* Resto del diseño vertical */
.grid-servicios {
  flex-direction: column;
  align-items: center;
}

.card-servicio {
  width: 100%;
  max-width: 90%;
}

.imagen-nosotros {
  width: 100%;
  height: 200px;
  transform: none;
  margin-bottom: 1rem;
}

.nuestro-equipo {
  height: auto !important;
  padding: 3rem 1rem;
  margin-bottom: 3rem;
}

.contenedor-equipo h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.grid-equipo {
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 1.5rem;
  height: auto !important;
  overflow: visible;
  margin-top: 50px;
}

.card-equipo {
  width: 100%;
  max-width: 320px;
  height: auto !important;
  padding: 2rem 1rem;
}

.icono_equipo {
  position: static;
  margin: 0 auto 1rem;
  transform: none;
}

.icono_equipo img {
  width: 100px;
  height: 100px;
}
.contenedor-contacto{
margin-top: 50px;
}
.formulario-contacto {
  width: 100%;
  padding: 0 1rem;
}

.botones {
  flex-direction: column;
  gap: 1rem;
}

.btn-whatsapp,
.formulario-contacto button {
  width: 100%;
}
.info{
  flex-direction: column;
  gap:2.5rem;
  margin-bottom:1.5rem;
}
#direccion,#tel,#mail{
  border: none;
  height: 5px;
}
#derechos{
  font-size: 6pt;
  letter-spacing: 1.5pt;
}
}