/* Container nosotros */

.container-nosotros {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-image: url(https://res.cloudinary.com/djg5um7dm/image/upload/v1771045277/anestiev-airplane-7429725_1920_griyof.jpg) !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.50);
  position: relative;
  z-index: 1;
}
  .container-nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.090);
    z-index: 0;
    pointer-events: none;
  }
  /* Asegura que la imagen de fondo se vea con opacidad */
  .container-nosotros {
    background-blend-mode: darken;
  }

  .container-nosotros > * {
    position: relative;
    z-index: 1;
  }

/* Descripción seria y limpia */
.description-nosotros {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.2rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.description-nosotros p {
  margin: 0;
  color: #222;
  font-size: 1.13rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: center;
  word-break: break-word;
}
.description-nosotros strong {
  color: #111;
  font-weight: 600;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-texto p.typing-active {
  border-right: 2px solid #010080;
  animation: nosotros-typing-caret 0.8s steps(1) infinite;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-texto p {
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-texto p.typing-exit {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(2px);
}

@keyframes nosotros-typing-caret {
  50% {
    border-right-color: transparent;
  }
}

/* Logo limpio: sin opacidad ni mosaico sobre la imagen */
:is(#nosotros, #why_us) .usabilidad-nosotros-logo {
  position: relative;
  overflow: visible;
  isolation: auto;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-logo img {
  position: relative;
  z-index: 1;
  transform-origin: center center;
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

:is(#nosotros, #why_us) .logo-tile-layer {
  display: none !important;
}

:is(#nosotros, #why_us) .logo-tile {
  display: none;
}

:is(#nosotros, #why_us) .logo-tile.hide {
  display: none;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-logo.is-built img {
  opacity: 1;
  filter: none;
  transform: none;
}

:is(#nosotros, #why_us) .usabilidad-nosotros-logo.is-exiting img {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Botón de despliegue en el header del paso */
a {
  text-decoration: none;
  color: inherit;
}
.paso-toggle-btn {
  background: none;
  border: none;
  outline: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 0 0 1rem;
  transition: transform 0.2s;
}
.icon-flecha {
  font-size: 1.3rem;
  color: #fff;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.paso.activo .icon-flecha {
  transform: rotate(180deg);
}

.section-nosotros-pasos {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem 1rem;
}

.nosotros-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2.2rem;
  letter-spacing: 1px;
}

.pasos-verticales {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.paso {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 18px rgba(37,128,195,0.10);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  border-left: 7px solid var(--color-primary);
  position: relative;
}

.paso-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1.3rem 1.7rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary-2) 100%);
  color: #fff;
  transition: background 0.2s;
  font-weight: 600;
  font-size: 1.1rem;
}
.paso-header:hover {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.paso-numero {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--color-primary);
  background: #fff;
  border-radius: 50%;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  box-shadow: 0 2px 8px rgba(37,128,195,0.10);
  border: 2px solid var(--color-primary);
}
.paso-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.paso-descripcion {
  max-height: 0;
  overflow: hidden;
  background: #f7fafc;
  color: #365486;
  font-size: 1.04rem;
  padding: 0 1.7rem;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s;
  border-top: 1px solid var(--color-secondary-1);
}
.paso.activo .paso-descripcion {
  max-height: 200px;
  padding: 1.1rem 1.7rem;
}

/* Medias */
@media (max-width: 900px) {
  .usabilidad-nosotros-row {
    flex-direction: column !important;
    padding: 1.2rem 0.5rem !important;
  }
  .usabilidad-nosotros-logo, .usabilidad-nosotros-texto {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .usabilidad-nosotros-logo {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 893px) {
  .usabilidad-nosotros-logo {
    width: 50%;
  }
}

@media (max-width: 600px) {
  .usabilidad-nosotros-logo {
    width: 85%;
  }
  .section-nosotros-pasos {
    padding: 1.2rem 0.2rem;
  }
  .nosotros-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .paso-header {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
  .paso-numero {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    color: #f7fafc;
    background-color: transparent;
    border: none;
  }
  .paso-descripcion {
    font-size: 0.97rem;
    padding: 0 1rem;
  }
  .paso.activo .paso-descripcion {
    padding: 0.7rem 1rem;
  }
  .paso-titulo {
    font-size: 0.95rem;
  }
  /* Descripción seria y limpia */
  .description-nosotros {
    width: 90%;
  }
  .description-nosotros p {
    font-size: .9rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 480px) {
  .usabilidad-nosotros-logo {
    width: 100%;
  }
}

/* --- LIMPIEZA DE MEDIA QUERIES Y DUPLICADOS PARA SECCIÓN NOSOTROS --- */
@media (max-width: 900px) {

  .usabilidad-nosotros-row {
    flex-direction: column !important;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem !important;
    gap: 0 !important;
    font-size: 0.7rem !important;
  }
  .usabilidad-nosotros-logo {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100px !important;
    flex: 0 0 auto !important;
    margin-bottom: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }
  .usabilidad-nosotros-logo img {
    max-width: 60vw !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .usabilidad-nosotros-texto {
    max-width: 100vw !important;
    width: 100vw !important;
    flex: 0 0 auto !important;
    padding: 0.2rem 0.5rem 0.7rem 0.5rem !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
}
@media (max-width: 700px) {
  .usabilidad-nosotros-row {
    padding: 0.2rem 0.1rem 0.2rem 0.1rem !important;
  }
  .usabilidad-nosotros-logo {
    min-height: 120px !important;
    height: auto !important;
    overflow: visible !important;
    align-items: flex-start !important;
  }
  .usabilidad-nosotros-logo img {
    max-width: 48vw !important;
    margin-top: -1.5rem !important;
  }
  .usabilidad-nosotros-texto {
    padding: 0.1rem 0.2rem 0.3rem 0.2rem !important;
  }
  .usabilidad-nosotros-texto p {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }
}
@media (max-width: 600px) {
  .usabilidad-nosotros-row {
    padding: 0 !important;
  }
  .usabilidad-nosotros-logo {
    min-height: 105px !important;
    height: auto !important;
    overflow: visible !important;
    align-items: flex-start !important;
  }
  .usabilidad-nosotros-logo img {
    max-width: 58vw !important;
    margin-top: -2.1rem !important;
  }
  .usabilidad-nosotros-texto p {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}
/* Separación con la sección de contacto */
.section-usability {
  margin-bottom: 0.5rem !important;
}
@media (max-width: 700px) {
  .section-usability {
    margin-bottom: 0.2rem !important;
  }
}

/* Fix final mobile: evita desbordes del logo y textos en :is(#nosotros, #why_us) */
@media (max-width: 900px) {
  :is(#nosotros, #why_us) .usabilidad-nosotros-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 1rem !important;
    padding: 3.2rem 1rem 1rem 1rem !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-texto .nosotros-badge {
    position: absolute !important;
    top: 0.8rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    margin: 0 !important;
    width: max-content !important;
    max-width: calc(100% - 1.5rem) !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-logo {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 0.8rem 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-logo img {
    width: min(78vw, 320px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-texto {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.5rem 0.8rem 0.5rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
    align-items: center !important;
  }

  :is(#nosotros, #why_us) .nosotros-badge {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
  }

  :is(#nosotros, #why_us) .nosotros-title {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem) !important;
    line-height: 1.16 !important;
  }

  :is(#nosotros, #why_us) .nosotros-intro,
  :is(#nosotros, #why_us) .nosotros-points li {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

@media (max-width: 560px) {
  :is(#nosotros, #why_us) .usabilidad-nosotros-row {
    padding: 3rem 0.85rem 0.85rem 0.85rem !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-texto .nosotros-badge {
    top: 0.7rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.06em !important;
    padding: 0.35rem 0.65rem !important;
  }

  :is(#nosotros, #why_us) .usabilidad-nosotros-logo img {
    width: min(84vw, 280px) !important;
  }

  :is(#nosotros, #why_us) .nosotros-intro {
    font-size: 0.95rem !important;
    line-height: 1.62 !important;
  }

  :is(#nosotros, #why_us) .nosotros-points li {
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 0.92rem !important;
  }
}
