/* ========================================
   UNIVERSIDAD DORADOS - DASHBOARD
   Tema Blanco con Dorado
   ======================================== */

/* ===== CONTENEDOR PRINCIPAL ===== */
.dashboard-admin-container {
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, #fdfcfa 0%, #f9f6f0 50%, #f5f0e6 100%);
}

/* ===== HEADER ===== */
.dashboard-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 248, 232, 0.9) 100%);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title-section i {
    font-size: 2rem;
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title-section h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e1a;
}

.header-title-section p {
    margin: 0;
    color: #8b7355;
    font-size: 0.85rem;
}

/* ===== BOTON ACTUALIZAR ===== */
.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-refresh i.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== TABS / PESTAÑAS ===== */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #5d4e37;
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.tab-btn:hover {
    background: rgba(184, 134, 11, 0.1);
    color: #3d2e1a;
    border-color: rgba(184, 134, 11, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* ===== LOADING ===== */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(184, 134, 11, 0.2);
    border-top-color: #d4a853;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    color: #5d4e37;
}

/* ===== MÉTRICAS RESUMEN ===== */
.metrics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(184, 134, 11, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.05);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.3);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #cd853f 0%, #daa520 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #8b7355 0%, #a0826d 100%);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e1a;
}

.metric-label {
    font-size: 0.8rem;
    color: #8b7355;
}

/* ===== GRID DE GRÁFICOS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
}

/* ===== TARJETAS DE GRÁFICOS ===== */
.chart-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(184, 134, 11, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(184, 134, 11, 0.05);
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 134, 11, 0.12);
    border-color: rgba(184, 134, 11, 0.25);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(253, 248, 232, 0.5) 0%, rgba(249, 240, 212, 0.5) 100%);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.chart-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3d2e1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h3 i {
    color: #b8860b;
}

.btn-expand {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 134, 11, 0.1);
    border: none;
    border-radius: 8px;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    color: #fff;
}

.chart-body {
    padding: 1rem;
    min-height: 220px;
}

/* ===== GRÁFICO DONUT ===== */
.donut-chart-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment {
    transition: all 0.5s ease;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-total {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e1a;
}

.donut-label {
    font-size: 0.7rem;
    color: #8b7355;
}

/* ===== LEYENDA DE GRÁFICOS ===== */
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem;
    background: rgba(253, 248, 232, 0.5);
    border-radius: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
    font-size: 0.8rem;
    color: #5d4e37;
}

.legend-value {
    font-weight: 600;
    color: #3d2e1a;
}

/* ===== BARRAS HORIZONTALES ===== */
.horizontal-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bar-item {
    display: grid;
    grid-template-columns: 90px 1fr 35px;
    align-items: center;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.75rem;
    color: #5d4e37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    height: 20px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.bar-value {
    font-weight: 600;
    color: #3d2e1a;
    text-align: right;
    font-size: 0.85rem;
}

/* ===== BARRAS VERTICALES ===== */
.vertical-bars-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 160px;
    padding-top: 15px;
}

.vbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 50px;
}

.vbar-fill {
    width: 100%;
    max-width: 30px;
    border-radius: 6px 6px 0 0;
    transition: height 0.8s ease;
    min-height: 5px;
}

.vbar-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3d2e1a;
    margin-top: 0.4rem;
}

.vbar-label {
    font-size: 0.6rem;
    color: #8b7355;
    text-align: center;
    margin-top: 0.2rem;
    word-break: break-all;
}

/* ===== SIN DATOS ===== */
.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    color: #a89a8a;
}

.no-data i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* ===== VISTA INDIVIDUAL ===== */
.individual-view {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.view-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.view-header h2 i {
    color: #b8860b;
}

.view-header p {
    color: #8b7355;
    font-size: 0.9rem;
}

/* ===== CONTENEDOR DETALLADO ===== */
.detailed-chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(184, 134, 11, 0.15);
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.08);
}

.detailed-chart-container.horizontal {
    flex-direction: column;
}

/* ===== DONUT GRANDE ===== */
.large-chart-wrapper {
    flex: 0 0 250px;
}

.large-donut-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.large-donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.animated-segment {
    animation: drawSegment 1s ease forwards;
}

@keyframes drawSegment {
    from { stroke-dasharray: 0 100; }
}

.large-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.large-donut-total {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d2e1a;
}

.large-donut-label {
    font-size: 0.9rem;
    color: #8b7355;
}

/* ===== LEYENDA DETALLADA ===== */
.detailed-legend {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detailed-legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(253, 248, 232, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.detailed-legend-item:hover {
    background: rgba(184, 134, 11, 0.1);
    transform: translateX(5px);
    border-color: rgba(184, 134, 11, 0.2);
}

.legend-indicator {
    width: 14px;
    height: 14px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-category {
    font-size: 0.9rem;
    color: #5d4e37;
}

.legend-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3d2e1a;
}

.stat-percentage {
    font-size: 0.8rem;
    color: #8b7355;
}

/* ===== BARRAS GRANDES ===== */
.large-bars-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.large-bar-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
}

.large-bar-label {
    font-size: 0.9rem;
    color: #5d4e37;
    text-align: right;
}

.large-bar-track {
    height: 35px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.large-bar-fill {
    height: 100%;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    min-width: 50px;
}

.animated-bar {
    animation: growBar 1s ease forwards;
}

@keyframes growBar {
    from { width: 0 !important; }
}

.bar-inner-value {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== GRÁFICO FUNNEL ===== */
.funnel-chart {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 0.5rem;
}

.funnel-item {
    width: 100% !important;
    transition: all 0.3s ease;
}

.funnel-bar {
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.funnel-bar:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
}

.funnel-label {
    font-weight: 500;
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.funnel-value {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== GRÁFICO DE CARRERAS ===== */
.carrera-chart-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 0.5rem;
}

.carrera-bar-item {
    display: grid;
    grid-template-columns: 180px 1fr 50px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.carrera-bar-label {
    font-size: 0.8rem;
    color: #5d4e37;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carrera-bar-track {
    height: 28px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.carrera-bar-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 0.8s ease;
    min-width: 8px;
}

.carrera-bar-value {
    font-weight: 700;
    color: #3d2e1a;
    font-size: 0.9rem;
    text-align: left;
}

/* ===== TIMELINE (legacy) ===== */
.timeline-chart {
    width: 100%;
    position: relative;
}

.timeline-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding-bottom: 25px;
}

.timeline-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 90px;
}

.timeline-bar-container {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.timeline-bar {
    width: 45px;
    border-radius: 8px 8px 0 0;
    transition: height 0.8s ease;
    min-height: 10px;
}

.animated-vbar {
    animation: growVBar 1s ease forwards;
}

@keyframes growVBar {
    from { height: 0 !important; }
}

.timeline-bar-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3d2e1a;
    margin-top: 0.4rem;
}

.timeline-bar-label {
    font-size: 0.75rem;
    color: #8b7355;
    margin-top: 0.5rem;
    text-align: center;
}

.timeline-line {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(184, 134, 11, 0.2);
}

/* ===== SIN DATOS GRANDE ===== */
.no-data-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #a89a8a;
    width: 100%;
}

.no-data-large i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-data-large h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #8b7355;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dashboard-admin-container {
        padding: 0.75rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title-section {
        flex-direction: column;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-chart-container {
        padding: 1rem;
    }
    
    .large-bar-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .large-bar-label {
        text-align: left;
    }
    
    .carrera-bar-item {
        grid-template-columns: 120px 1fr 45px;
        gap: 0.5rem;
    }
    
    .carrera-bar-label {
        font-size: 0.7rem;
    }
    
    .timeline-bars {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0 1rem 25px;
    }
    
    .timeline-bar-group {
        min-width: 70px;
    }
}

/* ========================================
   PANTALLA DE BIENVENIDA (NO ADMIN)
   ======================================== */

.welcome-container {
    min-height: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #fdfcfa 0%, #f9f6f0 50%, #f5f0e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-header {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(212, 168, 83, 0.15) 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

.welcome-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 248, 232, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(184, 134, 11, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(184, 134, 11, 0.3);
    animation: pulse-welcome 2s ease-in-out infinite;
}

@keyframes pulse-welcome {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(184, 134, 11, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(184, 134, 11, 0.35), 0 10px 35px rgba(0, 0, 0, 0.15);
    }
}

.welcome-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.welcome-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #3d2e1a;
}

.welcome-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #b8860b;
    font-weight: 600;
    letter-spacing: 1px;
}

.welcome-content {
    padding: 2rem;
}

.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-message i {
    font-size: 3rem;
    color: #d4a853;
    margin-bottom: 1rem;
    display: block;
}

.welcome-message h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #3d2e1a;
    font-weight: 600;
}

.welcome-message p {
    margin: 0;
    color: #8b7355;
    font-size: 1rem;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(253, 248, 232, 0.5);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.2);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.feature-text h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #3d2e1a;
}

.feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #8b7355;
}

.welcome-footer {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(253, 248, 232, 0.5) 0%, rgba(249, 240, 212, 0.5) 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.1);
    text-align: center;
}

.welcome-footer p {
    margin: 0;
    color: #8b7355;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.welcome-footer i {
    color: #b8860b;
}

/* ===== RESPONSIVE WELCOME ===== */
@media (max-width: 768px) {
    .welcome-container {
        padding: 1rem;
    }
    
    .welcome-header {
        padding: 1.5rem 1rem;
    }
    
    .welcome-logo {
        width: 80px;
        height: 80px;
    }
    
    .welcome-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-content {
        padding: 1.5rem;
    }
    
    .welcome-message i {
        font-size: 2.5rem;
    }
    
    .welcome-message h2 {
        font-size: 1.25rem;
    }
    
    .feature-item {
        padding: 0.75rem 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
}

/* ========================================
   ACCESOS RÁPIDOS - TARJETAS
   ======================================== */

.quick-access-section {
    margin-top: 1.5rem;
}

.quick-access-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3d2e1a;
    margin-bottom: 1.25rem;
    position: relative;
}

.quick-access-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #d4a853);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 16px;
    border: 1px solid rgba(184, 134, 11, 0.15);
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #d4a853);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.2);
    border-color: rgba(184, 134, 11, 0.3);
}

.quick-access-card:hover::before {
    transform: scaleX(1);
}

.qac-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
    transition: all 0.3s ease;
}

.quick-access-card:hover .qac-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

.qac-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.qac-content {
    flex: 1;
    margin-bottom: 1rem;
}

.qac-content h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3d2e1a;
}

.qac-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #8b7355;
    line-height: 1.4;
}

.qac-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
}

.qac-action span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8860b;
    transition: color 0.3s ease;
}

.qac-action i {
    font-size: 1rem;
    color: #b8860b;
    transition: all 0.3s ease;
}

.quick-access-card:hover .qac-action span {
    color: #8b6914;
}

.quick-access-card:hover .qac-action i {
    transform: translateX(5px);
    color: #8b6914;
}

/* ===== RESPONSIVE QUICK ACCESS ===== */
@media (max-width: 768px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-card {
        padding: 1rem;
    }
    
    .qac-icon {
        width: 50px;
        height: 50px;
    }
    
    .qac-icon i {
        font-size: 1.25rem;
    }
    
    .qac-content h4 {
        font-size: 1rem;
    }
}
