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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0047B3;
    min-height: 100vh;
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 30px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Tarjeta de Bienvenida */
.welcome-card {
    background: white;
    margin: 120px 15px 20px 15px;
    padding: 25px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.welcome-text {
    font-size: 20px;
    font-weight: 600;
    color: #283593;
    text-align: left;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    z-index: 10;
    margin: 0;
}

.welcome-text span {
    color: #0047B3;
    font-weight: 700;
}

.welcome-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.welcome-image-ia {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-image-ia:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 71, 179, 0.3);
}

.bottom-images-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: space-between;
}

.bottom-image {
    width: 48%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 71, 179, 0.3);
}

.welcome-image-zones {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-image-zones:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0047B3;
}

.user-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    border: 3px solid #0047B3;
}

.user-name {
    font-size: 24px;
    font-weight: 700;
    color: #283593;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-icon {
    width: 32px;
    height: 32px;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #D32F2F;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.logout-btn {
    background: #FF0000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.logout-icon {
    width: 18px;
    height: 18px;
}

.dashboard-content {
    flex: 1;
    padding: 20px 30px 100px 30px; /* Espacio inferior para la barra de navegación */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 100px; /* Espacio para el header fijo */
}

/* Barra de navegación inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px 20px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 30px 30px 0 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
    color: #9E9E9E;
}

.nav-item.active {
    color: #FF6B35;
}

.nav-item:not(.emergency):hover {
    transform: translateY(-3px);
}

.nav-icon {
    font-size: 28px;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    color: currentColor;
}

/* Botón de emergencia especial */
.nav-item.emergency {
    background: #FF0000;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    padding: 0;
    margin-top: -60px;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5);
    border: 8px solid white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item.emergency:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.6);
}

.nav-item.emergency:active {
    transform: scale(0.95);
}

.nav-icon-emergency {
    font-size: 38px;
    color: white;
}

/* Animación de pulso para el botón de emergencia */
@keyframes pulse {
    0% {
        box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5), 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5), 0 0 0 15px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5), 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.nav-item.emergency {
    animation: pulse 2s infinite;
}

/* Modal de emergencia personalizado */
.emergency-modal-container {
    background: white;
    border-radius: 30px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.emergency-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.emergency-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.emergency-close-btn svg {
    width: 100%;
    height: 100%;
}

.emergency-options {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.emergency-option {
    background: #F5F5F5;
    border: 2px solid #D0D0D0;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: none;
    width: 240px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.emergency-option:active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

.emergency-option img {
    width: 100%;
    height: auto;
    display: block;
}

/* Flechas animadas */
.emergency-arrows {
    position: absolute;
    bottom: -220px;
    left: 52%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.arrows-animation {
    width: 100%;
    height: auto;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

.dashboard-content h1 {
    color: #283593;
    font-size: 32px;
    margin-bottom: 20px;
}

.dashboard-content p {
    color: #666;
    font-size: 18px;
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .user-name {
        font-size: 20px;
    }

    .header-actions {
        gap: 15px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
    }

    .logout-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .dashboard-content {
        padding: 20px 20px 100px 20px;
        margin-top: 95px;
    }

    .dashboard-content h1 {
        font-size: 24px;
    }

    .dashboard-content p {
        font-size: 16px;
    }

    .bottom-nav {
        padding: 10px 15px 18px 15px;
    }

    .nav-item {
        padding: 6px 10px;
    }

    .nav-icon {
        font-size: 26px;
    }

    .nav-label {
        font-size: 11px;
    }

    .nav-item.emergency {
        width: 80px;
        height: 80px;
        margin-top: -50px;
        border-width: 7px;
    }

    .nav-icon-emergency {
        font-size: 34px;
    }

    .emergency-modal-container {
        padding: 25px;
        min-height: 350px;
    }

    .emergency-option {
        width: 200px;
        padding: 18px;
    }

    .emergency-arrows {
        width: 100px;
        height: 100px;
        bottom: -190px;
    }
}

@media (max-width: 480px) {
    .user-profile {
        gap: 10px;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .user-name {
        font-size: 18px;
    }

    .logout-btn span {
        display: none;
    }

    .logout-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .bottom-nav {
        padding: 8px 10px 15px 10px;
    }

    .nav-item {
        padding: 5px 8px;
        gap: 4px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 10px;
    }

    .nav-item.emergency {
        width: 70px;
        height: 70px;
        margin-top: -45px;
        border-width: 6px;
    }

    .nav-icon-emergency {
        font-size: 30px;
    }

    .emergency-modal-container {
        padding: 20px;
        max-width: 95%;
        min-height: 300px;
    }

    .emergency-options {
        gap: 15px;
    }

    .emergency-option {
        width: 170px;
        padding: 15px;
    }

    .emergency-close-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .emergency-arrows {
        width: 80px;
        height: 80px;
        bottom: -160px;
    }
}

/* Modal de sección en desarrollo */
.development-modal-container {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
    position: relative;
    text-align: center;
}

.development-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.development-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.development-close-btn svg {
    width: 100%;
    height: 100%;
}

.development-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.development-icon {
    font-size: 60px;
    margin-bottom: 10px;
    color: #0047B3;
}

.development-icon i {
    font-size: 60px;
}

.development-title {
    color: #0047B3;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.development-message {
    color: #333;
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.development-submessage {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.development-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F0F7FF;
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid #E3F2FD;
    margin-top: 10px;
}

.tool-icon {
    font-size: 24px;
    color: #0047B3;
}

.tool-icon i {
    font-size: 24px;
}

.tool-text {
    color: #0047B3;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 480px) {
    .development-modal-container {
        padding: 30px 25px;
        max-width: 95%;
    }
    
    .development-icon {
        font-size: 50px;
    }
    
    .development-icon i {
        font-size: 50px;
    }
    
    .development-title {
        font-size: 24px;
    }
    
    .development-message {
        font-size: 16px;
    }
    
    .development-submessage {
        font-size: 14px;
    }
    
    .development-tools {
        padding: 12px 20px;
    }
    
    .tool-text {
        font-size: 14px;
    }
}

/* Estilos para Dashboard de Brigadas */
.brigada-section {
    margin-top: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
    margin-top: 0;
    padding-left: 10px;
}

.ver-todas-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 10px;
}

.ver-todas-btn:hover {
    opacity: 0.8;
}

.main-card {
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #E9ECEF;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #FF6B35;
}

.task-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.task-icon.camera {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.task-icon.warning {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
}

.task-icon.stairs {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.task-icon.extinguisher {
    background: linear-gradient(135deg, #FF0000 0%, #D32F2F 100%);
    color: white;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.task-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.task-btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.task-btn:hover {
    background: #F7931E;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.task-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .main-card {
        padding: 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .task-card {
        padding: 15px;
        gap: 12px;
    }

    .task-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .task-title {
        font-size: 15px;
    }

    .progress-text {
        font-size: 12px;
    }

    .task-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 18px;
        border-radius: 18px;
    }

    .section-title {
        font-size: 22px;
    }

    .task-card {
        flex-wrap: wrap;
        padding: 15px;
    }

    .task-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .task-content {
        flex: 1;
        min-width: calc(100% - 60px);
    }

    .task-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .task-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* Estilos para Estudiantes Brigadistas */
.brigadistas-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.loading-message i {
    font-size: 24px;
    color: #0047B3;
}

.brigadista-card {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #0047B3;
}

.brigadista-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 179, 0.2);
}

.brigadista-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0047B3;
    flex-shrink: 0;
}

.brigadista-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid #0047B3;
    flex-shrink: 0;
}

.brigadista-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brigadista-nombre {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.brigadista-detalles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brigadista-rol {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0047B3;
    font-weight: 500;
}

.brigadista-rol i {
    font-size: 16px;
}

.brigadista-rol.jefe {
    color: #FF6B35;
}

.brigadista-rol.jefe i {
    color: #FF6B35;
}

.brigadista-grado {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.brigadista-grado::before {
    content: "• ";
    margin: 0 4px;
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-message i {
    font-size: 48px;
    color: #CCC;
    margin-bottom: 15px;
}

.empty-message p {
    font-size: 16px;
    margin: 0;
}

.ver-mas-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 13px;
    background: white;
    color: #0047B3;
    border: 2px solid #0047B3;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ver-mas-btn:hover {
    background: #0047B3;
    color: white;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 24px;
    }

    .ver-todas-btn {
        font-size: 14px;
    }

    .brigadista-card {
        padding: 12px;
        gap: 12px;
    }

    .brigadista-avatar,
    .brigadista-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .brigadista-nombre {
        font-size: 15px;
    }

    .brigadista-rol {
        font-size: 13px;
    }

    .brigadista-grado {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .brigadista-card {
        flex-wrap: nowrap;
    }

    .brigadista-avatar,
    .brigadista-avatar-placeholder {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .brigadista-info {
        flex: 1;
        min-width: 0;
    }

    .brigadista-nombre {
        font-size: 14px;
    }

    .brigadista-detalles {
        flex-wrap: wrap;
    }

    .brigadista-rol {
        font-size: 12px;
    }

    .brigadista-grado {
        font-size: 11px;
    }
}

/* ===== Cards de acción brigada ===== */
.brigada-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brigada-action-card {
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brigada-action-card:hover { transform: translateY(-3px); }
.brigada-action-card:active { transform: scale(0.98); }

/* Card blanca - Continuar nivel */
.card-niveles {
    background: white;
    box-shadow: 0 6px 0 #C8D0D8, 0 8px 20px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.card-niveles-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-niveles-top .brigada-action-icon {
    background: #EEF4FF;
    color: #0047B3;
}

.card-niveles-top .brigada-action-info h3 { color: #1A1A2E; }
.card-niveles-top .brigada-action-info p  { color: #666; }
.card-niveles-top .brigada-action-arrow   { color: #BDC3C7; }

/* Barra de progreso dentro de la card */
.card-progreso-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-progreso-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.card-progreso-labels span:last-child { color: #0047B3; }

.card-progreso-bar {
    width: 100%;
    height: 10px;
    background: #E8ECF0;
    border-radius: 10px;
    overflow: hidden;
}

.card-progreso-fill {
    height: 100%;
    background: #0047B3;
    border-radius: 10px;
    transition: width 0.6s ease;
    width: 0%;
}

/* Card naranja - Canjear puntos */
.card-tienda {
    background: #FF6B35;
    box-shadow: 0 6px 0 #C04A00, 0 8px 20px rgba(255, 107, 53, 0.35);
}

.card-tienda .brigada-action-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-tienda .brigada-action-info h3 { color: white; }
.card-tienda .brigada-action-info p  { color: rgba(255,255,255,0.85); }
.card-tienda .brigada-action-arrow   { color: rgba(255,255,255,0.7); }

.brigada-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.brigada-action-info { flex: 1; }

.brigada-action-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.brigada-action-info p {
    font-size: 13px;
    margin: 0;
}

.brigada-action-arrow { font-size: 16px; }

.brigada-action-badge {
    position: absolute;
    top: 14px;
    right: 42px;
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.card-niveles .brigada-action-badge {
    background: #EEF4FF;
    color: #0047B3;
}

/* ===== Podio de brigadistas ===== */
.podio-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 20px;
    margin-bottom: 8px;
}

.podio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 100px;
}

.podio-medalla {
    font-size: 22px;
    line-height: 1;
}

.podio-avatar {
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #E8ECF0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.podio-alto  { width: 64px; height: 64px; border-color: #FFD700; }
.podio-medio { width: 54px; height: 54px; border-color: #C0C0C0; }
.podio-bajo  { width: 48px; height: 48px; border-color: #CD7F32; }

.podio-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podio-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1A1A2E;
}

.podio-alto  .podio-avatar-placeholder { font-size: 20px; }
.podio-medio .podio-avatar-placeholder { font-size: 17px; }
.podio-bajo  .podio-avatar-placeholder { font-size: 15px; }

.podio-nombre {
    font-size: 12px;
    font-weight: 600;
    color: #1A1A2E;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podio-puntos-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #FFF8E1;
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #B8860B;
}

.podio-puntos-badge i {
    font-size: 10px;
    color: #FFD700;
}

.podio-base {
    width: 100%;
    text-align: center;
    border-radius: 10px 10px 0 0;
    padding: 6px 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    margin-top: 4px;
}

.podio-base-1 { background: #FFD700; color: #7A5800; height: 50px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.podio-base-2 { background: #C0C0C0; color: #555; height: 36px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.podio-base-3 { background: #CD7F32; color: white; height: 26px; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }

/* Lista resto */
.brigadistas-lista-resto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* Badge de puntos en tarjeta lista */
.brigadista-pts-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #FFF8E1;
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #B8860B;
    flex-shrink: 0;
}

.brigadista-pts-badge i {
    font-size: 10px;
    color: #FFD700;
}

.brigadista-posicion {
    width: 28px;
    height: 28px;
    background: #0047B3;
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.podio-nivel-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0047B3;
    background: #EEF4FF;
    border-radius: 20px;
    padding: 2px 8px;
}

/* ===== COFRE DIARIO ===== */
.daily-reward-section {
    margin-bottom: 20px;
}

.daily-reward-card {
    background: linear-gradient(135deg, #FF6B35, #FF8F00);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.daily-reward-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: rewardShine 3s ease-in-out infinite;
}

@keyframes rewardShine {
    0%, 100% { transform: translate(-30%, -30%); }
    50% { transform: translate(30%, 30%); }
}

.daily-reward-card.opening {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255,107,53,0.5);
}

.daily-reward-section.claimed .daily-reward-card {
    background: linear-gradient(135deg, #78909C, #607D8B);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.daily-reward-section.claimed .daily-reward-card::before {
    display: none;
}

.daily-reward-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.daily-reward-icon.reward-shake {
    animation: iconShake 2.5s ease-in-out infinite;
}

@keyframes iconShake {
    0%, 80%, 100% { transform: rotate(0); }
    85% { transform: rotate(-8deg); }
    90% { transform: rotate(8deg); }
    95% { transform: rotate(-5deg); }
}

.daily-reward-icon.reward-open-anim {
    animation: iconOpen 0.6s ease forwards;
}

@keyframes iconOpen {
    0% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.5) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

.daily-reward-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.daily-reward-info h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.daily-reward-info p {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin: 0;
}

.daily-reward-btn {
    background: white;
    color: #FF6B35;
    border: none;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.daily-reward-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.daily-reward-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.daily-reward-btn:disabled {
    cursor: default;
}

.daily-reward-btn.claimed {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Partículas de confetti */
.reward-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particleFly 1s ease-out forwards;
    z-index: 10;
    pointer-events: none;
}

@keyframes particleFly {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-80px) translateX(var(--x, 0px)) scale(0); opacity: 0; }
}

.reward-particle:nth-child(odd) { --x: 20px; border-radius: 2px; }
.reward-particle:nth-child(even) { --x: -20px; }
.reward-particle:nth-child(3n) { --x: 35px; width: 6px; height: 6px; }
.reward-particle:nth-child(4n) { --x: -30px; width: 5px; height: 10px; border-radius: 2px; }

/* Toast de recompensa */
.reward-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #FF6B35, #FF8F00);
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    z-index: 99999;
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-toast i {
    color: #FFD700;
    font-size: 18px;
}

.reward-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== BOTÓN AYUDA ===== */
.help-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #E3F2FD;
    border: none;
    color: #0047B3;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.help-btn:hover { background: #BBDEFB; transform: scale(1.05); }

/* ===== MODAL GUÍA ===== */
.guia-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.guia-modal {
    background: #F8F9FA;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.guia-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #0047B3, #1565C0);
    flex-shrink: 0;
}

.guia-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.guia-header h2 {
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 2px;
}

.guia-header p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin: 0;
}

.guia-header > div:nth-child(2) { flex: 1; }

.guia-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tabs */
.guia-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #E8ECF0;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.guia-tabs::-webkit-scrollbar { display: none; }

.guia-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 70px;
}

.guia-tab i { font-size: 16px; }

.guia-tab.active {
    color: #0047B3;
    border-bottom-color: #0047B3;
}

/* Contenido */
.guia-content {
    display: none;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

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

.guia-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Items */
.guia-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.guia-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.guia-item-info { flex: 1; }
.guia-item-info h4 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
.guia-item-info p { font-size: 12px; color: #888; margin: 0; }

.guia-pts {
    font-size: 14px;
    font-weight: 800;
    color: #FF6B35;
    flex-shrink: 0;
}

/* Tip */
.guia-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #FFF8E1;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.guia-tip i { color: #FFB300; font-size: 14px; margin-top: 1px; flex-shrink: 0; }

/* Flow de misiones */
.guia-flow { display: flex; flex-direction: column; gap: 0; }

.guia-flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.guia-flow-step.completed .guia-flow-num {
    background: #4CAF50;
    color: white;
}

.guia-flow-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0047B3;
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guia-flow-info h4 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
.guia-flow-info p { font-size: 12px; color: #888; margin: 0; }

.guia-flow-arrow {
    text-align: center;
    color: #0047B3;
    font-size: 12px;
    padding: 4px 0;
    opacity: 0.4;
}

/* Categorías */
.guia-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.guia-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.guia-cat-info { flex: 1; }
.guia-cat-info h4 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
.guia-cat-info p { font-size: 12px; color: #888; margin: 0; }

.guia-cat-lvl {
    font-size: 12px;
    font-weight: 700;
    color: #0047B3;
    background: #E3F2FD;
    padding: 4px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Canjear */
.guia-canjear-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.guia-canjear-intro p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.guia-reward-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.guia-reward-item {
    background: white;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.guia-reward-item i { font-size: 20px; }
.guia-reward-item span { font-size: 10px; font-weight: 700; color: #1a1a2e; }
.guia-reward-item small { font-size: 9px; color: #888; }

/* ===== MODAL DE RECOMPENSA DIARIA ===== */
.reward-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-modal-overlay.visible {
    opacity: 1;
}

.reward-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 340px;
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.reward-modal-overlay.visible .reward-modal {
    transform: scale(1);
}

.reward-modal-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.reward-confetti-piece {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 2s ease-out forwards;
}

.reward-confetti-piece:nth-child(odd) { width: 6px; height: 12px; }
.reward-confetti-piece:nth-child(3n) { border-radius: 50%; width: 10px; height: 10px; }

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

.reward-modal-content {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.reward-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35, #FF8F00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
    animation: iconBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reward-modal-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    animation: fadeInUp 0.4s ease 0.4s both;
}

.reward-modal-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    animation: fadeInUp 0.4s ease 0.5s both;
}

.reward-modal-points i {
    font-size: 28px;
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(255,215,0,0.4));
}

.reward-modal-points span {
    font-size: 48px;
    font-weight: 900;
    color: #FF6B35;
}

.reward-modal-content p {
    font-size: 14px;
    color: #888;
    margin: 0 0 8px;
    animation: fadeInUp 0.4s ease 0.6s both;
}

.reward-modal-total {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    animation: fadeInUp 0.4s ease 0.65s both;
}

.reward-modal-total strong {
    color: #0047B3;
}

.reward-modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0047B3, #1565C0);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    animation: fadeInUp 0.4s ease 0.7s both;
}

.reward-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,71,179,0.3);
}

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

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