﻿/* ========================================
   DEPOSITOS CN - VARIABLES
   ======================================== */
:root {
    --depositoscn-primary: #4b1ca4;
    --depositoscn-primary-dark: #3a1580;
    --depositoscn-primary-light: #6b2dd4;
    --depositoscn-secondary: #d60739;
    --depositoscn-secondary-dark: #b00530;
    --depositoscn-accent: #4facfe;
    --depositoscn-accent-dark: #0093ff;
    --depositoscn-bg-light: #f8f9fa;
    --depositoscn-bg-white: #ffffff;
    --depositoscn-text-dark: #212529;
    --depositoscn-text-muted: #6c757d;
    --depositoscn-border-radius: 16px;
    --depositoscn-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --depositoscn-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --depositoscn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.depositoscn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    min-height: calc(100vh - 120px);
}

/* ========================================
   HEADER CON BOTÓN DE AYUDA
   ======================================== */
.depositoscn-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.depositoscn-btn-help {
    background: linear-gradient(135deg, var(--depositoscn-secondary), var(--depositoscn-secondary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--depositoscn-transition);
    box-shadow: var(--depositoscn-shadow);
}

.depositoscn-btn-help:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--depositoscn-shadow-hover);
}

/* ========================================
   CARD PRINCIPAL
   ======================================== */
.depositoscn-main-card {
    background: var(--depositoscn-bg-white);
    border-radius: var(--depositoscn-border-radius);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--depositoscn-shadow);
    text-align: center;
    animation: depositoscn-fade-in-up 0.6s ease-out;
}

.depositoscn-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--depositoscn-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--depositoscn-primary), var(--depositoscn-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.depositoscn-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--depositoscn-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ========================================
   BOTONES PRINCIPALES
   ======================================== */
.depositoscn-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 450px;
    margin: 0 auto;
}

.depositoscn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1.5rem 2.5rem;
    border: none;
    border-radius: var(--depositoscn-border-radius);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--depositoscn-transition);
    box-shadow: var(--depositoscn-shadow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.depositoscn-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.depositoscn-btn:hover::before {
    width: 300px;
    height: 300px;
}

.depositoscn-btn-primary {
    background: linear-gradient(135deg, var(--depositoscn-primary), var(--depositoscn-primary-light));
    color: white;
}

.depositoscn-btn-primary:hover {
    background: linear-gradient(135deg, var(--depositoscn-primary-dark), var(--depositoscn-primary));
    transform: translateY(-4px);
    box-shadow: var(--depositoscn-shadow-hover);
}

.depositoscn-btn-secondary {
    background: linear-gradient(135deg, var(--depositoscn-text-muted), #868e96);
    color: white;
}

.depositoscn-btn-secondary:hover {
    background: linear-gradient(135deg, #495057, var(--depositoscn-text-muted));
    transform: translateY(-4px);
    box-shadow: var(--depositoscn-shadow-hover);
}

/* ========================================
   CARDS DE OPCIONES
   ======================================== */
.depositoscn-opciones-card,
.depositoscn-lista-card {
    background: var(--depositoscn-bg-white);
    border-radius: var(--depositoscn-border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--depositoscn-shadow);
    animation: depositoscn-fade-in-up 0.6s ease-out;
}

.depositoscn-opciones-grid,
.depositoscn-lista-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   BOTONES DE OPCIONES
   ======================================== */
.depositoscn-btn-opcion,
.depositoscn-lista-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 3rem 2rem;
    border-radius: var(--depositoscn-border-radius);
    text-decoration: none;
    transition: var(--depositoscn-transition);
    box-shadow: var(--depositoscn-shadow);
    position: relative;
    overflow: hidden;
}

.depositoscn-btn-opcion::before,
.depositoscn-lista-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.depositoscn-btn-opcion:hover::before,
.depositoscn-lista-link:hover::before {
    opacity: 1;
}

.depositoscn-btn-opcion:hover,
.depositoscn-lista-link:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--depositoscn-shadow-hover);
}

/* Colores específicos */
.depositoscn-opcion-region,
.depositoscn-lista-region {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.depositoscn-opcion-distrito,
.depositoscn-lista-distrito {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.depositoscn-opcion-icon,
.depositoscn-lista-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: var(--depositoscn-transition);
}

.depositoscn-btn-opcion:hover .depositoscn-opcion-icon,
.depositoscn-lista-link:hover .depositoscn-lista-icon {
    transform: rotate(360deg) scale(1.1);
}

.depositoscn-opcion-text,
.depositoscn-lista-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes depositoscn-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .depositoscn-container {
        padding: 2rem 1.25rem;
    }

    .depositoscn-title {
        font-size: 2.25rem;
    }

    .depositoscn-subtitle {
        font-size: 1.75rem;
    }

    .depositoscn-opciones-grid,
    .depositoscn-lista-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 768px) {
    .depositoscn-container {
        padding: 1.5rem 1rem;
    }

    .depositoscn-main-card {
        padding: 2.5rem 1.5rem;
    }

    .depositoscn-title {
        font-size: 2rem;
    }

    .depositoscn-subtitle {
        font-size: 1.5rem;
    }

    .depositoscn-actions {
        max-width: 100%;
    }

    .depositoscn-btn {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .depositoscn-opciones-grid,
    .depositoscn-lista-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .depositoscn-btn-opcion,
    .depositoscn-lista-link {
        padding: 2.5rem 1.5rem;
    }

    .depositoscn-opcion-icon,
    .depositoscn-lista-icon {
        width: 70px;
        height: 70px;
    }

    .depositoscn-opcion-text,
    .depositoscn-lista-text {
        font-size: 1.25rem;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ======================================== */
@media (max-width: 480px) {
    .depositoscn-container {
        padding: 1rem 0.75rem;
    }

    .depositoscn-main-card {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .depositoscn-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .depositoscn-subtitle {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }

    .depositoscn-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        gap: 0.75rem;
    }

    .depositoscn-btn svg {
        width: 18px;
        height: 18px;
    }

    .depositoscn-opciones-card,
    .depositoscn-lista-card {
        padding: 2rem 1.25rem;
    }

    .depositoscn-btn-opcion,
    .depositoscn-lista-link {
        padding: 2rem 1.25rem;
    }

    .depositoscn-opcion-icon,
    .depositoscn-lista-icon {
        width: 60px;
        height: 60px;
    }

    .depositoscn-opcion-text,
    .depositoscn-lista-text {
        font-size: 1.125rem;
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */
.depositoscn-btn:focus,
.depositoscn-btn-opcion:focus,
.depositoscn-lista-link:focus {
    outline: 3px solid var(--depositoscn-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   SCROLLBAR PERSONALIZADO (WEBKIT)
   ======================================== */
.depositoscn-container::-webkit-scrollbar {
    width: 8px;
}

.depositoscn-container::-webkit-scrollbar-track {
    background: var(--depositoscn-bg-light);
}

.depositoscn-container::-webkit-scrollbar-thumb {
    background: var(--depositoscn-primary-light);
    border-radius: 10px;
}

.depositoscn-container::-webkit-scrollbar-thumb:hover {
    background: var(--depositoscn-primary);
}
