:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1F2937;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: white;
    min-height: 100vh;
    color: var(--gray-900);
    padding: 12px;
    line-height: 1.5;
    font-size: 14px;
}

/* Desactivar todas las animaciones cuando se cambia de plantilla */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* HEADER - MÁS COMPACTO */
.app-header {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-header-content h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header-content p {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 400;
}

.header-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

/* UPLOAD SECTION - MÁS COMPACTO */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 32px 20px;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-zone h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.upload-zone p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* BUTTONS - MÁS COMPACTOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    padding: 8px;
    min-width: 36px;
    height: 36px;
    justify-content: center;
}

.btn span {
    font-size: 14px;
}

/* LOADING */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-content p {
    font-size: 16px;
    font-weight: 500;
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeIn 0.5s ease;
}

/* LAYOUT DE DOS COLUMNAS */
#mainLayoutContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

#mainLayoutContainer.two-columns {
    grid-template-columns: 400px 1fr;
    gap: 12px;
}

#textViewerSection {
    width: 100%;
}

#textViewerSection .panel {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#textViewerSection .text-content-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    min-height: 300px;
}

#textViewerSection .panel-header,
#textViewerSection .pdf-controls,
#textViewerSection .alert {
    flex-shrink: 0;
}

/* Optimizar el panel de campos cuando está en dos columnas */
#mainLayoutContainer.two-columns .tab-content {
    width: 100%;
}

#mainLayoutContainer.two-columns .panel {
    width: 100%;
}

/* Hacer la tabla responsive dentro del contenedor */
#mainLayoutContainer.two-columns .fields-table {
    font-size: 11px;
}

#mainLayoutContainer.two-columns .fields-table th,
#mainLayoutContainer.two-columns .fields-table td {
    padding: 6px 8px;
}

#mainLayoutContainer.two-columns .fields-table input[type="text"],
#mainLayoutContainer.two-columns .fields-table input[type="number"],
#mainLayoutContainer.two-columns .fields-table select {
    padding: 4px 6px;
    font-size: 11px;
}

@media (max-width: 1600px) {
    #mainLayoutContainer.two-columns {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 1400px) {
    #mainLayoutContainer.two-columns {
        grid-template-columns: 320px 1fr;
    }
    
    #mainLayoutContainer.two-columns .fields-table {
        font-size: 10px;
    }
    
    #mainLayoutContainer.two-columns .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    #mainLayoutContainer.two-columns {
        grid-template-columns: 1fr;
    }
    
    #textViewerSection .panel {
        position: relative;
        max-height: 500px;
    }
    
    #textViewerSection .text-content-wrapper {
        max-height: 350px;
    }
    
    /* Restaurar tamaños normales cuando vuelve a una columna */
    #mainLayoutContainer.two-columns .fields-table {
        font-size: 12px;
    }
    
    #mainLayoutContainer.two-columns .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* TABS - MÁS COMPACTOS */
.tabs-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    overflow: hidden;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    background: white;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Panel dentro de tab-content sin border-radius propio */
.tab-content > .panel {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: none;
    animation: none;
    margin-bottom: 0;
}

/* Panel normal (fuera de tabs) mantiene todas las esquinas redondeadas */
.panel {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
    margin-bottom: 12px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 12px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

/* PDF CONTROLS - MÁS COMPACTOS */
.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 12px;
}

.page-info {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 5px 10px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Hacer más compacto en modo dos columnas */
#mainLayoutContainer.two-columns .pdf-controls {
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
}

#mainLayoutContainer.two-columns .page-info {
    font-size: 11px;
    padding: 4px 8px;
}

#mainLayoutContainer.two-columns .alert {
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

#mainLayoutContainer.two-columns .alert-icon {
    font-size: 16px;
}

#mainLayoutContainer.two-columns .panel-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

#mainLayoutContainer.two-columns .panel-title {
    font-size: 14px;
    gap: 8px;
}

#mainLayoutContainer.two-columns .panel-title-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* TEXT VIEWER */
.text-content-wrapper {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    max-height: 500px;
    overflow-y: auto;
}

.text-content {
    padding: 0;
}

.text-stats {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-size: 11px;
    color: var(--gray-700);
    flex-wrap: wrap;
    gap: 8px;
}

.text-lines {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
}

.text-line {
    display: flex;
    padding: 4px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.1s ease;
}

.text-line:hover {
    background: var(--gray-50);
}

.line-number {
    flex-shrink: 0;
    width: 45px;
    text-align: right;
    padding-right: 10px;
    padding-left: 10px;
    color: var(--gray-400);
    font-weight: 600;
    user-select: none;
    border-right: 2px solid var(--gray-200);
    font-size: 10px;
}

.line-content {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    color: var(--gray-800);
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* ALERT - MÁS COMPACTO */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 3px solid #3B82F6;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 3px solid #10B981;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 3px solid #F59E0B;
}

/* FIELDS TABLE - MÁS COMPACTO */
.fields-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    box-shadow: none;
    font-size: 12px;
}

.fields-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.fields-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.fields-table th:first-child {
    border-top-left-radius: 12px;
}

.fields-table th:last-child {
    border-top-right-radius: 12px;
}

.fields-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--gray-200);
}

.fields-table tbody tr:hover {
    background: var(--gray-50);
}

.fields-table tbody tr:last-child {
    border-bottom: none;
}

.fields-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.fields-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.fields-table td {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--gray-700);
    vertical-align: middle;
}

.fields-table input[type="text"],
.fields-table input[type="number"],
.fields-table select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    min-width: 80px;
}

.fields-table input[type="number"] {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.fields-table input[type="text"]:focus,
.fields-table input[type="number"]:focus,
.fields-table select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Wrapper para scroll horizontal en tablas */
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: white;
}

/* Wrapper inline para tablas con overflow-x */
div[style*="overflow-x: auto"] {
    border-radius: 12px;
    overflow: hidden;
}

#mainLayoutContainer.two-columns .table-wrapper {
    overflow-x: auto;
}

#mainLayoutContainer.two-columns .fields-table {
    min-width: 600px;
}

/* RESULTS TABLE - MÁS COMPACTO */
.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    box-shadow: none;
    margin-top: 0;
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.results-table th:first-child {
    border-top-left-radius: 12px;
}

.results-table th:last-child {
    border-top-right-radius: 12px;
}

.results-table tbody tr {
    transition: background 0.15s ease;
}

.results-table tbody tr:hover {
    background: var(--gray-50);
}

.results-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.results-table tbody tr:nth-child(even):hover {
    background: var(--gray-100);
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
}

.results-table td.filename-cell {
    font-weight: 600;
    color: var(--gray-900);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.results-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* COORDINATES DISPLAY */
.coords-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
}

/* UTILITIES */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* RESPONSIVE - MEJORADO PARA PANTALLAS PEQUEÑAS */
@media (max-width: 1024px) {
    body {
        padding: 8px;
    }
    
    .app-header {
        padding: 12px 16px;
    }
    
    .app-header-content h1 {
        font-size: 18px;
    }
    
    .header-logo {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .panel {
        padding: 12px;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .btn-icon {
        padding: 6px;
        min-width: 32px;
        height: 32px;
    }
    
    .fields-table th,
    .fields-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .fields-table input[type="text"],
    .fields-table input[type="number"],
    .fields-table select {
        padding: 5px 6px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px;
    }
    
    .app-header-content h1 {
        font-size: 16px;
        justify-content: center;
    }

    .upload-section {
        padding: 16px;
    }
    
    .upload-zone {
        padding: 24px 16px;
    }
    
    .panel-header {
        gap: 8px;
    }
    
    .panel-header .flex {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .text-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Hacer tabla responsive con scroll horizontal */
    .fields-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fields-table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 6px;
        font-size: 13px;
    }
    
    .app-header {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .app-header-content h1 {
        font-size: 15px;
        gap: 8px;
    }
    
    .app-header-content p {
        font-size: 12px;
    }
    
    .header-logo {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .btn span {
        font-size: 12px;
    }
    
    .panel {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .panel-title {
        font-size: 14px;
        gap: 8px;
    }
    
    .panel-title-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* ANIMATION UTILITIES */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* MODAL DE ALERTAS PERSONALIZADO */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.alert-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.alert-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-modal-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.alert-modal-icon.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.alert-modal-icon.error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.alert-modal-icon.warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.alert-modal-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.alert-modal-title {
    flex: 1;
}

.alert-modal-title h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 700;
}

.alert-modal-title p {
    font-size: 12px;
    color: #666;
}

.alert-modal-body {
    padding: 25px 30px;
}

.alert-modal-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
}

.alert-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.alert-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-modal-btn-cancel {
    background: #e0e0e0;
    color: #666;
}

.alert-modal-btn-cancel:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.alert-modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.alert-modal-btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.alert-modal-btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.alert-modal-btn-danger:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Deshabilitar botones del modal cuando están procesando */
.alert-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
