body {
  background-color: #0c1230; /* o el color que uses */      /* un blanco con un toque azul grisáceo muy sutil */
  color: #222;               /* negro oscuro para texto */
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}


/* importante para que el navbar no tape ningun contenido */
html {
  scroll-padding-top: 80px; /* o el alto de tu navbar */
  scroll-behavior: smooth;
}

/* navbar de navegacion principal */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #0c1230; /* o el color que uses */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.6s ease-in-out, background-color 0.6s ease-in-out;
}

.navbar.oculto {
  top: -80px;
  background-color: transparent;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 50px; /* o el tamaño que prefieras */
  width: auto;
}


.nav-links {
  display: flex;
  gap: 4rem;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s; /* Añadimos transform a la transición */
}

.nav-links a:hover {
  color: rgb(255, 255, 255);
  transform: scale(1.1); /* Aumenta un 10% el tamaño */
  text-decoration: none;
}

/* Hamburger (hidden by default) */
.hamburger {
  display: none; /* visible solo en mobile */
  flex-direction: column;
  cursor: pointer;
  margin-left: auto; /* empuja el botón a la derecha */
  z-index: 1001; /* para que quede por encima del menú desplegable */
}

.hamburger.active span:nth-child(1) {
  transform: rotate(65deg) translate(7px, 15.5px);
  transform-origin: center;
}
.hamburger.active span:nth-child(2) {
  transform: rotate(90deg) translate(11.4px, -4px);
  width: 6px; /* o el valor que quieras */
  /* o para reducir altura */
  transform-origin: center;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-65deg) translate(8.2px, -4.2px);
  transform-origin: center;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: rgb(255, 255, 255);
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #121117;
    border-radius: 10px;
    padding: 1rem;
    width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    gap: 20px; /* sin espacio entre ítems */
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
  }
}

header {
  margin-top: 74px; /* ajusta este valor según lo que necesites */
}

.header-contenido {
  padding: 20px 20px;
  background-color: #0c1230; /* o el color que uses */
  text-align: center;
  color: #f0f0f0;
}

/* botones de la pantalla principal para contactarnos y ver mas */

.button-container {
  display: flex;
  gap: 20px; /* espacio entre los botones */
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: nowrap; /* evita que los botones se apilen */
}

.contact-us, .learn-more {
  font-size: 16px;
  cursor: pointer;
  padding: 12px 24px;
  min-width: 150px; /* para que no se hagan muy pequeños */
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.contact-us {
  border: 1px solid #555;
  background-color: transparent;
  color: #eaeaea;
}

.contact-us:hover {
  border-color: #00ffff;
  color: #00ffff;
}

.learn-more {
  background: none;
  border: 1px solid transparent; /* para que tenga tamaño igual al otro */
  color: #aaa;
}

.learn-more:hover {
  color: #fff;
  border-color: #00ffff; /* agrega borde al hacer hover para que parezca más interactivo */
}

.arrow {
  font-size: 16px;
  margin-left: 5px; /* un poco de separación del texto */
}



/* Primera seccion de la pagina imagen + texto + botones */

.header-texto h1 {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #e6e6e6;
}

.header-texto p {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: #cccccc;
}

.header-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 350px;
  object-fit: cover;
  border-radius: 0 0 8px 8px;
  margin-bottom: -1rem;
}

@media (max-width: 768px) {
  .header-image {
    max-width: 90%;
    max-height: 150px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Secciones de la pagina como sobre nosotros o contacto */

.bloque {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease;
}

.bloque.visible {
  opacity: 1;
  transform: translateY(0);
}


section.bloque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5rem;
  max-width: 1000px;
  margin: auto;
  background: #000000;       /* blanco puro para bloques */
  border-radius: 8px;
  box-shadow: 0 18px 28px rgba(255, 255, 255, 0.15); /* sombra azul muy sutil */
  margin-bottom: 3rem;
  margin-top: 100px; /* o más si lo quieres aún más separado */
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

section.bloque img.bloque-img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 8px;
  margin-right: 2em;
  border: 2px solid #0d3b66; /* borde azul oscuro para imagen */
}

section#quienes img.bloque-img {
  margin-right: 2em; /* o el valor anterior */
}

section.bloque div {
  flex: 2 1 500px;
  color: #222;
}

section.bloque h2{
  color: #ffffff;
  font-size: 3rem;
  margin-top: auto;
}

section.bloque p{
  color: #ffffff;
  font-size: 1.2rem;
}

section.bloque strong,
section.bloque li {
  color: #ffffff;
  font-size: 1.45rem;
}


section#servicios h2 {
  color: #ffffff !important;
  font-size: 3rem !important;
}

section#servicios li {
  color: #ffffff !important; /* o el color que prefieras para los ítems */
  font-size: 1.25rem !important;
}

section#servicios strong{
  color: #144d78 !important;
  font-size: 1.31rem !important;
}

section#quienes strong {
  color: #144d78;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  section.bloque {
    flex-direction: column;
    padding: 2rem 1rem; /* menos padding para móviles */
    max-width: 100%;    /* que tome todo el ancho */
    margin-top: 60px;   /* menos espacio entre secciones */
  }
  
  section.bloque img.bloque-img {
    margin: 0 0 1rem 0;
    width: 100%;
    max-width: 100%;    /* imagen ocupa todo el ancho */
    border-radius: 8px;
    border: 2px solid #0d3b66;
  }

  section.bloque div {
    flex: unset;
    width: 100%;
    color: #222;
  }

  .button-container {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
  }

  .button-container > button {
    width: 100%;       /* botones ocupan todo el ancho en móvil */
    font-size: 1.2rem; /* más fácil de leer */
    padding: 14px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  p, ul, li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .header-texto h1 {
    font-size: 28px;
  }

  .header-texto p {
    font-size: 16px;
  }
}

/* seccion de contacto */

form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #0d3b66;            /* etiquetas en azul oscuro */
}

form input,
form textarea {
  margin-top: 0.3rem;
  padding: 0.5rem;
  border: 1px solid #a9bcd0; /* borde azul grisáceo */
  border-radius: 4px;
  font-size: 1rem;
  color: #222;
  background-color: #f5f8fa; /* fondo muy claro */
}

form button {
  margin-top: 1rem;
  padding: 0.7rem;
  background-color: #0d3b66; /* botón azul oscuro */
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #144d78; /* azul un poco más claro al hover */
}
#contacto i {
  color: #0d3b66;
  margin-right: 0.5rem;
}
#contacto a {
  color: #0d3b66;
}
#contacto a:hover {
  text-decoration: underline;
  color: #144d78;
}
header .logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* footer de la pagina */

footer {
  text-align: center;
  padding: 1.5rem;
  background: #d9e2ec;       /* gris azulado claro */
  color: #0d3b66;            /* azul oscuro */
  font-size: 0.9rem;
  border-top: 1px solid #a9bcd0; /* azul grisáceo */
}
a {
  color: #0d3b66;            /* azul oscuro */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #144d78;            /* azul un poco más claro al pasar el mouse */
}
