/* SOBRE NOSOTROS */
.sobre-nosotros-banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.sobre-nosotros-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-nosotros-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sobre-nosotros-header {
  text-align: center;
  margin-bottom: 40px;
}

.sobre-nosotros-header h1 {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
}

.sobre-nosotros-header p {
  font-size: 1.2rem;
  color: var(--gris-oscuro);
  opacity: 0.9;
  margin-top: 8px;
}

.sobre-nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.sobre-nosotros-texto {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.texto-seccion h2 {
  color: var(--azul-principal);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.texto-seccion p {
  color: var(--gris-oscuro);
  line-height: 1.6;
  font-size: 1rem;
}

.texto-seccion ul {
  list-style: none;
  padding: 0;
}

.texto-seccion li {
  color: var(--gris-oscuro);
  margin-bottom: 8px;
  font-size: 1rem;
  padding-left: 5px;
}

.sobre-nosotros-video {
  background: var(--blanco);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.sobre-nosotros-video h2 {
  color: var(--azul-oscuro);
  margin-bottom: 20px;
  text-align: center;
}

/* CARRUSEL DE VIDEOS MEJORADO */
.video-carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-carousel video {
  width: 100%;
  max-width: 560px;
  height: 315px;
  object-fit: cover;
  display: block;
}

.video-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: var(--azul-oscuro);
  border: none;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.video-btn:hover {
  background: var(--blanco);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-btn.prev { 
  left: 15px; 
}

.video-btn.next { 
  right: 15px; 
}

/* Indicador de progreso */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.video-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--azul-principal), var(--rojo-colorcopy));
  width: 0%;
  transition: width 0.1s linear;
}

/* Indicador de video actual */
.video-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  z-index: 5;
}

/* Estado de silencio */
.video-muted-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px;
  border-radius: 50%;
  z-index: 5;
  font-size: 1rem;
}

.video-descripcion {
  text-align: center;
  color: var(--gris-oscuro);
  font-style: italic;
  margin-top: 10px;
}

.sobre-nosotros-contacto {
  text-align: center;
  background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-oscuro) 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0 30px;
}

.sobre-nosotros-contacto h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.sobre-nosotros-contacto p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.btn-contacto {
  background: var(--blanco) !important;
  color: var(--azul-principal) !important;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  background: var(--gris-claro) !important;
  transform: translateY(-2px);
}

.btn-volver {
  background: linear-gradient(135deg, var(--rojo-colorcopy) 0%, var(--rojo-oscuro) 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: linear-gradient(135deg, var(--rojo-oscuro) 0%, #8b1a26 100%);
  transform: translateY(-2px);
}

/* RESPONSIVE NOSOTROS */
@media (max-width: 900px) {
  .sobre-nosotros-grid {
    grid-template-columns: 1fr;
  }

  .video-carousel video {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .sobre-nosotros-content {
    padding: 20px;
  }

  .sobre-nosotros-header h1 {
    font-size: 2rem;
  }

  .sobre-nosotros-header p {
    font-size: 1rem;
  }

  .sobre-nosotros-video {
    padding: 20px;
  }

  .video-carousel video {
    height: 200px;
  }

  .sobre-nosotros-contacto {
    padding: 30px 20px;
  }

  .sobre-nosotros-contacto h2 {
    font-size: 1.5rem;
  }

  /* Reordenar: video arriba, texto abajo */
  .sobre-nosotros-grid {
    display: flex;
    flex-direction: column;
  }

  .sobre-nosotros-video {
    order: -1;
    margin-bottom: 20px;
  }

  .sobre-nosotros-texto {
    order: 1;
  }

  .sobre-nosotros-banner {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .sobre-nosotros-content {
    padding: 20px 15px;
  }

  .sobre-nosotros-header {
    margin-bottom: 30px;
  }

  .sobre-nosotros-header h1 {
    font-size: 1.8rem;
  }

  .texto-seccion h2 {
    font-size: 1.3rem;
  }

  .texto-seccion p,
  .texto-seccion li {
    font-size: 0.9rem;
  }

  .sobre-nosotros-video {
    padding: 15px;
  }

  .sobre-nosotros-contacto {
    padding: 25px 15px;
  }

  .sobre-nosotros-contacto h2 {
    font-size: 1.3rem;
  }

  .btn-volver {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Prevenir acciones por defecto en móviles */
@media (max-width: 768px) {
  .video-carousel video {
    -webkit-playsinline: true;
    padding-inline: true;
  }
  
  .video-carousel {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}