/* ================== SECCIÓN NOSOTROS ================== */
#nosotros {
  width: 100%;
  background-color: white;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Contenedor base */
.contenedor-nosotros {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: nowrap;
}

/* ================== VIDEO ================== */
.video-nosotros {
  width: 100%;
  height: auto;
  position: relative;
}

.video-nosotros video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0px;
}

/* Capa oscura sobre el video */
#nosotros .capa-oscura {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.45));
  pointer-events: none;
  border-radius: 0px;
}

/* ================== BLOQUE DE TEXTO ================== */
.texto-nosotros {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px 20px;
  text-align: center;
  font-family: 'Jomolhari', serif;
  flex-wrap: nowrap;
}

/* ---------- TÍTULO ---------- */
.titulo-nosotros {
  font-family: 'Edwardian Script ITC', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.15;
  margin-bottom: 32px;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
  text-align: center;
}

/* ---------- CONTENEDOR DE PÁRRAFOS ---------- */
.contenedor-parrafos {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  flex-shrink: 1;
}

/* ---------- PÁRRAFO ESTÁTICO (largo) ---------- */
.parrafoNosotros {
  opacity: 1 !important;
  position: static !important;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: white;
  text-align: center;
  padding: 0 12px;
  flex-shrink: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

/* ---------- PÁRRAFO RESUMIDO ---------- */
.parrafoNosotros--resumen {
  display: none;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  line-height: 1.4;
  color: #111;
  text-align: center;
  padding: 0 10px;
  text-shadow: none;
}

/* ---------- LOGO ---------- */
.logo_nosotros {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  margin: clamp(10px, 3vh, 20px) auto 0;
  flex-shrink: 1;
  z-index: 1;
  pointer-events: none;
}

/* =================================================================== */
/* ===================== PORTRAIT (layout doble sección) ============= */
/* =================================================================== */
@media (orientation: portrait) {
  #nosotros { padding: 0; }

  .contenedor-nosotros {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .texto-nosotros {
    order: -1;
    width: 100%;
    height: auto;
    padding: clamp(20px, 4vw, 40px);
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .titulo-nosotros {
    font-size: clamp(2.2rem, 5.5vw, 3rem);
    margin-bottom: 16px;
  }

  .contenedor-parrafos {
    max-width: 900px;
    margin: 0 auto;
  }

  .parrafoNosotros {
    color: #111;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.4;
    margin: 0 auto clamp(12px, 2vw, 20px) auto;
    text-shadow: none;
  }

  .video-nosotros {
    order: 0;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .video-nosotros video { width: 100%; height: auto; object-fit: cover; border-radius: 0; }

  .logo_nosotros {
    display: block;
    margin: clamp(10px, 3vh, 20px) auto 0;
    width: 100%;
    max-width: 160px;
    height: auto;
  }

  .capa-oscura { display: none; }
}

/* =================================================================== */
/* ===================== LANDSCAPE GENERAL (desktop/tablet) ========= */
/* =================================================================== */
@media (orientation: landscape) and (min-width: 769px) {
  #nosotros {
    height: 100dvh;
    padding: 0;
  }

  .contenedor-nosotros {
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
  }

  .texto-nosotros,
  .video-nosotros {
    width: 50%;
    height: 100%;
    position: relative;
  }

  .video-nosotros video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

  .texto-nosotros {
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 40px);
    gap: clamp(12px, 2.2vw, 24px);
  }

  .titulo-nosotros {
    color: #832B87;
    text-shadow: none;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    margin-bottom: clamp(10px, 2vw, 28px);
  }

  .contenedor-parrafos {
    max-width: 900px;
    margin: 0 auto;
    flex-shrink: 1;
  }

  .parrafoNosotros {
    color: #111;
    text-shadow: none;
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.4;
    margin: 0 auto clamp(6px, 1.2vw, 12px) auto;
    flex-shrink: 1;
  }

  .logo_nosotros {
    display: block;
    margin: clamp(10px, 2vh, 20px) auto 0;
    width: 100%;
    max-width: 160px;
    height: auto;
    flex-shrink: 1;
    margin-top: 0px;
  }

  .capa-oscura { display: none; }
}

/* =================================================================== */
/* ===== LANDSCAPE BAJO O VENTANA BAJA (texto reducido) =============== */
/* =================================================================== */
@media (max-height: 500px) {
  #nosotros {
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
  }

  .contenedor-nosotros {
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: auto;
  }

  .video-nosotros,
  .texto-nosotros {
    width: 50%;
    height: auto;
    position: relative;
  }

  .video-nosotros video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .texto-nosotros {
    padding: clamp(12px, 3vw, 20px);
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .titulo-nosotros {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: clamp(8px, 1.5vw, 16px);
    color: #832B87;
    text-shadow: none;
  }

  .contenedor-parrafos {
    max-width: 90%;
  }

  /* En modo bajo solo se ve el párrafo resumen sin sombra */
  .parrafoNosotros { display: none; }
  .parrafoNosotros--resumen { 
    display: block; 
    text-shadow: none; 
  }

  .logo_nosotros {
    max-width: 120px;
    margin-top: 12px;
  }

  .capa-oscura { display: none; }
}

/* =================================================================== */
/* ===== NUEVO: ANCHO DE VENTANA 50% O MENOS (texto resumido) ======= */
/* =================================================================== */
@media (max-width: 1024px) {
  .parrafoNosotros { display: none; }
  .parrafoNosotros--resumen { display: block; }
}
