

/* Estilo para el modal de cámara */
.camera-frame {
    border: 3px solid white;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    background-color: #f8f9fa;
    position: relative;
}



#capturedPhoto {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.camera-indicator {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 10;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}


.camera-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

#cameraPreview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.document-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 70%;
    border: 3px solid white;
    border-radius: 8px;
    /* box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5); */
    box-shadow: 0 0 0 100vmax rgb(227 227 227);
    pointer-events: none;
    z-index: 10;
}

.document-frame::after,
.corner-tr,
.corner-bl,
.corner-br {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid white;
}

.document-frame::after {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.frame-label {
    position: absolute;
    bottom: -35px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 11;
}

@media (max-width: 768px) {
    .camera-wrapper {
      height: 60vh;
    }
    
    .document-frame {
      width: 90%;
      height: 35%;
    }
}

.invisible {
    visibility: hidden;
}


.paso-preview {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.titulo-preview {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contenedor-cards {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.contenedor-cards::-webkit-scrollbar {
    height: 8px;
}

.contenedor-cards::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.card-huesped {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    padding: 1.5rem;
    transition: transform 0.2s;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-huesped:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.foto-huesped {
    text-align: center;
    margin-bottom: 1rem;
}

.foto-huesped img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0f7fa;
}

.info-huesped p {
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.etiqueta-strong {
    font-weight: 600;
}

.valor {
    color: #495057;
}

.botones-accion {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}



#mainContainerprogressContainer{
  width: 100%;
  margin-top: 2rem;
}

#progressContainer{
  width: 100%;
}




#cameraPreview {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Se ajusta al contenedor recortando si es necesario */
    transform: rotate(0deg); /* por si necesitas girar la vista */
    background: black;
    border-radius: 8px;
}
.full-photo-frame {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px); /* ocupa casi toda la pantalla, ajusta según header/footer */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}








.full-photo-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* MARCO DONDE VA LA FOTO */
.full-photo-frame {
  position: relative;
  width: 80%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-photo-frame video,
.full-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MARCO DE DOCUMENTO (LAS ESQUINAS) */
.full-photo-document-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.full-photo-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #00ff88;
}

.full-photo-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.full-photo-corner-bl { bottom: 0; left: 0; border-top: none; border-right: none; }
.full-photo-corner-br { bottom: 0; right: 0; border-top: none; border-left: none; }





/* Solo en móviles: cámara en horizontal y fullscreen */
@media (max-width: 768px) {
  .full-photo-frame {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
  }

  #cameraPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transform: rotate(90deg); /* fuerza horizontal */
  }

  /* Ajusta el contenedor para que no deje espacios */
  .full-photo-body {
    padding: 0;
  }

  .full-photo-header,
  .full-photo-footer {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 20;
  }

  .full-photo-header {
    top: 0;
  }

  .full-photo-footer {
    bottom: 0;
  }
}
