:root {
    --primary-color: #8F0909; /* ROJO */
    --secondary-color: #8F0909; /* ROJO */
    --accent-color: #8F0909; /* ROJO */
    --text-color: #FFFFFF; /* BLANCO */
    --bg-color: #000000; /* NEGRO */
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(143, 9, 9, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(143, 9, 9, 0.3);
}

/* Resto del CSS permanece igual, pero con estos nuevos colores */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-color), #1a1a2e);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.neon-text {
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(110, 72, 170, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(110, 72, 170, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(110, 72, 170, 0.6), 0 0 30px rgba(157, 80, 187, 0.4);
    }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 10px;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.upload-section, .documents-list {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.btn-sign {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sign:hover {
    background: #3a5fc8;
}

.sign-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pdf-viewer {
    height: 600px;
    overflow: hidden;
}

.signature-pad {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: crosshair;
}

.signature-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

.signature-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .sign-container {
        grid-template-columns: 1fr;
    }
    
    .neon-text {
        font-size: 2rem;
    }
}

.banner-image {
    width: 90%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(143, 9, 9, 0.5);
}

/* Para móviles */
@media (max-width: 768px) {
    .banner-image {
        max-height: 150px;
        width: auto; /* Mantiene proporción en móviles */
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner-image {
        max-height: 200px;
    }
}

/* Para escritorio */
@media (min-width: 1025px) {
    .banner-image {
        max-height: 250px;
    }
}

body { font-family: sans-serif; margin: 0; padding: 1rem; background: #f8f9fa; }
#pdfViewer canvas { display: block; margin: 0 auto 1rem auto; width: 100% !important; height: auto !important; max-width: 100%; }
#pdfViewer { width: 100%; max-height: 70vh; overflow-y: scroll; border: 1px solid #ccc; margin-bottom: 1rem; background: white; }
.btn { padding: 10px 15px; margin: 5px; border: none; border-radius: 4px; cursor: pointer; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-secondary { background: var(--secondary-color); color: white; }
.signature-pad { border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: 8px; background: rgba(255, 255, 255, 0.05); cursor: crosshair; }
.signature-preview { margin-top: 20px; padding: 15px; background: rgba(0, 0, 0, 0.2); border-radius: 8px; }

/* Añade esto al final del CSS */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .glassmorphism {
        padding: 15px;
        margin-bottom: 15px;
    }
    .sign-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    #signature-pad {
        width: 100% !important;
        height: 150px !important; /* Firma más pequeña */
    }
    .btn-gradient, .btn-clear {
        padding: 10px 15px;
        font-size: 14px;
    }
    .pdf-container {
        height: 50vh !important; /* Reduce altura del PDF */
    }
}