.video-background {
  position: relative;
  width: 100%;
  height: 100vh; /* altura por defecto en desktop */
  overflow: hidden;
}

/* Video centrado y cubriendo todo */
.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* ✅ Ajustes móviles (tablets y celulares) */
@media (max-width: 768px) {
  .video-background {
    height: 50vh; /* reduce altura para móviles */
  }

  .video-background video {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
  }
}

/* ✅ Ajustes celulares muy pequeños */
@media (max-width: 480px) {
  .video-background {
    height: 40vh; /* más pequeño aún en pantallas chicas */
  }

  .video-background video {
    height: 100%;
    width: auto;
  }
}


  .texto-background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; 
  }
  .texto-background img{
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  max-width: 100%;   
  box-sizing: border-box;
}

.overlay-text h1 {
  font-size: 3.2rem;   
  margin-bottom: 15px;
}

.overlay-text p {
  font-size: 1.5rem;   
  font-weight: 300;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .overlay-text h1 {
    font-size: 1.8rem;   
  }
  .overlay-text p {
    font-size: 0.9rem;  
  }
}
/*
  .video-background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; 
  }

  .video-background img,
  .video-background video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-background video {
    opacity: 0.4;
  }

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  max-width: 100%;   
  box-sizing: border-box;
}

.overlay-text h1 {
  font-size: 3.2rem;   
  margin-bottom: 15px;
}

.overlay-text p {
  font-size: 1.5rem;   
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .overlay-text h1 {
    font-size: 1.8rem;   
  }
  .overlay-text p {
    font-size: 0.9rem;  
  }
}
  */


    .hero-section {
      background: url("img/Fondo banner Nosotros.jpg") no-repeat center center;
      background-size: cover;
      height: 80vh; /* pantalla completa */
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      color: white;
    }

    .logo {
      max-width: 400px; /* ajusta tamaño del logo */
      margin-bottom: 20px;
    }

    .hero-text {
      font-size: 3.8rem;
      font-weight: 500;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* efecto brillo */
    }
/* ===== Estilos generales ===== */
/* ===== Estilos generales ===== */
.titulo-nuestro-servicio {
  font-size: 3.5rem;
  color: #0368AA;
  margin-bottom: 2rem;
}

.servicios-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* 🔽 menos espacio entre tarjetas */
}

.servicio-item {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.servicio-card {
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  position: relative;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.servicio-img {
  width: 200px;
  height: 200px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 1rem auto;
}

.servicio-title {
  font-size: 1.5rem;
  font-weight: 200;
  color: #0368AA;
  margin-bottom: 10px;
}

.servicio-text {
  font-size: 0.90rem;
  color: #555;
  flex-grow: 1;
}

.servicio-btn {
  text-align: right;
  margin-top: 1rem;
}

.servicio-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #0368AA;
  color: #0368AA;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.servicio-btn a:hover {
  background-color: #0368AA;
  color: #fff;
}

/* ===== Diseño escritorio personalizado ===== */
@media (min-width: 769px) {
  .servicio-card {
    padding: 0; /* 🔹 elimina padding interno */
    text-align: left;
    border-radius: 20px;
    overflow: hidden;
  }

  .servicio-img {
    width: 100%;
    height: 200px;
    border-radius: 0;
    margin: 0;
    object-fit: cover;
    display: block;
  }

  .servicio-content {
    padding: 1.2rem;
  }

  .servicio-title,
  .servicio-text {
    text-align: left;
  }

  .servicio-btn {
    padding: 0 1.2rem 1.2rem;
    text-align: right;
  }
}

/* ===== Diseño móvil ===== */
@media (max-width: 768px) {
  .titulo-nuestro-servicio {
    font-size: 2.5rem;
    text-align: left;
  }

  .servicios-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .servicio-item {
    max-width: 100%;
  }

  .servicio-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    border: none;
    border-top: 1px solid #ccc;
    border-radius: 0;
    padding: 1rem 0;
  }

  .servicio-img {
    width: 100px;
    height: 100px;
    margin-right: 1rem;
    border-radius: 10px;
  }

  .servicio-content {
    flex: 1;
  }

  .servicio-btn {
    margin-left: auto;
    text-align: right;
    align-self: center;
  }

  .servicio-btn a {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}








        /*impacto*/

        body {
      font-family: 'Segoe UI', sans-serif;
    }

    .bg-impacto {
      background-color: #2d8bba; /* Azul de fondo */
      color: #fff; 
      display: flex;
      flex-direction: column;
      align-items: center; 
      padding: 20px;
      min-height: auto; /* que crezca con el contenido */
    }

    .impacto-titulo {
      font-size: 3.5rem; 
      color: #ffffff;
    }

    .card-impacto {
      border: 1px solid #ffffff;
      border-radius: 15px;
      padding: 2rem;
      height: auto;
      min-height: 360px;
    }
    .card-impacto-s-border { 
      padding: 2rem;
      height: auto;
    }

    .icono-impacto {
      width: 38px;
      margin-right: 0.75rem;
    }

    .impacto-icono-texto {
      display: flex;
      align-items: center;
      margin-bottom: 1.5rem;
      font-size: 1.5rem;
    }

    .ods-icon {
      width: 38px;
      margin-left: 0.5rem;
    }

    .numero-impacto {
      font-size: 4.5rem;
      font-weight: bold;
    }

    .titulo-impacto { 
      margin-top: 1.5rem; 
      font-size:2.2rem; 

    }
    .sub-titulo-impacto { 
      margin-top: 0.5rem;
      margin-bottom: 0.25rem;
      font-size:1.4rem;  
    }
    .sub-titulo-impacto-small { 
      margin-top: 0.5rem;
      margin-bottom: 0.25rem;
      font-size:1.1rem;  
    }

    @media (max-width: 767.98px) {
      .impacto-icono-texto {
        justify-content: center;
        text-align: center;
        flex-direction: column;
      }

      .icono-impacto {
        margin-bottom: 0.5rem;
      }
    }


/* Fila número + icono */
.numero-impacto-row{
  display:flex;
  align-items:center;
  justify-content:center;   /* centra en la tarjeta */
  gap:12px;                 /* separación número-icono */
  margin-bottom:.5rem;
}

.numero-impacto{
  font-size:4.5rem;
  font-weight:bold;
  line-height:1;
}

/* Badge circular para el icono */
.impacto-badge{
  width:90px;
  height:90px; 
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Tamaño del ícono (SVG o IMG) */
.impacto-badge svg,
.impacto-badge img{
  width:90px;
  height:90px; 
}

/* Responsive: hace el badge un poco más chico en móviles */
@media (max-width:767.98px){
  .impacto-badge{ width:48px; height:48px; }
  .impacto-badge svg, .impacto-badge img{ width:24px; height:24px; }
}



.proyectos-bg {
  background: #000 url("img/Proyectos destacados Sin texto.png") no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
}
 
.proyectos-text {
  font-size: clamp(2.0rem, 3vw, 3rem); /* se adapta a la pantalla */
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
}



/* ======= Títulos ======= */
.titulo-principal{
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin: 0;
}
.subtitulo{
  font-size: clamp(1rem, 2vw, 1.25rem);
  color:#d0d0d0;
  margin-bottom: 3rem;
}

/* ======= Tarjetas flip ======= */
.flip-card{
  background: transparent;
  width: 100%;
  height: 260px;                         /* iguala la altura */
  perspective: 1000px;
  margin-top: 60px;
}

.flip-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform .6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner{
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  font-size: 1.8rem;
}


/* Frente */
.flip-card-front{ background-color: rgba(0,0,0,.35); color:#fff; }

/* Reverso */
.flip-card-back{
  background-color: #fff;
  color:#000;
  transform: rotateY(180deg);
}


.card-back-title{ 
  color:#0368aa; 
  font-size: 1.8rem;
}
.card-back-desc{ 
  color:#000000; 
  font-size: 1.2rem;
}


/* ======= Íconos con hover (A/B) ======= */
.icono-container{
  position: relative;
  width: 140px;
  height: 140px;
}

.icono-container img{
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  object-fit: contain;
  transition: opacity .3s ease;
}

.icono-hover{ opacity: 0; }                 /* estado normal: muestra A */
.flip-card-front:hover .icono-hover{ opacity: 1; }
.flip-card-front:hover .icono-default{ opacity: 0; }

/* Flecha decorativa en el reverso */
.icono-flecha{
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 1.2rem;
  color:#007bff;
}

/* Responsive: reduce iconos y altura en pantallas pequeñas */
@media (max-width: 575.98px){
  .flip-card{ height: 230px; }
  .icono-container{ width: 110px; height:110px; }
  .icono-container img{ width:110px; height:110px; }
}








    /*nuestros clientes*/

    
    .clientes-header {
      background-color: #2d8bba;
      color: white;
      padding: 2rem 0 1rem; 
      font-size: 4.0rem;
    }

    .clientes-grid {
      padding: 2rem 1rem;
      background: url('img/PNG Fondo en Marca de Agua para Logo de Empresas añ 50_ de opacidad.png') center top repeat-y;
      background-size: contain;
    }


    .clientes-logo {
      max-width: 140px;
      max-height: 80px;
      object-fit: contain;
      margin: 1rem auto;
      display: block;
    }

    @media (max-width: 768px) {
      .clientes-logo {
        max-width: 100px;
        max-height: 50px;
      }
    }
/* Hace clickeable todo el card sin alterar el diseño */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out;
}

/* Cambia el cursor y da una pequeña animación al pasar el mouse */
.card-link:hover {
  cursor: pointer;
  transform: scale(1.02);
  text-decoration: none;
}