/* === ANIMACIÓN DE ENTRADA PARA EL HERO DE "NOSOTROS" === */

/* Estado inicial (fuera de vista) */
.nosotros-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #072727, #041313 80%);
  color: white;
  padding: 7rem 2rem;
}

/* Cuadrícula animada del fondo */
.nosotros-hero .tech-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

/* Animación de movimiento de la cuadrícula */
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* === EFECTO DE ENTRADA === */
.nosotros-hero .container-lg {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animación del contenido */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TEXTO === */
.nosotros-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.nosotros-hero h1 span {
  color: #00ffe5;
  text-shadow: 0 0 10px #00ffe5;
}

.nosotros-hero .lead {
  color: #b9f1f1;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* === BOTÓN === */
.nosotros-hero .btn-codaini {
  position: relative;
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
}

/* Hover con efecto luminoso */
.nosotros-hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.35);
}


/* ===== BOTÓN HERO ACTIVO Y ANIMADO ===== */
.nosotros-hero .btn-codaini {
  position: relative;
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  cursor: pointer; /* <- Garantiza que el cursor cambie */
}

/* Efecto hover + animación */
.nosotros-hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.35);
}

/* Brillo animado alrededor */
.nosotros-hero .btn-codaini::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(0,255,229,0.6), transparent);
  z-index: 1;
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: codaini-glow 3s linear infinite;
}

.nosotros-hero .btn-codaini:hover::before {
  opacity: 1;
}

@keyframes codaini-glow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* --- ADN --- */
.nosotros-adn {
  padding: 5rem 0;
  background: #0b2e2e;
  color: white;
}
.nosotros-adn .section-title {
  font-weight: 700;
  color: #00ffe5;
  text-shadow: 0 0 8px #00bfa6;
}
.nosotros-adn .section-subtitle {
  font-size: 1rem;
  color: #a4d7d7;
  margin-bottom: 3rem;
}
.adn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.adn-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s ease;
}
.adn-item:hover {
  transform: translateY(-5px) scale(1.03);
  background: rgba(0, 255, 229, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.2);
}
.adn-item i {
  font-size: 2.5rem;
  color: #00ffe5;
  margin-bottom: 1rem;
  display: block;
}

/*Mision y Vision*/
.nosotros-mision-vision {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.mv-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.mv-text {
  width: 60%;
  z-index: 2;
}

.mv-text .card {
  background: #fefefe;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,255,229,0.12);
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
}

.mv-text .mission {
  border-left-color: #00ffe5;
}

.mv-text .vision {
  border-left-color: #00bfa6;
}

.mv-text .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,255,229,0.25);
}

.mv-text h3 {
  font-weight: 700;
  color: #0b3d3d;
  margin-bottom: 1rem;
}

/* --- Imagen flotante --- */
.mv-image {
  position: absolute;
  right: 0;
  top: 10%;
  width: 37%;
  max-width: 550px;
  transform: translateY(0);
  z-index: 1;
  pointer-events: none;
}

.mv-image img {
  width: 100%;
  border-radius: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(0,255,229,0.25));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .mv-content {
    flex-direction: column;
  }
  .mv-text {
    width: 100%;
  }
  .mv-image {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 2rem;
    opacity: 1;
    pointer-events: auto;
  }
  .mv-image img {
    border-radius: 12px;
    animation: none;
  }
}


/* --- VALORES --- */
.nosotros-valores {
  background: #081f1f;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}
.nosotros-valores .section-title {
  font-weight: 700;
  color: #00ffe5;
  margin-bottom: 2.5rem;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.valor-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,255,229,0.1);
  transition: all 0.3s ease;
}
.valor-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 229, 0.1);
  box-shadow: 0 0 20px rgba(0,255,229,0.2);
}
.valor-card i {
  font-size: 2rem;
  color: #00ffe5;
  margin-bottom: 1rem;
}

/* --- CTA --- */
.nosotros-cta {
  background: linear-gradient(135deg, #00bfa6, #007a6e);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}
.nosotros-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.nosotros-cta .btn-codaini {
  background-color: white;
  color: #007a6e;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
}
.nosotros-cta .btn-codaini:hover {
  background-color: #e5e5e5;
  transform: scale(1.05);
}
