* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; }
a { text-decoration: none; }

/* BARRA SUPERIOR Y HEADER */

.top-bar {
  background: #08012b; /* azul profesional */
  height: 30px;        /* altura de la cinta */
}
  
.info-bar.right-only {
  justify-content: flex-end;
  padding: 12px 40px;
  background: white;
}

.info-bar {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
  
.info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px; /* ⬅️ AUMENTA aquí el tamaño de texto */
  font-weight: 500;
  color: #000;
}

.main-header {
  background: #08012b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;  /* Solo a los lados */
  height: 80px;     /* La altura se ajusta al contenido */
  border-top: 5px solid #08012b;   /* línea azul arriba delgada */
  border-bottom: 5px solid #08012b;/* línea azul abajo delgada */
}
  
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;  /* Más alto, ajusta a tu gusto: 100px, 110px... */
  width: auto;
  display: block;
}
  
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* separa más los enlaces */
}
  
nav a {
  color: white;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 20px;  /* ⬅️ aquí defines el tamaño del texto */
  font-weight: 500;
}
  
nav .active a {
  background: #ffce54;
  color: black;
  font-weight: bold;
  border-radius: 4px;
  padding: 5px 10px;
}
  
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/pagina_ppal.jpg') no-repeat center center;
  background-size: cover; /* esto hace que cubra todo el ancho y alto sin dejar espacios */
  color: white;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* antes estaba center */
  padding-top: 100px; 
  height: 100vh; /* altura igual a la pantalla completa */
  align-items: center;
}

.hero h1 {
  font-size: 50px;
  color: #ffce54;
  margin-bottom: 15px;
}
.hero p {
  max-width: 700px;
  margin: auto;
  margin-bottom: 20px;
}
.hero a {
  display: inline-block;
  padding: 10px 20px;
  background: #ffce54;
  color: black;
  margin: 5px;
  font-weight: bold;
}


/*  Hero nosotros */
.hero-nosotros{
  background:url('assets/images/Encabezadoimg.jpg') center/cover no-repeat;
  height:550px;position:relative;color:#ffce54;
}

/*  Hero contacto */
.hero-contacto{
  background:url('assets/images/Encabezadoimg.jpg') center/cover no-repeat;
  height:550px;position:relative;color:#ffce54;
}

/*  Hero servicios */
.hero-servicios{
  background:url('assets/images/Encabezadoimg.jpg') center/cover no-repeat;
  height:550px;position:relative;color:#ffce54;
}

.hero-overlay{
  position:absolute;inset:0;background:rgba(0,0,0,.4);
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding-left:60px;
}
.hero-overlay h1{font-size:56px;font-weight:800;margin:0;}
.hero-overlay p{font-size:20px;margin-top:10px;}

.mapa iframe{
  width:100%;
  min-height:320px;   /* o 400 px si lo quieres más alto */
  border:0;
}

.projects-section {
  padding: 40px 20px;
  text-align: center;
}

.projects-section h2 {
  margin-bottom: 20px;
}

/* ----- PROYECTOS HOME: 3 columnas ----- */
.projects-grid.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 10px;
}

/* ----- PROYECTOS PÁG. PROYECTOS: 2 columnas ----- */
.projects-grid.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 10px;
}

.project {
  padding: 10px;
}

.project img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.project.dark {
  background: #08012b;
  color: white;
}

.project h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #ffce54;
}

.project.white {
  background: #fff;
  color: #000;
}

.project.white h3 {
  color: #ffce54;
}

.allies-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #f4f4f4; /* fondo claro opcional */
}

.allies-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

/* Logos de aliados siempre a color, sin efectos */
.allies-logos img {
  width: 160px;
  height: auto;
  /* filter: grayscale(100%);  Elimina el filtro */
  transition: none;           /* o déjalo para otras propiedades */
}

.allies-logos img:hover {
  /* filter: none;             No hace falta */
  transform: none;            /* elimina el zoom */
}


footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  font-size: 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.footer-columns h4 {
  position: relative;
  display: inline-block;
  color: #ffce54;
  font-weight: bold;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-columns h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffce54;
  transition: width 0.3s ease;
}

/* Forzar título amarillo en el footer */
.footer-columns h4 a {
  color: #ffce54;               /* amarillo corporativo */
  text-decoration: none;        /* sin subrayado */
  transition: color 0.2s ease;
}

.footer-columns h4:hover {
  color: #ffe680;
}

.footer-columns h4:hover::after {
  width: 100%;
}

.footer-columns p, .footer-columns li {
  margin-bottom: 5px;
  font-size: 14px;  /* texto más pequeño */
}

.footer-columns img {
  border-radius: 50%;
  width: 70px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

/* Estilo base para todos los íconos */
.social-icons a {
  width: 45px;
  height: 45px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #ffce54;
  color: #000;
  border-color: #ffce54;
}

/* Facebook al pasar el mouse */
.social-icons a.facebook:hover {
  background-color: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

/* LinkedIn al pasar el mouse */
.social-icons a.linkedin:hover {
  background-color: #0077b5;
  color: #fff;
  border-color: #0077b5;
}

.section-title {
  font-size: 40px;         /* más grande */
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-bottom: 5px;
}

/* Títulos de sección “Nosotros” en amarillo */
#quienes h2,
#acerca  h2,
#mision  h2,
#vision h2 {
  color: #ffce54;
}

.section-underline {
  width: 100px;
  height: 4px;
  background-color: #ffce54;  /* naranja dorado */
  margin: 0 auto 20px auto;
  border-radius: 2px;
}

/* ----- PROYECTOS del HOME (3 columnas, alto 280 px) ----- */
.home-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.home-grid .project img{
  height:280px;
}

/* Tablet y celular */
@media(max-width:991px){
  .home-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:575px){
  .home-grid{ grid-template-columns:1fr; }
}

/* ----- PROYECTOS de la página proyectos.html (2 columnas, alto 350 px) ----- */
.proyectos-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:25px;
}
.proyectos-grid .project img{
  height:350px;
}

/* Tablet y celular */
@media(max-width:991px){
  .proyectos-grid{ grid-template-columns:repeat(1,1fr); }
}
@media(max-width:575px){
  .proyectos-grid{ grid-template-columns:1fr; }
}

/* celular: 1 columna */
@media (max-width: 768px) {
/* inicio: proyectos en home-grid */
.projects-grid.home-grid {
  grid-template-columns: 1fr !important;
}

/* página proyectos */
.projects-grid.proyectos-grid {
  grid-template-columns: 1fr !important;
}

/* si hay alguna otra grid con imágenes */
.allies-logos,
.galeria-doble {
  flex-direction: column !important;
  align-items: center;
}

/* para que las imágenes llenen el contenedor */
.allies-logos img,
.galeria-doble img {
  width: 80% !important;
  max-width: 300px;
  margin: 0 auto 20px;
  }
}

@media (max-width:768px) {
.mapa iframe {
  width: 100% !important;
  min-height: 200px; /* ajusta si quieres más alto */
  }
}


/* --Grid de 2 columnas para escritorio-- */
/* Bloques de la sección Nosotros con fondo azul y texto en blanco */
.nosotros-grid > section {
  background: #08012b;      /* azul oscuro corporativo */
  padding: 25px 20px;
  border-radius: 6px;
  color: #fff;              /* texto en blanco */
  margin-bottom: 20px;
}

/* Títulos en amarillo */
.nosotros-grid > section .section-title {
  color: #ffce54;           /* amarillo corporativo */
  margin-bottom: 10px;
}

/* Línea naranja bajo el título (si usas .section-underline) */
.nosotros-grid > section .section-underline {
  background-color: #ffce54;
}

/* Asegúrate de que el párrafo también sea blanco */
.nosotros-grid > section p {
  color: #fff;
}

/* Responsive */
/* Tablet: 1 columna pero más aire */
@media (max-width:991px){
  .nosotros-grid{gap:30px;}
  .nosotros-grid > section{flex-basis:100%;}
}

/* Celular: 100 % (ya cubierto) */
@media (max-width:575px){
  .nosotros-grid{gap:20px;}
}

.galeria-doble{
  display:flex;gap:20px;
  flex-wrap:wrap;
}
.galeria-doble img{
  flex:1 1 48%;             /* dos fotos por fila en col. propia */
  max-width:100%;
  border-radius:6px;
}

/* Estilos específicos para la sección “Nosotros” */
/* Contenedor general */
.nosotros-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Grid 2 columnas en escritorio */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px 40px;
}

/*  Igualar altura de tarjetas y justificar texto */
.nosotros-grid .item {
  display: flex;
  flex-direction: column;
}

   /* Títulos centrados con línea */
.nosotros-grid .item h2 {
  display: block;
  text-align: center;    /* CENTRAR texto */
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.nosotros-grid .item h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;             /* arrancar en el centro */
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #ffce54;
  border-radius: 2px;
}

    /* Tarjeta con fondo azul */

.nosotros-grid .item p {
  flex: 1;                   /* fuerza que todos los ps ocupen el mismo espacio */
  background: #08012b;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.5;
  margin: 0;
  text-align: justify;       /* alinea texto a ambos lados */
}

/* Responsive: 1 columna y secuencia natural */
@media (max-width:768px) {
.nosotros-grid {
  grid-template-columns: 1fr;
  }
}

/* Efecto hover para los enlaces del nav */
nav ul li a {
  transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease, background-color transparent;
}

nav ul li a:hover {
  background-color: #ffce54;  /* amarillo corporativo */
  color: #000;                /* texto negro */
  border-radius: 4px;     /* esquinas redondeadas */
  padding: 5px 8px;         
}

/* Siempre mostrar scroll vertical */
html {
  overflow-y: scroll;
}

/* Cabecera full-width y sin wrap */
.top-bar {
  background: #08012b; /* azul profesional */
  height: 40px;        /* antes era 30px */
  position: relative;  /* necesario para que .idiomas-integrados funcione */
}


.info-bar,
.main-header {
  width: 100vw;
  display: flex;
  align-items: center;
}

/* Evitar que el nav se desborde en varias líneas */
.main-header {
  flex-wrap: nowrap;
}

.main-header nav {
  white-space: nowrap;
}

/* Hover zoom en imágenes de aliados y marcas */
.allies-logos img {
  transition: transform 0.3s ease;
}

.allies-logos img:hover {
  transform: scale(1.2);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  min-width: 100%;
  object-fit: cover;
  height: 300px;
  border-radius: 6px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.fab.fa-whatsapp {
  margin-right: 6px;
}

/* Correo en azul predeterminado */
.correo-link {
  color: rgb(0, 140, 255);
  font-size: 14px;
  text-decoration: none;
}

.correo-link:hover {
  text-decoration: underline;
}

/* Teléfonos claros */
.telefono-link {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}

.telefono-link:hover {
  color: #ffce54;
}

/* Íconos alineados y del mismo tamaño */
.footer-columns i {
  font-size: 14px;
  margin-right: 6px;
  vertical-align: middle;
  color: #ffce54;
}

.servicios-lista {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.servicios-lista li {
  margin-bottom: 10px;
  font-size: 14px;
}

.servicios-lista li i {
  color: #ffce54;
  margin-right: 8px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  justify-content: center;
}

.info-box {
  flex: 1 1 360px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.info-box form {
  margin-top: 20px;
}

.info-box input,
.info-box textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.info-box button {
  background: #ffce54;
  color: black;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.info-box button:hover {
  background: #ffe680;
}

.idiomas-integrados {
  position: absolute;
  right: 20px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 15px;
}

.idioma {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}

.idioma:hover {
  text-decoration: underline;
}

.bandera {
  width: 20px;
  height: auto;
  border-radius: 50%;
}

/* ═════════  Ajustes MOBILE  ═════════ */
/* ↳ se ejecutan hasta 480 px (teléfonos pequeños) */
@media (max-width:480px){

  /* Barra blanca con dirección */
  .info-item{font-size:14px;}

  /* Logo un poco más pequeño */
  .logo img{height:40px;}

  /* Menú */
  nav a{
    font-size:16px;              /* antes 20 px */
    padding:10px 12px;           /* reduce relleno horizontal */
  }

  /* Botones español/english */
  .idioma{font-size:12px;}

  /* Titular del héroe */
  .hero h1{
    font-size:clamp(26px, 7vw, 32px);
    line-height:1.25;
  }

  /* Texto del héroe (si lo usas)  */
  .hero p{font-size:14px;}

  /* Títulos genéricos de sección */
  .section-title{font-size:26px;}

  /* Tarjetas de proyectos y aliados */
  .project h3{font-size:16px;}
  .project p  {font-size:13px;}

  /* Footer */
  footer{font-size:18px;}        /* antes 24 px */
  .footer-columns p,
  .footer-columns li{font-size:12px;}
  .social-icons a{width:38px;height:38px;font-size:20px;}

  /* Formulario (placeholders heredarán el 14 px del input) */
  .info-box input,
  .info-box textarea{font-size:14px;}
  .info-box button{padding:10px 20px;font-size:14px;}
}


/* ═══  Mantener el menú dentro de la barra azul  ═══ */

/* ≤ 991 px  (tablets verticales y móviles grandes)  */
@media (max-width:991px){

  /* 1. deja que la cabecera adapte su altura */
  .main-header{
    height:auto;                 /* quita los 80 px fijos   */
    padding:0 20px;              /* menos relleno lateral   */
    flex-wrap:wrap;              /* permite que salte línea */
  }

  /* 2. el logo un poco más pequeño */
  .logo img{height:58px;}

  /* 3. menú: gaps y fuente más pequeños */
  nav ul{gap:10px;}
  nav a{font-size:16px;padding:10px 12px;}
  
  /* 4. se puede partir línea si hace falta */
  .main-header nav{white-space:normal;}
}

/* ≤ 480 px  (teléfonos compactos)  */
@media (max-width:480px){
  nav ul{gap:6px;}
  nav a{font-size:14px;padding:8px 10px;}

  /* si se forma una segunda fila, sigue azul porque
     .main-header ya no tiene altura fija               */
}

/* ═════ Héroe optimizado para móviles (≤ 575 px) ═════ */
@media (max-width:575px){          /* ⬅️ ajusta el corte si lo necesitas */
  
  .main-header{
    gap: 16px;
  }                       /* espacio horizontal entre logo y menú */

  /* sitúa la imagen otra vez en cover y céntrala arriba   */
  .hero{
    padding-top:40px;                 /* antes 80-120 px            */
    height:auto;                      /* deja que la sección crezca */
    background-size:cover;            /* sin bandas grises laterales*/
    background-position:top center;
    background-repeat:no-repeat;
  }

  /* título más pequeño y estrecho */
  .hero h1{
    font-size:8vw;                    /* ≈ 26-32 px en móviles      */
    line-height:1.25;
    max-width:90%;                    /* evita que desborde         */
  }

  nav ul{ gap:2px; }              /* separa un poco menos los enlaces */
  nav a{
    font-size:14px;               /* antes 16-20 px, ahora más pequeño */
    padding:2px 4px;             /* reduce el relleno horizontal      */
  }
}


/* ═══  Coloca la leyenda más arriba en pantallas ≥ 576 px  ═══ */
@media (min-width:576px){
  .hero{
    /* ya tienes justify-content:flex-start;
       solo reducimos el espacio antes del título            */
    padding-top: 12vh;        /* antes 100 px ≈ 13 vh en 768 px */
  }
  .hero h1{font-size:50px; line-height:1.25;}
}

/* Opcional: en pantallas muy anchas (≥ 1400 px) súbelo aún más */
@media (min-width:1400px){
  .hero{ padding-top: 12vh; }
}
