/* ====== Estilos Globales ====== */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;

 /* Imagen de fondo */
  background-image: url('images/Recurso 3.png'); /* ruta de tu imagen */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40%; /* tamaño de la marca de agua */
  background-attachment: fixed; /* hace que quede fija al hacer scroll */
  background-color: #fdfdfd; /* color de fondo base */
  opacity: 1; /* la imagen no afecta el texto */
}    

/* Para que la imagen actúe como marca de agua sin oscurecer el contenido */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Recurso 3.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40%; /* ajusta según lo necesites */
  opacity: 0.05; /* hace que sea muy tenue como marca de agua */
  z-index: -1; /* detrás de todo el contenido */
}
    
}

h1, h2 {
  margin: 0;
  font-weight: 600;
}

.cinta-superior {
  width: 100%;
  background-color: #333333; /* gris oscuro */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo izquierda, contacto derecha */
  flex-wrap: wrap; /* permite que el contenido se ajuste en móviles */
  padding: 8px 20px;
  position: fixed; /* fija en la parte superior */
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.cinta-superior .logo-cinta {
  height: 30px; /* tamaño del logo */
  flex-shrink: 0; /* evita que se encoja el logo */
  margin-right: 15px;
}

.cinta-superior .contacto-cinta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  flex: 1; /* ocupa todo el espacio restante */
  flex-wrap: wrap; /* permite que el texto se vaya a otra línea si es necesario */
  justify-content: flex-end; /* alinea el texto a la derecha */
  min-width: 200px; /* asegura un ancho mínimo */
}

.cinta-superior .contacto-cinta i {
  margin-right: 6px; /* espacio entre icono y texto */
}

/* Ajuste para que el header no quede tapado */
body {
  padding-top: 50px; /* ajusta según el alto total de la cinta */
}




/* ====== Encabezado ====== */
header {
  background: #FFFFFF; /* Gris corporativo s贸lido */
  color: white;
  padding: 40px 20px;
  text-align: center;
  
}

header img {
  max-height: 200px; /* mantiene tamaño real para el layout */
  margin-bottom: 10px;
  transform: scale(1.3); /* aumenta visualmente 30% */
  transform-origin: center top; /* escala desde arriba */
}

header h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.quienes-somos {
  background: white; /* Azul corporativo */
  margin: 50px auto;
  max-width: 950px;
  border-radius: 18px;
  padding: 45px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-align: center;
}

}

.quienes-somos h2 {
  font-size: 1.9rem;
  color: #777777; /* Gris corporativo */
  margin-bottom: 20px;
}

.quienes-somos p {
  font-size: 1rem;
  color: #555;
}

/* ====== Secci贸n Logos ====== */
section.servicios {
  padding: 60px 20px;
  text-align: center;
  background: #f4f7fb;
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* mantiene flexibilidad */
  gap: 25px;
  max-width: 1100px;
  margin: auto;
  justify-items: stretch;  /* hace que los logos se estiren al ancho del grid */
  align-items: stretch;    /* hace que los logos se estiren al alto de la fila */
}

.logo-card {
  width: 100%;
  aspect-ratio: 1/1; /* mantiene proporción cuadrada */
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #777777;
  display: flex;           /* agrega flex para centrar la imagen */
  align-items: center;
  justify-content: center;
}

.logo-card img {
  max-width: 90%;  /* se ajusta al contenedor sin deformarse */
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}


.servicios h2 {
  font-size: 1.9rem;
  margin-bottom: 35px;
  color: #777777;
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.logo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #777777;
}

.logo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-color: #555555;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 25px;
  transition: transform 0.3s ease;
}

.logo-card:hover img {
  transform: scale(1.1);
}

.logo-text {
  position: absolute;
  inset: 0;
  background: rgba(119,119,119,0.9); /* Gris semi-transparente */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 18px;
}

.logo-card:hover .logo-text {
  opacity: 1;
}

/* ====== Footer ====== */
footer {
  background: #777777; /* Gris corporativo */
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* ====== Responsividad ====== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  .quienes-somos {
    padding: 25px;
    margin: 30px 15px;
  }

  .quienes-somos h2 {
    font-size: 1.5rem;
  }

  .quienes-somos p {
    font-size: 0.95rem;
  }

  .servicios h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  header img {
    max-height: 70px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .logo-text {
    font-size: 0.85rem;
    padding: 10px;
  }
}
