.modal-full {
  display: none;
  opacity: 0;
  font-family: sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh; 
  background: #000;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
}

.modal-full.active {
  display: flex;
  opacity: 1;
}

.viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.viewport video {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  background-color: #000;
}

.recuadro-guia {
  position: relative;
  width: 85vw;
  max-width: 450px;
  aspect-ratio: 1200 / 755;
  border-radius: 12px;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.7); 
  z-index: 10;
}

.esquina {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
}

.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

.controles {
  flex-shrink: 0;
  height: auto;
  min-height: 120px;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding-bottom: env(safe-area-inset-bottom);
  padding-top: 10px;
  z-index: 30;
}

.instrucciones {
  color: #fff;
  font-size: 14px;
}

.btn-shot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-shot:active {
  transform: scale(0.9);
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-abrir {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.inner-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #000;
}

.indicaciones-contenedor {
  position: absolute;
  bottom: 200px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  z-index: 20;
  pointer-events: none;
}

.titulo-guia {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0070ff; 
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.texto-guia {
  margin: 4px 0 0 0;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 300px;
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.icono-camara {
  font-size: 24px;
  color: #fff;
}

.btn-cerrar-x {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(5px);
}