/* ==========================================
   VARIABLES CSS - DepositosCen
   ========================================== */
:root {
    --depositoscen-primary: #4b1ca4;
    --depositoscen-primary-dark: #3a1580;
    --depositoscen-primary-light: #6b2dd4;
    --depositoscen-secondary: #1e88e5;
    --depositoscen-success: #28a745;
    --depositoscen-danger: #dc3545;
    --depositoscen-warning: #ffc107;
    --depositoscen-bg-light: #f8f9fa;
    --depositoscen-bg-white: #ffffff;
    --depositoscen-text-dark: #212529;
    --depositoscen-text-muted: #6c757d;
    --depositoscen-border: #dee2e6;
    --depositoscen-radius: 12px;
    --depositoscen-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --depositoscen-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --depositoscen-transition: all 0.3s ease;
}

/* ==========================================
   CONTENEDOR PRINCIPAL - FONDO BLANCO
   ========================================== */
#depositoscen-page-wrapper {
    min-height: 100vh;
    background: #ffffff; /* FONDO BLANCO */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#depositoscen-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--depositoscen-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   HEADER
   ========================================== */
#depositoscen-header {
    background: linear-gradient(135deg, var(--depositoscen-primary) 0%, var(--depositoscen-primary-dark) 100%);
    border-radius: var(--depositoscen-radius) var(--depositoscen-radius) 0 0;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--depositoscen-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#depositoscen-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    #depositoscen-header-icon svg {
        color: white;
    }

#depositoscen-header-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#depositoscen-header-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   FORMULARIO
   ========================================== */
#depositoscen-form-container {
    background: var(--depositoscen-bg-white);
    border-radius: 0 0 var(--depositoscen-radius) var(--depositoscen-radius);
    padding: 30px 25px;
}

.depositoscen-form-group {
    margin-bottom: 25px;
}

.depositoscen-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--depositoscen-text-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.depositoscen-label-icon {
    width: 20px;
    height: 20px;
    color: var(--depositoscen-primary);
    flex-shrink: 0;
}

.depositoscen-label-small {
    display: block;
    font-weight: 600;
    color: var(--depositoscen-text-dark);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

/* ==========================================
   INPUTS Y SELECTS
   ========================================== */
.depositoscen-input,
.depositoscen-select,
.depositoscen-file {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--depositoscen-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--depositoscen-transition);
    background: var(--depositoscen-bg-white);
    color: var(--depositoscen-text-dark);
}

    .depositoscen-input:focus,
    .depositoscen-select:focus {
        outline: none;
        border-color: var(--depositoscen-primary);
        box-shadow: 0 0 0 3px rgba(75, 28, 164, 0.1);
    }

.depositoscen-input-disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.depositoscen-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b1ca4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.depositoscen-file {
    cursor: pointer;
    padding: 10px 15px;
}

    .depositoscen-file::file-selector-button {
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        background: var(--depositoscen-primary);
        color: white;
        cursor: pointer;
        font-size: 0.875rem;
        transition: var(--depositoscen-transition);
    }

        .depositoscen-file::file-selector-button:hover {
            background: var(--depositoscen-primary-dark);
        }

/* ==========================================
   SUBTIPO CON BOTÓN EDITAR
   ========================================== */
.depositoscen-subtipo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.depositoscen-btn-edit {
    padding: 8px 12px;
    background: var(--depositoscen-primary-light);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--depositoscen-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .depositoscen-btn-edit:hover {
        background: var(--depositoscen-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(75, 28, 164, 0.3);
    }

    .depositoscen-btn-edit svg {
        width: 16px;
        height: 16px;
    }

/* ==========================================
   PERIODO (GRID RESPONSIVO)
   ========================================== */
.depositoscen-periodo-section {
    background: var(--depositoscen-bg-light);
    border-radius: var(--depositoscen-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--depositoscen-border);
}

.depositoscen-periodo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--depositoscen-primary);
    margin-bottom: 15px;
    text-align: center;
}

.depositoscen-periodo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.depositoscen-select-small {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--depositoscen-border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: var(--depositoscen-transition);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%234b1ca4' d='M5 8L0 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

    .depositoscen-select-small:focus {
        outline: none;
        border-color: var(--depositoscen-primary);
        box-shadow: 0 0 0 3px rgba(75, 28, 164, 0.1);
    }

/* ==========================================
   BOTÓN SUBMIT
   ========================================== */
.depositoscen-btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--depositoscen-success) 0%, #218838 100%);
    border: none;
    border-radius: var(--depositoscen-radius);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--depositoscen-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

    .depositoscen-btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    }

    .depositoscen-btn-submit:active {
        transform: translateY(0);
    }

    .depositoscen-btn-submit svg {
        width: 20px;
        height: 20px;
    }

/* ==========================================
   MODAL (INSCRIPCIÓN)
   ========================================== */
.depositoscen-modal-content {
    border-radius: var(--depositoscen-radius);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.depositoscen-modal-header {
    background: linear-gradient(135deg, var(--depositoscen-primary) 0%, var(--depositoscen-primary-dark) 100%);
    color: white;
    border-radius: var(--depositoscen-radius) var(--depositoscen-radius) 0 0;
    padding: 20px 25px;
    border: none;
}

    .depositoscen-modal-header .modal-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
    }

.depositoscen-modal-icon {
    width: 24px;
    height: 24px;
}

.depositoscen-modal-body {
    padding: 30px 25px;
}

.depositoscen-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.depositoscen-modal-field {
    display: flex;
    flex-direction: column;
}

.depositoscen-modal-label {
    font-weight: 600;
    color: var(--depositoscen-text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.depositoscen-modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--depositoscen-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--depositoscen-transition);
}

    .depositoscen-modal-input:focus {
        outline: none;
        border-color: var(--depositoscen-primary);
        box-shadow: 0 0 0 3px rgba(75, 28, 164, 0.1);
    }

.depositoscen-modal-total {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--depositoscen-radius);
    text-align: center;
    border: 2px solid var(--depositoscen-border);
}

.depositoscen-modal-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--depositoscen-text-muted);
    margin-bottom: 8px;
    display: block;
}

.depositoscen-modal-total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--depositoscen-success);
}

.depositoscen-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--depositoscen-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.depositoscen-modal-btn-confirm {
    padding: 10px 20px;
    background: var(--depositoscen-success);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--depositoscen-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .depositoscen-modal-btn-confirm:hover {
        background: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    }

    .depositoscen-modal-btn-confirm svg {
        width: 16px;
        height: 16px;
    }

/* ==========================================
   RESPONSIVE - TABLETS
   ========================================== */
@media (max-width: 768px) {
    #depositoscen-page-wrapper {
        padding: 15px;
    }

    #depositoscen-header {
        padding: 25px 15px;
    }

    #depositoscen-header-title {
        font-size: 1.5rem;
    }

    #depositoscen-header-subtitle {
        font-size: 1.2rem;
    }

    #depositoscen-form-container {
        padding: 25px 20px;
    }

    .depositoscen-periodo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .depositoscen-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   RESPONSIVE - MÓVILES
   ========================================== */
@media (max-width: 480px) {
    #depositoscen-page-wrapper {
        padding: 10px;
    }

    #depositoscen-header {
        padding: 20px 15px;
    }

    #depositoscen-header-icon {
        width: 50px;
        height: 50px;
    }

        #depositoscen-header-icon svg {
            width: 28px;
            height: 28px;
        }

    #depositoscen-header-title {
        font-size: 1.3rem;
    }

    #depositoscen-header-subtitle {
        font-size: 1.1rem;
    }

    #depositoscen-form-container {
        padding: 20px 15px;
    }

    .depositoscen-form-group {
        margin-bottom: 20px;
    }

    .depositoscen-label {
        font-size: 0.9rem;
    }

    .depositoscen-input,
    .depositoscen-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .depositoscen-subtipo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .depositoscen-btn-edit {
        width: 100%;
        justify-content: center;
    }

    .depositoscen-periodo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .depositoscen-btn-submit {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .depositoscen-modal-body {
        padding: 20px 15px;
    }

    .depositoscen-modal-total-value {
        font-size: 1.6rem;
    }

    .depositoscen-modal-footer {
        flex-direction: column;
    }

    .depositoscen-modal-btn-confirm {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes depositoscen-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#depositoscen-container {
    animation: depositoscen-fadeIn 0.5s ease-out;
}

/* ==========================================
   SCROLLBAR PERSONALIZADO
   ========================================== */
#depositoscen-form-container::-webkit-scrollbar {
    width: 8px;
}

#depositoscen-form-container::-webkit-scrollbar-track {
    background: var(--depositoscen-bg-light);
    border-radius: 4px;
}

#depositoscen-form-container::-webkit-scrollbar-thumb {
    background: var(--depositoscen-primary);
    border-radius: 4px;
}

    #depositoscen-form-container::-webkit-scrollbar-thumb:hover {
        background: var(--depositoscen-primary-dark);
    }
