/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    text-align: justify;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 1%;
    background-color: #1066ab; /* Color principal de MRT */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styles */
header .logo img {
    height: 50px;
    width: auto;
    margin-left: 60%;
}

/* Navigation Menu Styles */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
  text-decoration: none; /* Elimina el subrayado predeterminado */
  color: #ffffff; /* Texto en blanco para contraste */
  font-size: 16px;
  padding: 7px 2px; /* Espaciado interno para el efecto del cuadro */
  border-radius: 5px; /* Bordes redondeados */
  transition: background-color 0.3s ease, color 0.3s ease; /* Transiciones suaves */
}

nav ul li a:hover {
  background-color: #66B2FF; /* Fondo azul claro al pasar el cursor */
  color: #003366; /* Cambia el color del texto al azul oscuro */
}









/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        display: none; /* Inicialmente oculto para pantallas pequeñas */
        background-color: #2077bd;
        padding: 10px;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    nav ul.active {
        display: flex; /* Mostrar menú al activar */
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}

/* Ajuste para el menú hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

/* Ajustes para el menú en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #13508b;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }








    
}








/* Large Logo Section Styles */
.large-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #ffffff; /* Fondo blanco para destacar el logo */
}

.large-logo img {
    width: 200px; /* Tamaño del logo grande */
    max-width: 100%;
    height: auto;
}


























/* -----------------------------Estilos para la sección de servicios----------------------------- */



/* Sección de inicio */
.inicio-section {
    position: relative;
    width: 100%;
    min-height: 50vh; /* Ocupa toda la altura de la pantalla */
    background: url('../img/imagenservicios.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Capa oscura sobre la imagen */
.inicio-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Contenedor del texto y contenido */
.inicio-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.623);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    z-index: 1;
    color: white;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
    
}


/* Título y texto */
.inicio-section h2, .inicio-section h3, .inicio-section p, .lista-servicios li {
    position: relative;
    z-index: 1;
    color: white;
}

.inicio-section p{

    text-align: justify;

}

.inicio-section h3{

    margin-top: 6%;
}




























/* Sección de Contacto */
.vivamihome {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Ocupa la mitad de la altura de la pantalla */
    background: url('../img/imagencontactanos.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;

    
    /* Agregamos separación visual */
    margin-top: 0%;
    margin-bottom: 0%px; /* Espaciado inferior */
    padding-bottom: 50px; /* Más espacio dentro */

    /* Agregamos separación visual */

    border-top: 3px solid #2a2c2f;
    

    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05); /* Sombra leve para profundidad */
}

/* Capa oscura sobre la imagen */
.vivamihome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Contenedor del texto y contenido */
.vivamihome-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.623);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    z-index: 1;
    color: white;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
}

/* Título y texto */
.vivamihome h2, .vivamihome h3, .vivamihome p {
    position: relative;
    z-index: 1;
    color: white;
}

/* Texto justificado */
.vivamihome p {
    text-align: justify;
}

/* Margen superior para los subtítulos */
.vivamihome h3 {
    margin-top: 6%;
}


















/* -----------------------------Estilos para la sección de servicios----------------------------- */



.servicios-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
    margin-top: -3%;

    /* Agregamos separación visual */
    margin-bottom: -2%; /* Espaciado inferior */
    padding-bottom: 50px; /* Más espacio dentro */

    border-top: 3px solid #13508b; /* Línea sutil para dividir secciones */
    border-bottom: 3px solid #13508b;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05); /* Sombra leve para profundidad */
}

.servicios-section h2 {
    font-size: 2.5rem;
    margin-bottom: 5%;
    color: #2a2c2f;
}

.servicios-section p {
    font-size: 1rem;
    color: #2a2c2f;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: justify;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.servicio-item {
    background: #2a2c2f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
}


.servicio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.servicio-item h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.servicio-item p {
    font-size: 1rem;
    color: #ffffff;
    text-align: justify;
}










.contacto-btn {
    margin-top: 30px;
}

.contacto-btn .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #deba2f;
    color: #2a2c2f;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contacto-btn .btn:hover {
    background-color: #ffde59;
}




/*  responsive para servicios  */

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
  }

  .servicio-item {
    max-width: 100%; /* Ocupa todo el ancho disponible */
  }

  .servicio-item h3 {
    font-size: 1.3rem; /* Un poco más pequeño */
  }

  .servicio-item p {
    font-size: 0.95rem; /* Más legible en móvil */
  }

  .contacto-btn .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .servicios-section {
    padding: 40px 10px;
  }

  .servicios-section h2 {
    font-size: 2rem;
  }
}

/* -----------------------------Final Estilos para la sección de servicios----------------------------- */










/*----------------- Centro de Investigación RTI ------------------*/

.investigacion-section {
  background: linear-gradient(to right, #2077bd, #0a3151);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.investigacion-container {
  max-width: 1000px;
  margin: 0 auto;
}

.investigacion-section h1 {
  font-size: 36px;
  margin-top: -2%;
  margin-bottom: 10px;
  color: #ffffff;
  text-align: center;
}

.investigacion-section .subtitulo {
  font-size: 20px;
  margin-bottom: 30px;
  color: #d4e0ed;
  text-align: center;
}

.investigacion-section .descripcion {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #e7eef5;
  text-align: justify;
}

.btn-explorar {
  background-color: #deba2f;
  color: #ffffff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;


}

.btn-explorar:hover {
  background-color: #ffde59;
}




.clientes-galeria {
  padding: 40px 20px;
  text-align: center;
}



.grid-clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.grid-clientes img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.grid-clientes img:hover {
  transform: scale(1.05);
}












.newsletter-box {
  margin-top: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffffff;
}

.newsletter-box p {
  font-size: 15px;
  color: #cce3f1;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input,
.newsletter-form select,
.newsletter-form button {
  height: 42px; /* Fuerza misma altura */
  vertical-align: middle;
  box-sizing: border-box;
}

/* Inputs */
.newsletter-form input {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  width: 250px;
  max-width: 100%;
}

/* Select */
.newsletter-form select {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  width: 250px;
  max-width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #616c73;
}

.newsletter-form button {
  padding: 10px 20px;
  border: none;
  background-color: #deba2f;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.newsletter-form button:hover {
  background-color: #ffde59;
}

/*----------------- Fin Sección ------------------*/






























/* FOOTER */

#footer {
  background-color: #2077bd;
  color: #f1f1f1;
  padding: 50px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

#footer h2 {
  font-size: 25px;
  margin-bottom: 25px;
  color: #ffffff;
  margin-top: -1%;

}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.social-links a img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img:hover {
  transform: scale(1.15);
}

/* Texto final */
.footer-copy {
  font-size: 14px;
  color: #fff;
  margin-top: 20px;
  margin-bottom: -1%;
}

/* FOOTER END */

@media (max-width: 600px) {
  #footer {
    padding: 30px 15px;
  }

  #footer h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .social-links {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 5%;
  }

  .social-links a img {
    width: 40px;
    height: 40px;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10%;
  }
}
