/* ============================================================================
   Validación de Identidad - Diseño premium con dropzones y drag & drop
   Usado en: upload_ine.html
   ============================================================================ */

body.ine-body {
    background: #0c1324;
    color: #dce1fb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ine-main {
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .ine-main {
        padding: 2rem 2.5rem;
    }
}

.ine-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Banner de confirmación superior */
.ine-notification {
    width: 100%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.ine-notification .material-symbols-outlined {
    color: #10B981;
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ine-notification p {
    flex: 1;
    color: #10B981;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Card principal */
.ine-card {
    width: 100%;
    background: #1E293B;
    border: 1px solid #43474d;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* Banner header verde */
.ine-card-header {
    background: #10B981;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.15);
}

.ine-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.ine-card-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

.ine-card-header-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ine-card-header-icon .material-symbols-outlined {
    color: white;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ine-card-header h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white;
    margin: 0;
}

@media (max-width: 640px) {
    .ine-card-header h1 {
        font-size: 1.5rem;
    }
}

/* Body de la card */
.ine-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 640px) {
    .ine-card-body {
        padding: 2rem;
    }
}

.ine-subtitle {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.ine-subtitle p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #c4c6ce;
    margin: 0;
}

/* Grid de dropzones */
.ine-dropzone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ine-dropzone-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ine-dropzone-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ine-dropzone-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: #dce1fb;
    margin: 0 0 0.25rem 0;
}

/* Dropzone */
.ine-dropzone-wrapper {
    position: relative;
    cursor: pointer;
    display: block;
}

.ine-dropzone-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
}

.ine-dropzone {
    border: 2px dashed #43474d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #191f31;
    transition: all 0.3s;
    height: 12rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.ine-dropzone-wrapper:hover .ine-dropzone,
.ine-dropzone.dragover {
    background: rgba(51, 57, 76, 0.3);
    border-color: #b0c8eb;
    box-shadow: 0 0 20px rgba(176, 200, 235, 0.05);
}

.ine-dropzone-icon {
    background: #2e3447;
    padding: 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.ine-dropzone-wrapper:hover .ine-dropzone-icon {
    transform: scale(1.1);
}

.ine-dropzone-icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 32px;
    color: #10B981;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ine-dropzone-text {
    text-align: center;
}

.ine-dropzone-text .main-text {
    font-size: 1rem;
    color: #dce1fb;
    margin: 0;
}

.ine-dropzone-text .sub-text {
    font-size: 0.875rem;
    color: #c4c6ce;
    margin: 0.25rem 0 0 0;
}

/* Estado con archivo seleccionado */
.ine-dropzone.has-file {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
    border-style: solid;
}

.ine-dropzone.has-file .ine-dropzone-icon {
    background: rgba(16, 185, 129, 0.15);
}

.ine-dropzone.has-file .ine-dropzone-icon .material-symbols-outlined {
    color: #10B981;
}

.ine-dropzone-filename {
    font-family: 'Inter', monospace;
    font-size: 0.8125rem;
    color: #10B981;
    font-weight: 500;
    word-break: break-all;
    max-width: 100%;
    padding: 0 0.5rem;
}

/* Info box debajo del dropzone */
.ine-info-box {
    background: #151b2d;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(67, 71, 77, 0.5);
}

.ine-info-box .label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #c4c6ce;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
}

.ine-info-box .content {
    font-size: 0.875rem;
    color: #c4c6ce;
    margin: 0;
    line-height: 1.4;
}

.ine-info-box .warning {
    font-size: 0.875rem;
    color: #F59E0B;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

/* Requirements Box */
.ine-requirements {
    background: #23293c;
    border-left: 4px solid #F59E0B;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .ine-requirements {
        flex-direction: row;
        align-items: flex-start;
    }
}

.ine-requirements-icon {
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ine-requirements-icon .material-symbols-outlined {
    color: #F59E0B;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ine-requirements-content h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: #F59E0B;
    margin: 0 0 0.75rem 0;
}

.ine-requirements-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 640px) {
    .ine-requirements-list {
        grid-template-columns: 1fr 1fr;
    }
}

.ine-requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #c4c6ce;
}

.ine-requirements-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.6);
    flex-shrink: 0;
}

.ine-requirements-list li.full-width {
    grid-column: 1 / -1;
}

/* Botones de acción */
.ine-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-ine-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: #10B981;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-ine-primary:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-ine-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-ine-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ine-primary .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.btn-ine-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid #43474d;
    color: #c4c6ce;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-ine-secondary:hover {
    background: #2e3447;
    color: #dce1fb;
    text-decoration: none;
}

/* Loading overlay */
.ine-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ine-loading-overlay.active {
    display: flex;
}

.ine-loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
}

.ine-loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid rgba(176, 200, 235, 0.2);
    border-top-color: #b0c8eb;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: ine-spin 1s linear infinite;
}

@keyframes ine-spin {
    to { transform: rotate(360deg); }
}

.ine-loading-content h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
}

.ine-loading-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}
