/* =========================
   RESET / BASE
   ========================= */
html, body { 
  margin: 0 !important;
  padding: 0 !important;
}


.carouselFondo2,
.overlay2,
#nosotros,
#nosotros section {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* =========================
   HERO
   ========================= */
.carouselFondo2 {
  background: url('/images/laptops.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  height: 650px;
}

.overlay2 {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0 simplificado */
  background-color: rgba(0, 106, 255, 0.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.overlay2 h2 {
  color: #fff;
  font-size: 100px;
  font-weight: bold;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 700px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", "Liberation Sans", Arial, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.overlay2 p {
  color: #fff;
  font-size: 20px;
  margin: 0 0 20px;
  max-width: 600px;
}

/* =========================
   HERO BUTTONS
   ========================= */
   /* AQUI */
.contenedor {
  width: min(1100px, 92%);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  align-items: center;
  justify-items: center;
  transform: translateX(-30px);
}

/* =========================
   ENLACES
   ========================= */
.enlace2 {
  position: relative;
  color: #fff;
  text-decoration: none;
  text-align: right;
  margin-left: 55px;
  transition: text-shadow 0.3s ease;
}

.enlace2 h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.4;
  margin: 0;
  padding-bottom: 14px; /* espacio para la rayita */
  display: inline-block;
  position: relative;
}

.enlace2:hover {
  text-shadow: 0 0 20px #fff;
  text-align: left;
}

/* Línea animada debajo */
.enlace2 h4::after,
.enlace2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #fff;
  transition: width 0.4s ease;
}

.enlace2:hover h4::after,
.enlace2:focus h4::after,
.enlace2:hover::after,
.enlace2:focus::after {
  width: 100%;
}

.enlace2,
.enlace2:link,
.enlace2:visited,
.enlace2:hover,
.enlace2:active,
.enlace2:focus {
  color: white !important;
  text-decoration: none;
}


/* =========================
   BOTONES / FORM
   ========================= */
.enviar-btn {
  width: 21%;
  padding: 4px 0;
  border-radius: 15px;
  background: #cbd1d8;
  border: none;
  font-weight: 500;
  color: #000;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.enviar-btn:hover {
  background-color: #4395f4;
  color: #fff;
}

/* =========================
   TARJETAS
   ========================= */
.p-4:hover {
  background: linear-gradient(122deg, rgba(67, 157, 223, 0.5), rgba(182, 217, 255, 0.5));
  transition: background 0.3s ease;
  color: #fff;
}

.card_elemento {
  position: relative;
  overflow: hidden;
}

.card_elemento:hover .mensaje_hover {
  opacity: 1;
}

.mensaje_hover {
  position: absolute;
  inset: 0;
  background-color: rgba(22, 51, 77, 0.52);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.mensaje_hover p {
  font-size: 15px;
  color: #fff;
  width: 80%;
  margin: 5px 0;
}

/* =========================
   ICONOS / EFECTOS
   ========================= */
i {
  display: inline-block;
  transition: transform 0.4s;
}
.confianza:hover i { transform: rotate(-20deg) rotateY(20deg); }
.compromiso:hover i { transform: scale(1.2); }
.excelencia:hover i { transform: translateY(-10px); }
#bulb { font-size: 60px; transition: transform 0.6s ease; }
.innovacion:hover #bulb { transform: scale(1.2); }

/* =========================
   CUSTOM PADDING
   ========================= */
.custom-padding {
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.35),
    0 12px 25px rgba(0, 0, 0, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.custom-padding:hover {
  transform: translateY(-12px);
  box-shadow:
    0 14px 25px rgba(0, 0, 0, 0.45),
    0 20px 45px rgba(0, 0, 0, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.25);
  background-position: 100% 0;
}

/* =========================
   SECCIONES GENERALES
   ========================= */
#nosotros {
  margin-top: 80px; /* espacio entre el hero y el contenido */
}

@media (max-width: 768px) {
  #nosotros {
    margin-top: 60px; /* menos espacio en móviles */
  }
}


/* =========================
   MEDIA QUERIES
   ========================= */
/* Tablet y pantallas medianas */
@media screen and (max-width: 1024px) {
  .overlay2 h2 { font-size: 72px; }
  .overlay2 p { font-size: 20px; }
  .enlace2 h4 {
    font-size: 24px; /* más grande en tablet y móvil */
  }

}

/* Tablets chicas y móviles grandes */
@media screen and (max-width: 768px) {
  .overlay2 {
    align-items: center;
    text-align: center;
  }
  .overlay2 h2 { font-size: 55px; line-height: 1.2; }
  .overlay2 p { font-size: 18px; max-width: 90%; margin: 0 auto; }

  /* Centramos misión / visión / valores */
  /* AQUI */
  .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    gap: 40px;
    transform: none;
  }
  .enlace2 {
    margin-left: 0 !important; /* quitamos empujes */
    text-align: center;        /* centramos texto */
  }
 /* Subir botones */
  /* AQUI */
  .contenedor {
    margin-top: 10px; /* en vez de 60px */
  }
  .col-md-6.order-md-1 { margin-left: 0; }
}

/* Móviles */
@media screen and (max-width: 480px) {
  .overlay2 h2 { font-size: 42px; line-height: 1.2; }
  .overlay2 p { font-size: 16px; margin: 0 auto; }

  /* Otros detalles móviles */
  .mt-4 { text-align: center; }
  .a { text-align: justify; padding: 18px 13px; }
  .img-fluid { margin-left: 0; max-width: 100%; }
  .custom-padding { margin: 4% 3% 0; padding: 9px 21px; }
}





/* =========================
   ESTILOS REUSABLES PARA VALORES (mover aquí los inline styles)
   Pegar en nosotros.css
   ========================= */

/* Título de sección (antes: inline style) */
.page-title {
  text-align: left;
  font-family: sans-serif;
  font-size: 57px;
  padding: 20px;
  color: #000;
  margin-bottom: 15px;
}

/* Texto descriptivo (antes: inline style en <h1>) */
.texto-parrafo {
  text-align: justify;
  font-family: sans-serif;
  font-size: 19px;
  padding: 20px 20px;
  color: #00000094;
  margin-bottom: 50px;
  padding-top: 0;
}

/* BLOQUES DE VALOR (unificar padding/min-height/centering) */
.bloque-valor {
  padding: 100px 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Colores específicos (antes inline) */
.bloque-valor.confianza {
  background-color: #003881;
  color: #ffffff;
}
.bloque-valor.compromiso {
  background-color: #B2F0F0;
  color: #003881;
}
.bloque-valor.innovacion {
  background-color: #3F9AC0;
  color: #ffffff;
}
.bloque-valor.excelencia {
  background-color: #A0E7FF;
  color: #003881;
}

/* Iconos en bloque valor */
.valor-icon {
  font-size: 60px; /* eso estaba inline */
  line-height: 1;
}

/* Títulos dentro del bloque */
.valor-title {
  margin-top: 12px;
}

/* Imagen hero lateral y caja de texto (antes inline margin-left / top) */
.hero-image img {
  max-width: 80%;
  margin-top: -65px; /* si quieres conservar el efecto */
  margin-left: 47%;
}

/* Caja de info (antes inline en custom-padding) */
.info-box {
  margin-left: 6%;
  margin-top: 26%;
  color: white;
  background-color: #283b85;
  border-radius: 10px;
  padding: 36px 43px;
}

/* texto dentro de info box */
.info-text {
  font-size: 19px;
  color: #fff;
  padding: 5px 0;
  font-weight: 100;
}

/* Ajustes responsive: evita márgenes raros en pantallas pequeñas */
@media (max-width: 992px) {
  .hero-image img {
    margin-left: 0;
    max-width: 60%;
    margin-top: 0;
  }
  .info-box {
    margin-left: 0;
    margin-top: 20px;
    padding: 24px;
  }
  .bloque-valor { padding: 60px 20px; min-height: 220px; }
  .valor-icon { font-size: 48px; }
  .page-title { font-size: 42px; }
  .texto-parrafo { font-size: 17px; }
}

@media (max-width: 480px) {
  .hero-image img { max-width: 100%; margin-top: 0; }
  .info-box { margin-top: 12px; padding: 18px; }
  .bloque-valor { padding: 40px 16px; min-height: 180px; }
  .valor-icon { font-size: 42px; }
  .page-title { font-size: 32px; text-align: center; }
  .texto-parrafo { font-size: 16px; padding: 8px 10px; }
}
