:root {
  --nav-height: 70px;
  --max-width: 1600px;
  --container-padding: 1rem;
  --radius: 12px;

}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  /* ✅ más seguro */
  /* Elimina scroll-snap-type y height si no los necesitas */
}

body {
  margin: 0;
  background-color: #080819f7;
  color: #f0f0f0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

/* icono cargando */


#preloader {
  position: fixed;
  inset: 0;
  background-color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.logo-loader {
  width: 160px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 20px #00e5ff);
}







.rs-icons {
  z-index: 999;
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  margin-left: 90px;
}

.rs-icons a {
  color: white;
  font-size: 2em;
  margin: 10px 0;

}


header {
  z-index: 999;
  position: fixed;
  width: 100%;
}

header .nav-bar {
  position: relative;
  background: #ffffff85;
  backdrop-filter: blur(20px);
  height: 3.5em;
  border-bottom: 1px solid rgba(21, 0, 255, 0.79);
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px 0 150px;
  transition: 0.5s ease;
}

.nav-bar .logo {
  display: inline-block;
  text-decoration: none;
}

.nav-bar .logo img {
  display: block;
  width: 140px;
  /* ajustar según necesites */
  height: auto;
  object-fit: contain;
}


.navigation .nav-items a {
  color: #000000;
  font-size: 1.1em;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.navigation .nav-items a:not(:last-child) {
  margin-right: 10px;
}

.navigation .nav-items a i {
  display: none;
}



.home {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent),
    url(../img/fondonuevo.jpg) no-repeat center center;

  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home:before {
  z-index: 888;
  content: '';
  position: absolute;
  width: 100%;
  height: 50px;
  bottom: 0;
  left: 0;
}

.home h1 {

  color: #f0f0f0;
  font-size: 6em;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

@media screen and (max-width: 1400px) {
  .home h1 {
    margin-left: 1em;
    font-size: 2em;
    text-align: center;
    padding: 0 10px;
  }

  .home {
    position: relative;
    min-height: 100vh;
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
      url(../img/fondonuevo.jpg) no-repeat center center;

    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;

  }

  .rs-icons {
    position: absolute;
    top: 50%;
    margin-left: 20px;

  }

}

.content h1 {
  color: #f0f0f0;
  font-size: 3.5em;
  font-weight: 600;
}

.content p {
  color: #f0f0f0;
  font-size: 1em;
  margin: 30px 0;
}

/*======= Scroll bar =======*/
::-webkit-scrollbar {
  background: #f0f0f0;
  width: 11px;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb {
  background: #282f4e;
  width: 100%;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
  background: #454f6d;
}

/*======= Scroll indicator bar =======*/
.scroll-indicator-container {
  width: 100%;
  height: 5px;
}

.scroll-indicator-bar {
  background: #199fff;
  width: 0%;
  height: 100%;
  box-shadow: 0 5px 25px #199fff,
    0 5px 50px #199fff;
}

.nav-close-btn,
.nav-menu-btn {
  display: none;
}

/*======= Media queries (max-width: 1100px) =======*/
@media screen and (max-width: 1100px) {
  header .nav-bar {
    padding: 0 50px;
  }

  section {
    padding: 30px 50px;
    font-size: 0.9em;
  }
}

/*======= Media queries (max-width: 850px) =======*/
@media screen and (max-width: 850px) {
  header .nav-bar {
    padding: 0 20px;
  }

  section {
    padding: 30px 20px;
    font-size: 0.8em;
  }

  /*======= Navigation menu =======*/
  .nav-menu-btn {
    display: block;
    color: #f0f0f0;
    font-size: 1.5em;
    cursor: pointer;
  }

  .navigation {
    z-index: 99999;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
  }

  .navigation.active {
    visibility: visible;
    opacity: 1;
  }

  .navigation .nav-items {
    position: relative;
    background: #f0f0f0;
    width: 400px;
    max-width: 400px;
    display: grid;
    place-content: center;
    margin: 20px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
    transform: translateY(-200px);
    transition: 0.3s ease;
  }

  .navigation.active .nav-items {
    transform: translateY(0);
  }

  .navigation .nav-items a {
    color: #222;
    font-size: 1em;
    margin: 15px 50px;
  }

  .navigation .nav-items a i {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 5px;
  }

  .nav-close-btn {
    display: block;
    color: #222;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.3em;
    margin: 10px;
    cursor: pointer;
  }
}





.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;

  background: #252121;
  z-index: 1000;
}


/* Contenedor general */


/* Contenedor del slider */



section {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.intro,
.outro {
  padding: 2rem;
  align-content: center;
  background-color: #66B2FF;
}

.intro h1,
.outro h1 {
  width: 50%;
  margin: 0 auto;
  text-align: center;
}


.index {
  position: relative;
  width: 1, 25rem;
  display: flex;
  justify-content: flex-end;
  will-change: opacity;
}

.marker {
  position: relative;
  width: 0.75rem;
  height: 1px;
  will-change: transform;
  transform: scaleX(0);
}


.line {
  position: relative;
  display: block;
  will-change: transform;

}

@media (max-width: 1000px) {
  .h1 {
    font-size: 2rem;
    letter-spacing: 0;
  }

  .intro h1,
  .outro h1 {
    width: 100%;
  }

  .slider-tittle {
    top: 5rem;
    left: 0;

    transform: none;
    width: 100%;
    padding: 2rem;
  }

  .slider-indicator {
    top: unset;
    transform: none;
    bottom: 2rem;
  }

}










/* Contenedores flotantes para logos */

.whatsapp-float {
  position: fixed;
  z-index: 1000;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

/* Logo empresa esquina superior izquierda */

/* Icono WhatsApp esquina inferior derecha */
.whatsapp-float {
  bottom: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
}



.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Efecto hover / active */
.whatsapp-float:hover {
  transform: scale(1.06);
}

/* Aumentar área táctil en móviles para WhatsApp (accesibilidad) */
@media (hover: none) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 600px) {


  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 12px;
    right: 12px;
  }
}

h1 {
  color: #003366;
  font-family: 'Open Sans', sans-serif;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  color: #003366;
}

h3,
h4 {
  font-family: 'Open Sans', sans-serif;
  color: #444444;
}

p {
  color: #555555;
}

button {
  color: #0055A5;
  font-family: 'Roboto', sans-serif;
}

button:hover {
  color: #A7C8F2;
}

a,
.btn-secondary {
  color: #A7C8F2;
  font-family: 'Roboto', sans-serif;
}

a:hover,
.btn-secondary:hover {
  color: #0066CC;
}

.btn-primary {
  background-color: #AA1927;
  color: #f0f0f0;
}

.btn {
  background-color: #AA1927;
  color: #f0f0f0;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0055A5;
}


/* Sobre Nosotros */


#sobre {
  height: 100%;
  padding: 4rem 0;
  background-color: #f5f5f5;


}

.sobre-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
}

.sobre-texto {
  flex: 1 1 200px
}

.sobre-texto h2 {
  font-size: 1.8rem;
  margin-bottom: .75rem
}

.sobre-texto h3 {
  margin-top: 1rem;
  margin-bottom: .6rem
}

.sobre-texto p {
  color: #000000
}

.benefits {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  padding-left: 0
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #444444;
}

.benefits img {
  width: 18px;
  height: 18px;
  margin-top: .2rem
}

.sobre-imagen {
  order: 2;
  flex: 1 1 400px;

  text-align: center;
}

.sobre-imagen img {
  max-width: 700px;
  height: 500px;
}

.sobre-logo {
  width: 500px;
  margin: 0px auto 0 auto;
  /* top: 20px, left/right: auto */

}

@media (max-width: 850px) {
  .sobre-container {
    flex-direction: column;
  }

  .sobre-imagen {
    flex: 1 1 100%;
    padding: 10px;
  }

  .sobre-imagen img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: auto;
  }

  .sobre-logo {
    width: 0;
    height: 0;
    margin-top: 0;
  }
}


/* Mision y Vision */

.mision-vision {
  position: relative;
  width: 100%;
  height: 100vh;

  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  text-align: center;
  color: white;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* capa semitransparente para legibilidad */
}

.contenido {
  position: relative;
  max-width: 800px;
  z-index: 2;
}

.contenido h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #fff;
}

.contenido p {
  font-size: 1.5em;
  line-height: 1.6;
  color: #f1f1f1;
}

/* Botones */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 30px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 3;
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Responsivo */
@media (max-width: 630px) {

  section.mision-vision {
    width: 100%;
  }

  .mision-vision {
    width: 100%;
    padding: 0px;
  }

  .slider {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .contenido h2 {
    font-size: 1.8em;
  }

  .contenido p {
    font-size: 1em;
  }
}




/* Servicios */


.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
}

.card {
  width: 450px;
  background-color: #f0f0f0d8;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 2);
  margin: 10px;
}

.card img {
  width: 100%;
  flex: 1 1 0;
  height: 500px;

}

.card-content {
  padding: 16px;

}

.card-content h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 15px;
  color: #666666;
  line-height: 1.3;
}



/* PROYECTOS */

.proyectos {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
  height: 100%;
}

.proyectos h2 {
  padding-top: 2rem;
  font-size: 2em;
  margin-bottom: 10px;
  text-align: center;
}

.card-container-p {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0px;
}

.card-p {
  max-width: 1600px;
  height: 80%;
  background-color: #f0f0f0;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-content-p {
  padding: 10px;
  text-align: center;
}

.card-content-p h3 {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.card-content-p p {
  font-size: 15px;
  color: #666666;
  line-height: 1.5;
}

.card-images-p {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  flex-wrap: wrap;
  /* 👈 evita que se envuelvan */
}

.card-images-p img {
  flex: 1 1 0;
  /* 👈 distribuye el espacio equitativamente */
  max-width: 100%;
  min-width: 0;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}



/* ubicacion */

.ubicacion {
  padding: 40px 20px;
  border-radius: 12px;
  width: 90%;
  height: 100%;
  margin: 30px auto;
  font-family: 'Segoe UI', sans-serif;
  color: #f0f0f0;
}

.container-ubicacion {
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: center;
  padding-bottom: 1%;



}

.ubicacion h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: center;
}

.ubicacion p {
  color: #f0f0f0;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.mapa {
  display: flex;
  flex-wrap: wrap;

  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.mapa iframe {
  flex: 1 1 600px;
  width: 100%;
  max-width: 800px;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


*/
/* PROVEEDORES */

/* IES
f93c10 red
0d1120 black

*/

.proveedores {
  justify-content: center;
  flex-wrap: wrap;
  background-color: #001F3F;
  margin-top: 50px;
  height: 100%;
}

.card-container-proveedores {

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;

}

/* IES */

.card-ies {
  width: 450px;
  background-color: #0d1120;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 2);
  margin: 10px;

}

.card-ies h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.card-ies p {
  font-size: 15px;
  color: #565862;
  line-height: 1.3;
}

.card-ies img {
  background-color: #f93c10;
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;

}

/* ControlClick */

.card-controlclick {
  width: 450px;
  background-color: #0d1120;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 2);
  margin: 10px;
}

.card-controlclick img {
  background-color: #f0f0f0;
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
}

.card-controlclick h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.card-controlclick p {
  font-size: 15px;
  color: #565862;
  line-height: 1.3;
}





.titulos2 {
  padding-top: 2rem;
  color: #f0f0f0;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

/* carousel logos empresas */



.container-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 5%;
  overflow: hidden;

}

.carousel {
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
}

.group {
  display: flex;
  gap: 2rem;
  animation: scroll 40s linear infinite;
  background-color: #fff;
  padding: 1rem 0;
}

.card-e img {
  width: clamp(100px, 10vw, 150px);
  height: clamp(100px, 10vw, 150px);
  object-fit: contain;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
}

.card-e img:hover {
  transform: scale(1.1);
}



@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}



/* Galeria */

.gallery-container {
  max-width: 2000px;
  margin: auto;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.photo {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.photo img {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}





/* fin galeria */

/* video */

.equipo-section {
  padding: 60px 10%;
  background-color: #111;
  text-align: center;
  height: 100%;
  width: 100%;

}

.equipo-contenido {
  text-align: center;
  height: 100%;

}

.equipo-section .titulos2 {
  font-size: 2em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.equipo-texto p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
  max-width: 600px;
  margin: 0 auto 20px;
}

.btn-video {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-video:hover {
  background-color: #0070e0;
}

/* --- Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.modal-contenido {
  background: #111;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
}






@media (max-width: 900px) {
  .modal-contenido {
    flex-direction: column;
    text-align: center;
  }

  .equipo-texto p {
    text-align: center;
  }
}


/* fin video */

/* formulario de conctacto */
.contact-section {
  background: #111;
  color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background: #222;
  color: #f0f0f0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 15px;
  background: #00bcd4;
  color: #f0f0f0;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0097a7;
}


/* fin formulario */


/* footer */

.footer {
  background: linear-gradient(to right, #111, #222);
  color: #f0f0f0;
  padding: 10px 10px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.footer img {
  height: 150px;
  width: auto;
}

.footer p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #f0f0f0;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #00bcd4;
}