
/* ---------- Reset y configuración básica ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #091326;
  color: #ffffff;
  line-height: 1.6;
}

/* ---------- Top bar ---------- */
.top-bar {
  background-color: #2e338c;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.5rem 2rem;
  font-style: italic;
}

.top-bar i {
  margin-right: 5px;
}

.top-bar a {
    color: white;
    text-decoration: none;
  }
  
  .top-bar a:hover {
    text-decoration: underline; /* Opcional: subrayado al pasar el mouse */
  }
  

/* ---------- Hero Section ---------- */
.hero {
  background: url('Imagenes/banner.jpg') no-repeat center center/cover;
  height: 643px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.logo {
    margin-top: 1rem;
    max-width: 700px;
  /* filter: drop-shadow(0 0 30px #dcfaff); */
}

.logo-pequeño {
  height: 60px;
  margin-right: 2rem;
}


.hero-text {
  margin-top: 2rem;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-shadow: 0 0 40px rgba(0, 0, 0, 1);
}

/* ---------- Navegación ---------- */
.main-nav {
  background-color: #2e338c;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.main-nav a:hover {
  background-color: #CCCCCC;
  color: #000000;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}


.main-nav li.active::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ff6a00;
  border-radius: 5px;
}



/* Header más compacto para páginas internas */
.hero-interno {
  height: 250px; /* menos alto que el index */
  padding: 1rem;
  background: url('../Imagenes/banner.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-interno .hero-logo {
  max-width: 400px;
  margin-top: 0.3rem;
}

.texto-interno {
  margin-top: 0rem;
  font-size: 1.7rem;
}

.seccion {
    padding: 100px 2rem;
    text-align: center;
    font-size: 1.8rem;
  }
  
  /* Colores personalizados */
  .servicios {
    background-color: #091326;
    color: white;
  }
  
  .nosotros {
    background-color: #F2994B;
    color: #091326;
  }
  
  .clientes {
    background-color: #2e338c;
    color: white;
  }
  
  .footer {
    background-color: #091326  ;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .servicios h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  .servicios-descripcion {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 3rem;
  }
  
  .servicio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .servicio-item i {
    font-size: 2.5rem;
    color: #F2994B;
    margin-bottom: 1rem;
  }
  
  .servicio-item h3 {
    font-size: 1.1rem;
    color: #ffffff;
  }
  
  .servicio-item p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-top: 0.5rem;
  }

  .servicio-item:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
  
.servicios .servicio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-wrap: wrap;
  width: 50%;
  margin: 3rem auto;
}

.servicios .servicio .icono {
  flex: 1;
  text-align: center;
}

.servicios .servicio .icono i {
  font-size: 4rem;
  color: #F2994B;
  margin-bottom: 1rem;
}

.servicios .servicio .icono h3 {
  font-size: 1.5rem;
  color: white;
}

.servicios .servicio .contenido {
  flex: 2;
  color: #CCCCCC;
  font-size: 1.1rem;
  line-height: 1.6;
}

.servicios .servicio.invertido {
  flex-direction: row-reverse;
}

.servicio.fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-wrap: wrap;
}

.servicios .servicio.fila.invertido {
  flex-direction: row-reverse;
}

.nosotros {
  background-color: #F2994B;
  color: #ffffff;
  padding: 100px 2rem;
}

.historia-layout .nosotros {
  background-color: #091326;
  color: #ffffff;
  padding: 100px 2rem;
}

.historia-layout .nosotros h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}

.historia-layout .nosotros-subtitulo {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: #ffffff;
}

.bloque-nosotros {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: justify;
}

.bloque-nosotros h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #F2994B;
}

.bloque-nosotros p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: #dddddd;
}

.frase {
  font-style: italic;
  font-size: 1.2rem;
  color: #ffffff;
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #F2994B;
}

  .boton-servicios {
    text-align: center;
  }
  
  .btn-ver-servicios {
    background-color: #CCCCCC;
    color: #000000;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .btn-ver-servicios:hover {
    background-color: #aaaaaa;
  }
  
  .nosotros h2 {
    font-size: 2.5rem;
    color: #091326;
    margin-bottom: 1rem;
  }
  
  .nosotros-subtitulo {
    font-size: 1.2rem;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
  }
  
  .boton-nosotros {
    text-align: center;
  }
  
  .btn-conoce-historia {
    background-color: #091326;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .btn-conoce-historia:hover {
    background-color: #2e338c;
  }
  
  .clientes h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
  }
  
  .clientes-subtitulo {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    text-align: center;
  }
  
  .clientes-imagen {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .clientes-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .clientes-final {
    font-size: 1.3rem;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
  }

  .contacto {
    background: url('Imagenes/pie.jpg') no-repeat center center/cover;
    color: #091326;
    text-align: center;
    position: relative;
    padding: 100px 2rem;
  }
  
  .contacto-overlay {
    background-color: #F2994B;
    padding: 60px 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .contacto h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .boton-contacto {
    text-align: center;
  }
  
  .btn-contacto {
    background-color: #cccccc;
    color: #000000;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .btn-contacto:hover {
    background-color: #aaaaaa;
  }
  
  .fondo-contacto {
    background: url('../Imagenes/pie.jpg') no-repeat center center/cover !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #091326;
  }
  
  .contacto {
  background-color: #091326;
  color: white;
  padding: 80px 2rem;
  text-align: center;
}

.contacto-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.datos-contacto {
  font-size: 1.1rem;
}

.datos-contacto p {
  margin: 0.5rem 0;
}

.datos-contacto i {
  color: #F2994B;
  margin-right: 8px;
}

.datos-contacto a {
  color: #F2994B;
  text-decoration: none;
}

.datos-contacto a:hover {
  text-decoration: underline;
}

.formulario-contacto {
  max-width: 600px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.formulario-contacto button {
  background-color: #F2994B;
  color: #091326;
  padding: 0.8rem;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-contacto button:hover {
  background-color: #d78237;
}

.newsletter {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
}

.btn-newsletter {
  margin-top: 1rem;
  display: inline-block;
  background-color: #F2994B;
  color: #091326;
  padding: 0.5rem 1rem; /* antes era 0.8rem 1.5rem */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem; /* más discreto */
}


.btn-newsletter:hover {
  background-color: #d78237;
}

.newsletter h3 {
  font-size: 1.3rem; /* antes probablemente era 1.8rem o 2rem */
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.newsletter p {
  font-size: 1rem; /* más discreto */
  color: #cccccc;
  line-height: 1.5;
}


.gracias {
  background-color: #091326;
  color: #ffffff;
  text-align: center;
  padding: 100px 2rem;
}

.gracias h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #F2994B;
}

.gracias p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #cccccc;
}

.btn-volver {
  display: inline-block;
  background-color: #F2994B;
  color: #091326;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #d78237;
}

.gracias p a {
  color: #F2994B;
  text-decoration: none;
  font-weight: bold;
}

.gracias p a:hover {
  color: #ffaa62;
  text-decoration: underline;
}

.novedades {
  background-color: #091326;
  color: #ffffff;
  padding: 80px 2rem;
  text-align: center;
}

.linkedin-carrusel {
  display: flex;
  flex-direction: row;
  /* flex-wrap: nowrap;
  scroll-snap-type: x mandatory;*/
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  /*max-width: 100%;
  box-sizing: border-box;*/
  justify-content: flex-start;
  scroll-behavior: smooth;
}

.linkedin-carrusel::-webkit-scrollbar {
  height: 8px;
}
.linkedin-carrusel::-webkit-scrollbar-thumb {
  background-color: #F2994B;
  border-radius: 10px;
}

.iframe-wrapper {
  flex: 0 0 auto; /* ancho fijo del 25% */
  width: 504px;
  height: 400px;  
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  min-width: 300px; /* para que no sea demasiado chico en pantallas grandes */
  max-width: 360px;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-ir-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #F2994B;
  color: #fff;
  border-radius: 50%;
  padding: 0.8rem;
  font-size: 1.2rem;
  text-align: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.btn-ir-arriba:hover {
  background-color: #f27b50;
  transform: translateY(-2px);
}

html {
  scroll-behavior: smooth;
}


@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Barra superior */
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Texto principal del hero */
  .hero-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
  }

  .hero-interno {
    padding: 1.5rem 1rem;
    height: auto; /* permitimos que el contenido determine la altura */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* arriba en vez de centrado vertical */
    gap: 0.8rem;
    text-align: center;
  }

  .hero-logo {
    max-width: 250px;
    height: auto;
  }

  .texto-interno {
    font-size: 1.1rem;
    margin-top: 0;
    color: white;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  }

  /* Logo más chico */
  .logo {
    max-width: 400px;
    height: auto;
  }

  /* Menú principal en columna */
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* h2 en Servicios */
  .seccion.servicios h2 {
  font-size: 1.5rem;
  }


  /* Grid de servicios: 2 por fila */
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .servicio-item {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  /* Contenedor de contacto en columna */
  .contacto-contenedor {
    flex-direction: column;
  }

  /* Carrusel: publicaciones más angostas */
  .iframe-wrapper {
    flex: 0 0 90%;
  }

  /* Botones más chicos */
  .btn-ver-servicios,
  .btn-conoce-historia,
  .btn-contacto,
  .btn-newsletter {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  /* h2 en Nosotros */
  .seccion.nosotros h2 {
  font-size: 1.5rem;
  }

  /* Textos complementarios más chicos */
  .nosotros-subtitulo,
  .servicios-descripcion,
  .clientes-subtitulo,
  .contacto p,
  .novedades .newsletter p,
  .nosotros .nosotros-subtitulo,
  .nosotros .bloque-nosotros p {
    font-size: 0.8rem;
  }

  .nosotros .bloque-nosotros h3 {
    font-size: 1rem;
  }

  .nosotros .bloque-nosotros .frase {
    font-size: 1rem;
  }

  /* h2 en Clientes */
  .seccion.clientes h2 {
  font-size: 1.5rem;
  }

    /* h2 en Contacto */
  .seccion.contacto h2 {
  font-size: 1.5rem;
  }

    /* h2 en Novedades */
  .seccion.novedades h2 {
  font-size: 1.5rem;
  }

  .seccion.novedades .newsletter h3,
  .seccion.novedades p {
    font-size: 1rem;
  }

  .servicio.fila,
  .servicio.fila.invertido {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    width: 90%;
    margin: 1rem auto;
    padding: 1rem;
    gap: 1rem;
  }

  .servicio .icono i {
    font-size: 2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .servicio .icono h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }

  .servicio .contenido {
    font-size: 0.7rem !important;
    line-height: 1.4;
  }


}
