:root {
    --verde-principal: #28a745; --verde-hover: #218838; --gris-fondo: #f8f9fa;
    --gris-borde: #dee2e6; --texto-principal: #212529; --texto-secundario: #6c757d;
    --blanco: #ffffff; --rojo-error: #dc3545; --fuente-texto: 'Poppins', sans-serif;
}
* { box-sizing: border-box; }
body { font-family: var(--fuente-texto)!important; background-color: var(--gris-fondo); margin: 0;   min-height: 100vh; }

.wizard-container { max-width: 900px; margin: 1.5rem auto; width: 100%; background: var(--blanco); padding: 30px 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.5s ease-in-out; }
h2 { text-align: center; color: var(--texto-principal); margin-bottom: 30px; font-weight: 600; }

.form-group { position: relative; padding-bottom: 20px; flex: 1; }
label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
input { width: 100%; padding: 12px 15px; border: 1px solid var(--gris-borde); border-radius: 8px; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus { outline: none; border-color: var(--verde-principal); box-shadow: 0 0 0 3px rgba(40,167,69,0.15); }
.error-message { position: absolute; bottom: 0; left: 5px; font-size: 0.8rem; color: var(--rojo-error); display: none; }
.success-message { position: absolute; bottom: 0; left: 5px; font-size: 0.8rem; color: var(--verde-principal); display: none; }
input.error { border-color: var(--rojo-error); }
input.success { border-color: var(--verde-principal); }
.upload-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--verde-principal);
    font-size: 1.5rem;
    z-index: 10;
}

.upload-progress {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: var(--verde-principal);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-area.uploading .upload-spinner {
    display: block;
}

.upload-area.uploading .upload-progress {
    display: block;
}
.form-grid {  margin: 0 auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }

.main-instruction { text-align: center; color: var(--texto-secundario); max-width: 700px; margin: -15px auto 10px auto;font-size: 13px; }
.max-size-notice { font-weight: 600; color: #555; }
.uploads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.upload-wrapper { text-align: center; }
.upload-area { position: relative; border: 2px dashed var(--gris-borde); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; background-color: #fcfcfc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.upload-area.horizontal { height: 200px; }
.upload-area.vertical { height: 250px; }
.upload-area:hover { border-color: var(--verde-principal); background-color: #f1fdf3; }
.upload-area.error { border-color: var(--rojo-error); }
.upload-prompt { padding: 15px; }
.upload-prompt i { font-size: 2rem; color: var(--texto-secundario); margin-bottom: 10px; }
.upload-prompt strong { display: block; font-size: 1rem; color: var(--texto-principal); }
.upload-help-text { display: block; font-size: .85rem; color: var(--texto-secundario); margin-top: 8px;
text-transform: uppercase;font-weight: bold; }
.file-preview { display: none; width: 100%; height: 100%; object-fit: cover; }
.remove-file-btn { display: none; position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; font-size: 16px; font-weight: bold; line-height: 24px; text-align: center; cursor: pointer; transition: background 0.2s; 
z-index: 9;padding: 0; line-height: 30px; }
.remove-file-btn:hover { background: rgba(0,0,0,0.8); }
.upload-area.has-file { border-style: solid; border-color: var(--verde-principal); }
.upload-area.has-file .upload-prompt { display: none; }
.upload-area.has-file .file-preview, .upload-area.has-file .remove-file-btn { display: block; }
.file-input {     text-indent: 3000px;
    border: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;cursor: pointer; }


.navigation-buttons { display: flex; justify-content:center; margin-top: 30px; align-items: center; gap: 1rem }
.next-button, .back-button { padding: 12px 25px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.next-button { background-color: var(--verde-principal); color: var(--blanco); }
.next-button:hover:not(:disabled) { background-color: var(--verde-hover); }
.next-button:hover, .back-button:hover{
    color:#fff;
}
.next-button:disabled { background-color: #94dcb0; cursor: not-allowed; }
.back-button { background-color: var(--texto-secundario); color: var(--blanco); }
.btn-spinner { display: none; }
.final-confirmation { text-align: center; padding: 40px 20px; }
.final-confirmation .icon-final { font-size: 5rem; color: var(--verde-principal); margin-bottom: 20px; }
.final-confirmation .navigation-buttons { justify-content: center; }
.final-confirmation .mensaje-secundario { font-size: 1rem; color: var(--texto-secundario); max-width: 500px; margin: 0 auto 20px auto; }
.login-cc {
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.login-cc p {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.login-cc a{
  display: inline-block;
  color: #fff;
  background-color: var(--verde-principal);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-cc a:hover {
  background-color: #1a9f6e;
  transform: translateY(-1px);
}
/* --- ANIMACIONES Y RESPONSIVE --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .uploads-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .wizard-container { padding: 20px; }
    .upload-help-text{font-size: .95rem;}
}