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

:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #FFFFFF;
    --text-secondary: #6B7280;
    --accent-blue: #2563EB;
    --accent-blue-light: #3B82F6;
    --accent-cyan: #06B6D4;
    --accent-gray: #F3F4F6;
    --border-color: #1F2937;
    --problem-color: #EF4444;
    --solution-color: #10B981;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Header */
.header {
    padding: 2rem 0;
    position: relative;
}

.logo {
    display: inline-block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue-light), var(--accent-cyan));
    opacity: 0.6;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Sección Auditoría */
.audit-section {
    margin: 6rem 0;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    text-align: center;
}

.section-icon {
    font-size: 3rem;
    filter: brightness(1.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Problema Section */
.problem-section {
    margin-bottom: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--problem-color), rgba(239, 68, 68, 0.5));
}

.problem-header {
    margin-bottom: 2.5rem;
}

.problem-header:has(.problem-badge:empty) {
    margin-bottom: 0;
    display: none;
}

.problem-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--problem-color);
    border-radius: 20px;
    color: var(--problem-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.problem-badge:empty {
    display: none;
}

.problem-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.problem-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.problem-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mapa Visual */
.problem-map {
    margin-top: 3rem;
}

.map-container {
    position: relative;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    min-height: 600px;
}

.map-nodes-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 12rem;
    padding-top: 2rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.map-node.central {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    min-width: 200px;
    width: 200px;
    padding: 2rem;
    margin-bottom: 4rem;
    transition: left 0.3s ease;
}

.map-node.central {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    min-width: 200px;
    width: 200px;
    padding: 2rem;
    margin-bottom: 4rem;
    transition: left 0.3s ease;
}

.map-node {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
}

.map-node.problem {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.map-node.central {
    border-color: var(--accent-blue-light);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.node-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.map-node.central .node-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.map-node.central .node-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.node-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.node-status {
    font-size: 0.85rem;
    color: var(--problem-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

.node-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}


.map-connections {
    position: absolute;
    top: 10rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 250px;
}

.connection-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue-light), rgba(59, 130, 246, 0.3));
    opacity: 0.4;
}

.map-leads {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(59, 130, 246, 0.3);
}

.lead-item {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lead-item:hover {
    border-color: var(--accent-blue-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.map-problem-text {
    margin-top: 2rem;
    text-align: center;
}

.problem-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--problem-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.alert-icon {
    font-size: 1.5rem;
}

/* Solución Section */
.solution-section {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--solution-color), rgba(16, 185, 129, 0.5));
}

.solution-header {
    margin-bottom: 3rem;
}

.solution-header:has(.solution-badge:empty) {
    margin-bottom: 0;
    display: none;
}

.solution-intro {
    margin-bottom: 4rem;
    text-align: center;
    padding: 2.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.solution-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.solution-intro-text {
    font-size: 1.75rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--solution-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-intro-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.solution-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--solution-color);
    border-radius: 20px;
    color: var(--solution-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.solution-badge:empty {
    display: none;
}

.solution-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.solution-title:empty,
.problem-title:empty {
    display: none;
}

.solution-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--solution-color);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.solution-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.solution-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Otras Características */
.other-features {
    margin: 6rem 0;
    padding: 4rem 0;
}

.features-main-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.feature-item {
    display: flex;
    gap: 2.5rem;
    padding: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-blue-light);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.feature-item-icon {
    font-size: 4rem;
    flex-shrink: 0;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-item-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item-content {
    flex: 1;
}

.feature-item-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .header {
        padding: 1.5rem 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .audit-section {
        margin: 3rem 0;
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
        gap: 0.75rem;
    }

    .section-icon {
        font-size: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .problem-section,
    .solution-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .problem-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .map-container {
        padding: 1.5rem 0.75rem;
        min-height: auto;
        border-radius: 12px;
    }

    .map-nodes-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 0;
        align-items: stretch;
        max-width: 100%;
    }

    .map-node.central {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 0;
        width: 100%;
        min-width: auto;
    }

    .map-node {
        width: 100%;
        min-width: auto;
        padding: 1.25rem;
    }

    .node-icon {
        font-size: 2rem;
    }

    .map-node.central .node-icon {
        font-size: 2.5rem;
    }

    .map-connections {
        display: none;
    }

    .map-leads {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }

    .lead-item {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .problem-alert {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .alert-icon {
        font-size: 1.25rem;
    }

    .solution-intro {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .solution-intro-text {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 0.75rem;
    }

    .solution-intro-subtext {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .solution-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .solution-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .solution-text p {
        font-size: 0.9rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-item-icon {
        margin: 0 auto;
        font-size: 3rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Visualización CRM Abandonado */
.crm-visualization {
    margin-top: 3rem;
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    overflow: hidden;
}

.crm-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.crm-stage {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-height: 400px;
    position: relative;
    transition: all 0.3s ease;
}

.crm-stage.active {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.crm-stage.empty {
    border-color: rgba(107, 114, 128, 0.3);
    background: rgba(107, 114, 128, 0.02);
    opacity: 0.6;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.stage-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.stage-count {
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.crm-stage.active .stage-count {
    background: rgba(239, 68, 68, 0.2);
    color: var(--problem-color);
}

.stage-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 300px;
}

.lead-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.lead-card.stacked {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--text-primary);
    transform: translateX(0);
    animation: stackPile 0.3s ease forwards;
}

.lead-card.stacked:nth-child(1) { z-index: 12; }
.lead-card.stacked:nth-child(2) { z-index: 11; transform: translateX(2px) translateY(2px); }
.lead-card.stacked:nth-child(3) { z-index: 10; transform: translateX(4px) translateY(4px); }
.lead-card.stacked:nth-child(4) { z-index: 9; transform: translateX(6px) translateY(6px); }
.lead-card.stacked:nth-child(5) { z-index: 8; transform: translateX(8px) translateY(8px); }
.lead-card.stacked:nth-child(6) { z-index: 7; transform: translateX(10px) translateY(10px); }
.lead-card.stacked:nth-child(7) { z-index: 6; transform: translateX(12px) translateY(12px); }
.lead-card.stacked:nth-child(8) { z-index: 5; transform: translateX(14px) translateY(14px); }
.lead-card.stacked:nth-child(9) { z-index: 4; transform: translateX(16px) translateY(16px); }
.lead-card.stacked:nth-child(10) { z-index: 3; transform: translateX(18px) translateY(18px); }
.lead-card.stacked:nth-child(11) { z-index: 2; transform: translateX(20px) translateY(20px); }
.lead-card.stacked:nth-child(12) { z-index: 1; transform: translateX(22px) translateY(22px); opacity: 0.7; }

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

.empty-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-secondary);
    opacity: 0.4;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.5;
}

.empty-stage p {
    font-size: 0.9rem;
    margin: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Efectos de abandono */
.abandonment-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: dustFloat 8s ease-in-out infinite;
}

.dust-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dust-particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.dust-particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes dustFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-15px, -50px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(25px, -20px) rotate(270deg);
        opacity: 0.4;
    }
}

.trash-item {
    position: absolute;
    font-size: 2rem;
    bottom: 10%;
    right: 15%;
    opacity: 0.4;
    animation: trashSway 4s ease-in-out infinite;
}

.trash-item-2 {
    position: absolute;
    font-size: 1.8rem;
    bottom: 25%;
    left: 8%;
    opacity: 0.35;
    animation: paperFloat 5s ease-in-out infinite;
    transform: rotate(-15deg);
}

.trash-item-3 {
    position: absolute;
    font-size: 1.5rem;
    top: 30%;
    left: 12%;
    opacity: 0.3;
    animation: paperFloat 6s ease-in-out infinite 1s;
    transform: rotate(20deg);
}

.broken-item {
    position: absolute;
    font-size: 1.5rem;
    bottom: 15%;
    left: 20%;
    opacity: 0.4;
    animation: brokenSway 3s ease-in-out infinite;
}

.cobweb {
    position: absolute;
    font-size: 1.8rem;
    top: 25%;
    left: 5%;
    opacity: 0.3;
    animation: cobwebSway 7s ease-in-out infinite;
}

.dust-bunny {
    position: absolute;
    font-size: 1.5rem;
    bottom: 35%;
    right: 8%;
    opacity: 0.35;
    animation: dustBunnyMove 8s ease-in-out infinite;
}

.old-paper {
    position: absolute;
    font-size: 1.3rem;
    top: 50%;
    right: 25%;
    opacity: 0.3;
    animation: paperDrift 6s ease-in-out infinite 2s;
    transform: rotate(25deg);
}

@keyframes trashSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes paperFloat {
    0%, 100% {
        transform: translateY(0) rotate(-15deg);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-15px) rotate(-10deg);
        opacity: 0.4;
    }
}

@keyframes brokenSway {
    0%, 100% {
        transform: rotate(-10deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes cobwebSway {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(15deg) scale(1.15);
        opacity: 0.4;
    }
}

@keyframes dustBunnyMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.35;
    }
    25% {
        transform: translate(10px, -10px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-5px, -15px) rotate(180deg);
        opacity: 0.35;
    }
    75% {
        transform: translate(-10px, -5px) rotate(270deg);
        opacity: 0.4;
    }
}

@keyframes paperDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(25deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(-20px, -10px) rotate(30deg);
        opacity: 0.35;
    }
}

.spider-web {
    position: absolute;
    font-size: 2.5rem;
    top: 15%;
    right: 20%;
    opacity: 0.3;
    animation: webSway 6s ease-in-out infinite;
}

@keyframes webSway {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Métricas en Tiempo Real */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.metric-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue-light), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue-light);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card.highlight {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.metric-card.highlight::before {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue-light));
    opacity: 1;
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-card.highlight .metric-value {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metrics-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.metrics-footer-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.metrics-footer-text strong {
    color: var(--accent-blue-light);
    font-weight: 600;
}

/* Reportes Automáticos */
.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.report-preview {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue-light), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-preview:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue-light);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.report-preview:hover::before {
    opacity: 1;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.report-icon {
    font-size: 2.5rem;
    filter: brightness(1.1);
}

.report-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-content {
    margin-bottom: 1.5rem;
}

.report-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.report-metric:last-child {
    border-bottom: none;
}

.metric-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue-light);
}

.view-report-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--accent-cyan) 100%);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.view-report-btn:active {
    transform: translateY(0);
}

.reports-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.reports-footer-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.reports-footer-text strong {
    color: var(--accent-blue-light);
    font-weight: 600;
}

/* Modal de Reporte */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.report-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--problem-color);
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-primary);
}

/* Contenido del Reporte Completo */
.full-report {
    line-height: 1.8;
}

.report-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.report-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.report-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.report-section:last-child {
    border-bottom: none;
}

.section-title-report {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.report-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-item {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-blue-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
}

.metric-item.alert {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.metric-item.critical {
    border-left-color: var(--problem-color);
    background: rgba(239, 68, 68, 0.1);
}

.ad-card {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.ad-card.winner {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--solution-color);
}

.ad-card.loser {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--problem-color);
}

.ad-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ad-metrics {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ad-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.report-table thead {
    background: var(--bg-card);
}

.report-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.report-table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.report-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.summary-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-blue-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.critical-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.critical-metric {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--problem-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.conclusions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conclusion-item {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--solution-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.action-plan {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue-light);
}

.action-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.action-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.report-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.pattern-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pattern-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-blue-light);
    border-radius: 8px;
}

.pattern-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.pattern-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.analysis-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.phrases-box {
    margin: 1rem 0;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.phrases-box.positive {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--solution-color);
}

.phrases-box.negative {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--problem-color);
}

.phrases-box ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.phrases-box li {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.phrases-box p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.evaluation-example {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.eval-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.eval-header h3 {
    color: var(--accent-blue-light);
    font-size: 1.3rem;
    margin: 0;
}

.eval-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eval-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue-light);
}

.eval-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eval-section strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.eval-detail {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue-light);
}

.eval-detail strong {
    display: block;
    color: var(--accent-blue-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.eval-detail p {
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.eval-detail em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

.eval-section ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.eval-section li {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.eval-verdict {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue-light);
}

.eval-verdict strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.eval-verdict p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* Sección Aura - Estilos Futuristas */
.aura-section {
    position: relative;
    overflow: hidden;
}

.aura-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: auraPulse 8s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.aura-section .section-header {
    position: relative;
    z-index: 1;
}

.aura-section .section-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 2px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    animation: auraGlow 3s ease-in-out infinite;
}

@keyframes auraGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    }
}

.aura-header {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    position: relative;
}

.aura-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    animation: auraScan 3s linear infinite;
}

@keyframes auraScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.aura-avatar {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 2px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    animation: auraFloat 4s ease-in-out infinite;
}

@keyframes auraFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

.aura-section .chat-window {
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
    position: relative;
    z-index: 1;
}

.aura-section .chat-window::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    animation: auraBorder 4s ease-in-out infinite;
}

@keyframes auraBorder {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Chat Interactivo */
.chat-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.chat-window {
    width: 100%;
    max-width: 700px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.chat-header-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.chat-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--solution-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-primary);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: messageSlide 0.3s ease;
}

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

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

.bot-message .message-content {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.user-message .message-content {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.message-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.message-content strong {
    color: var(--accent-blue-light);
    font-weight: 600;
}

.message-action {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--solution-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.message-action strong {
    color: var(--solution-color);
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--accent-cyan) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.chat-send-btn:active {
    transform: translateY(0);
}

.chat-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.chat-feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.chat-feature-item:hover {
    border-color: var(--accent-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.chat-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.chat-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.chat-feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .chat-window {
        height: 500px;
        border-radius: 16px;
    }
    
    .chat-header {
        padding: 1rem 1.25rem;
    }
    
    .chat-header-text h3 {
        font-size: 1.1rem;
    }
    
    .chat-status {
        font-size: 0.75rem;
    }
    
    .chat-messages {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-content {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-input-container {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }
    
    .chat-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-send-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .chat-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .chat-feature-item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .chat-feature-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .chat-feature-text h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .chat-feature-text p {
        font-size: 0.85rem;
    }
}

/* Roadmap de Implementación */
.roadmap-section {
    margin: 6rem 0;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

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

.roadmap-header {
    text-align: center;
    margin-bottom: 4rem;
}

.roadmap-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.roadmap-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.roadmap-timeline {
    position: relative;
    padding-left: 3rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue-light) 0%, var(--accent-cyan) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.final {
    margin-bottom: 0;
}

.timeline-item.final .timeline-line {
    display: none;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.marker-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 3px solid var(--accent-blue-light);
    border-radius: 50%;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .marker-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    border-color: var(--accent-cyan);
}

.timeline-item.final .marker-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--solution-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.timeline-line {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(180deg, var(--accent-blue-light), var(--accent-cyan));
    opacity: 0.4;
}

.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-blue-light);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
}

.timeline-item.final .timeline-content {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--solution-color);
}

.timeline-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--accent-blue-light);
    border-radius: 20px;
    color: var(--accent-blue-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-badge.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--solution-color);
    color: var(--solution-color);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-item.final .timeline-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--solution-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .roadmap-section {
        margin: 4rem 0;
        padding: 3rem 0;
    }
    
    .roadmap-header {
        margin-bottom: 3rem;
    }
    
    .roadmap-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.75rem;
    }
    
    .roadmap-subtitle {
        font-size: clamp(1rem, 4vw, 1.15rem);
        padding: 0 1rem;
    }
    
    .roadmap-timeline {
        padding-left: 1.5rem;
    }
    
    .roadmap-timeline::before {
        left: 1rem;
    }
    
    .marker-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .timeline-item {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-title {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin-bottom: 0.5rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        max-width: calc(100% - 1rem);
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 2rem;
    }
    
    .report-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .report-main-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .report-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .report-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .section-title-report {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin-bottom: 1rem;
    }
    
    .subsection-title {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
        margin: 1.25rem 0 0.75rem;
    }
    
    .report-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .metrics-list {
        gap: 0.6rem;
    }
    
    .metric-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1.25rem 0;
    }
    
    .report-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.6rem 0.4rem;
        white-space: nowrap;
    }
    
    .report-table th {
        font-size: 0.75rem;
    }
    
    .summary-box {
        padding: 1.25rem;
        font-size: 0.9rem;
        margin-top: 1.25rem;
    }
    
    .critical-metric {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .conclusion-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .action-item {
        padding: 1.25rem;
    }
    
    .action-item strong {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .action-item p {
        font-size: 0.85rem;
    }
    
    .pattern-item {
        padding: 1rem;
    }
    
    .pattern-item strong {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .pattern-item p {
        font-size: 0.85rem;
    }
    
    .analysis-item {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    .phrases-box {
        padding: 1rem;
        margin: 0.875rem 0;
    }
    
    .phrases-box ul {
        margin: 0.6rem 0;
        padding-left: 1.25rem;
    }
    
    .phrases-box li {
        margin: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .phrases-box p {
        font-size: 0.85rem;
    }
    
    .evaluation-example {
        padding: 1.5rem;
        margin-top: 1.25rem;
    }
    
    .eval-header h3 {
        font-size: 1.1rem;
    }
    
    .eval-score {
        font-size: 1.1rem;
        padding: 0.875rem;
    }
    
    .eval-section strong {
        font-size: 1rem;
    }
    
    .eval-detail {
        padding: 0.875rem;
    }
    
    .eval-detail strong {
        font-size: 0.95rem;
    }
    
    .eval-detail p {
        font-size: 0.85rem;
    }
    
    .eval-verdict {
        padding: 1.25rem;
    }
    
    .eval-verdict strong {
        font-size: 1rem;
    }
    
    .eval-verdict p {
        font-size: 0.9rem;
    }
}

/* Dashboard de Canales */
.channels-dashboard {
    margin: 4rem auto;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3.5rem);
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dashboard-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.dashboard-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.channels-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.channel-metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.channel-metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue-light);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.channel-metric-card.highlight {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.metric-icon-channel {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: brightness(1.1);
}

.metric-value-channel {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-metric-card.highlight .metric-value-channel {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label-channel {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-ai-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--accent-blue-light);
    font-weight: 500;
}

.metric-ai-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--solution-color);
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    animation: ai-pulse 2s ease-in-out infinite;
}

.metric-ai-status.success .ai-pulse {
    background: var(--solution-color);
}

@keyframes ai-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
    }
}

.channels-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.channel-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.channel-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.channel-tab.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
    border-bottom: 2px solid var(--accent-blue-light);
}

.tab-icon {
    font-size: 1.25rem;
}

.tab-count {
    background: var(--bg-card);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.channel-tab.active .tab-count {
    background: var(--accent-blue-light);
    color: var(--text-primary);
}

.channel-content {
    display: none;
}

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

.channel-status-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.status-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-card);
}

.status-value.green {
    color: var(--solution-color);
    background: rgba(16, 185, 129, 0.1);
}

.status-value.red {
    color: var(--problem-color);
    background: rgba(239, 68, 68, 0.1);
}

.status-value.yellow {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.status-value.blue {
    color: var(--accent-blue-light);
    background: rgba(59, 130, 246, 0.1);
}

.status-value.purple {
    color: #A855F7;
    background: rgba(168, 85, 247, 0.1);
}

.channel-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.pipeline-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 280px;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pipeline-column::-webkit-scrollbar {
    width: 6px;
}

.pipeline-column::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.pipeline-column::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.pipeline-column::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.column-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.column-count {
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pipeline-leads {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.lead-pipeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.lead-pipeline-card:hover {
    border-color: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.lead-pipeline-card.updated {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.lead-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lead-phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lead-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lead-assigned {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lead-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag.yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.tag.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--solution-color);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--problem-color);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.tag.light-blue {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.ai-analysis-container {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.analyzing-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-blue-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.ai-status-text {
    font-weight: 600;
}

.ai-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    color: var(--accent-blue-light);
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent-blue-light);
    animation: step-pulse 2s ease-in-out infinite;
}

.progress-step.completed {
    opacity: 1;
    color: var(--solution-color);
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--solution-color);
}

.step-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    font-weight: 500;
}

@keyframes step-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.crm-updated-badge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--solution-color);
    font-weight: 500;
    margin-top: 0.75rem;
}

.crm-badge-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.crm-icon {
    font-size: 0.9rem;
}

.crm-text {
    font-size: 0.8rem;
}

.crm-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.crm-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.crm-updated-badge.highlight {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
}

.crm-updated-badge.highlight .crm-details {
    border-top-color: rgba(6, 182, 212, 0.3);
}

.ai-analysis-complete {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
}

.ai-analysis-complete.highlight {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.ai-complete-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.ai-icon {
    font-size: 1.1rem;
    animation: ai-float 3s ease-in-out infinite;
}

.ai-analysis-complete.highlight .ai-icon {
    animation: ai-glow 2s ease-in-out infinite;
}

@keyframes ai-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes ai-glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8));
    }
}

.ai-complete-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue-light);
}

.ai-analysis-complete.highlight .ai-complete-text {
    color: var(--accent-cyan);
}

.ai-metrics-extracted {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
}

.metric-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.dashboard-footer-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.dashboard-footer-text strong {
    color: var(--accent-blue-light);
    font-weight: 600;
}

/* Comparativo CRM */
.crm-comparison {
    margin: 4rem auto;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3.5rem);
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comparison-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.comparison-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.comparison-container {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.comparison-item {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.comparison-label {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 12px;
}

.comparison-item.before .comparison-label {
    background: rgba(239, 68, 68, 0.2);
    color: var(--problem-color);
    border: 1px solid var(--problem-color);
}

.comparison-item.after .comparison-label {
    background: rgba(16, 185, 129, 0.15);
    color: rgba(16, 185, 129, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.crm-visualization-small {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: visible;
    min-height: 350px;
    max-height: none;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
    flex: 1;
}

.crm-visualization-small:not(.updated) {
    overflow: hidden;
    position: relative;
}

.crm-visualization-small.updated {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.crm-container-small {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    width: 100%;
    min-width: 700px;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    justify-items: stretch;
    align-items: start;
    position: relative;
    z-index: 2;
}

.crm-visualization-small::-webkit-scrollbar {
    height: 8px;
}

.crm-visualization-small::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.crm-visualization-small::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.crm-visualization-small::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

.crm-stage-small {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(0.5rem, 1vw, 1rem);
    min-height: 280px;
    max-height: none;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.crm-stage-small.updated-stage {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.stage-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.stage-header-small h4 {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.stage-count-small {
    background: var(--bg-secondary);
    padding: clamp(0.25rem, 0.5vw, 0.35rem) clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 8px;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.crm-stage-small.updated-stage .stage-count-small {
    background: rgba(16, 185, 129, 0.15);
    color: rgba(16, 185, 129, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stage-content-small {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: clamp(0.25rem, 0.5vw, 0.5rem);
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stage-content-small::-webkit-scrollbar {
    width: 4px;
}

.stage-content-small::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.stage-content-small::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.stage-content-small::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

.lead-card-small {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.4rem, 0.8vw, 0.6rem);
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    line-height: 1.4;
}

.lead-card-small.stacked {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--text-primary);
    transform: translateX(0);
}

.lead-card-small.stacked:nth-child(1) { z-index: 6; }
.lead-card-small.stacked:nth-child(2) { z-index: 5; transform: translateX(1px) translateY(1px); }
.lead-card-small.stacked:nth-child(3) { z-index: 4; transform: translateX(2px) translateY(2px); }
.lead-card-small.stacked:nth-child(4) { z-index: 3; transform: translateX(3px) translateY(3px); }
.lead-card-small.stacked:nth-child(5) { z-index: 2; transform: translateX(4px) translateY(4px); }
.lead-card-small.stacked:nth-child(6) { z-index: 1; transform: translateX(5px) translateY(5px); opacity: 0.7; }

.lead-card-small.updated {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--text-primary);
    font-weight: 500;
}

.lead-card-small.updated.highlight {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
    font-weight: 600;
}

.empty-stage-small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    opacity: 0.4;
}

.empty-icon-small {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.empty-icon-small.question-mark {
    color: #EF4444;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: questionPulse 2s ease-in-out infinite;
}

@keyframes questionPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.cobweb-small {
    position: absolute;
    font-size: 1.5rem;
    top: 20%;
    right: 15%;
    opacity: 0.6;
    animation: cobwebSway 4s ease-in-out infinite;
    z-index: 1;
}

.trash-small {
    position: absolute;
    font-size: 1.2rem;
    bottom: 20%;
    left: 10%;
    opacity: 0.5;
    animation: trashSway 3s ease-in-out infinite;
    z-index: 1;
}

.empty-stage-small {
    position: relative;
}

/* Efectos de abandono para el CRM "Sin AutoKPI" */
.crm-visualization-small:not(.updated) .abandonment-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.crm-visualization-small:not(.updated) .dust-particle {
    position: absolute;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    opacity: 0.4;
    animation: dustFloat 8s ease-in-out infinite;
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .dust-particle:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.crm-visualization-small:not(.updated) .dust-particle:nth-child(2) {
    top: 60%;
    left: 75%;
    animation-delay: 2s;
}

.crm-visualization-small:not(.updated) .dust-particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.crm-visualization-small:not(.updated) .trash-item {
    position: absolute;
    font-size: clamp(1rem, 2vw, 1.5rem);
    bottom: 10%;
    right: 10%;
    opacity: 0.5;
    animation: trashSway 4s ease-in-out infinite;
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .trash-item-2 {
    position: absolute;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    bottom: 25%;
    left: 3%;
    opacity: 0.45;
    animation: paperFloat 5s ease-in-out infinite;
    transform: rotate(-15deg);
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .trash-item-3 {
    position: absolute;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    top: 30%;
    left: 8%;
    opacity: 0.4;
    animation: paperFloat 6s ease-in-out infinite 1s;
    transform: rotate(20deg);
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .broken-item {
    position: absolute;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    bottom: 15%;
    left: 15%;
    opacity: 0.5;
    animation: brokenSway 3s ease-in-out infinite;
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .cobweb {
    position: absolute;
    font-size: clamp(1rem, 2vw, 1.5rem);
    top: 25%;
    left: 2%;
    opacity: 0.5;
    animation: cobwebSway 7s ease-in-out infinite;
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .cobweb-2 {
    top: 70%;
    right: 5%;
    left: auto;
    animation-delay: 2s;
}

.crm-visualization-small:not(.updated) .dust-bunny {
    position: absolute;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    bottom: 35%;
    right: 5%;
    opacity: 0.4;
    animation: dustBunnyMove 8s ease-in-out infinite;
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .old-paper {
    position: absolute;
    font-size: clamp(0.7rem, 1.4vw, 1.1rem);
    top: 50%;
    right: 20%;
    opacity: 0.4;
    animation: paperDrift 6s ease-in-out infinite 2s;
    transform: rotate(25deg);
    max-width: 100%;
}

.crm-visualization-small:not(.updated) .spider-web {
    position: absolute;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    top: 15%;
    right: 15%;
    opacity: 0.4;
    animation: webSway 6s ease-in-out infinite;
    max-width: 100%;
}

/* Responsive para CRM */
@media (max-width: 1400px) {
    .crm-container-small {
        min-width: 650px;
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
}

@media (max-width: 1200px) {
    .crm-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .comparison-container {
        gap: 2rem;
    }
    
    .crm-container-small {
        min-width: 600px;
        gap: 0.75rem;
    }
}

/* Mejoras adicionales para móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 1.5rem 0 2.5rem;
    }
    
    .audit-section {
        margin: 2.5rem 0;
        padding: 1.5rem 0;
    }
    
    .problem-section,
    .solution-section {
        padding: 1.25rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .solution-card {
        padding: 1.25rem;
    }
    
    .crm-visualization-small {
        padding: 1rem 0.5rem;
    }
    
    .crm-container-small {
        min-width: 400px;
        gap: 0.5rem;
    }
    
    .crm-stage-small {
        padding: 0.75rem 0.5rem;
        min-height: 260px;
    }
    
    .lead-card-small {
        font-size: 0.6rem;
        padding: 0.4rem 0.35rem;
    }
    
    .chat-window {
        height: 450px;
    }
    
    .modal-content {
        margin: 0.25rem;
        padding: 1.25rem 0.875rem;
    }
    
    .report-table {
        min-width: 500px;
        font-size: 0.75rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem 0.3rem;
    }
}

@media (max-width: 768px) {
    .crm-container {
        grid-template-columns: 1fr;
    }
    
    .crm-stage {
        min-height: 250px;
    }
    
    .stage-content {
        min-height: 200px;
    }
    
    .empty-stage {
        min-height: 200px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .metric-card {
        padding: 1.25rem;
    }
    
    .metric-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .metric-value {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        margin-bottom: 0.4rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .metrics-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .metrics-footer-text {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }
    
    .reports-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .report-preview {
        padding: 1.5rem;
    }
    
    .report-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .report-icon {
        font-size: 2rem;
    }
    
    .report-title {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    
    .report-metric {
        padding: 0.6rem 0;
    }
    
    .metric-name {
        font-size: 0.9rem;
    }
    
    .metric-number {
        font-size: 1.1rem;
    }
    
    .view-report-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .reports-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .reports-footer-text {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }
    
    .crm-comparison {
        padding: 1.5rem 1rem;
        margin: 2.5rem auto;
        border-radius: 16px;
    }
    
    .comparison-header {
        margin-bottom: 1.5rem;
    }
    
    .comparison-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 0.75rem;
    }
    
    .comparison-container {
        gap: 1.5rem;
    }
    
    .comparison-label {
        margin-bottom: 1.25rem;
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        padding: 0.6rem 1.25rem;
    }
    
    .crm-visualization-small {
        padding: 1.25rem 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 320px;
        border-radius: 12px;
        position: relative;
    }
    
    .crm-visualization-small:not(.updated) {
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .crm-visualization-small:not(.updated) .abandonment-effects {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        overflow: hidden;
    }
    
    .crm-container-small {
        min-width: 480px;
        gap: 0.6rem;
        position: relative;
        z-index: 2;
    }
    
    .crm-stage-small {
        padding: 0.875rem 0.6rem;
        min-height: 280px;
    }
    
    .stage-header-small {
        margin-bottom: 0.75rem;
        padding-bottom: 0.6rem;
    }
    
    .stage-header-small h4 {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .stage-count-small {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .stage-content-small {
        min-height: 200px;
        gap: 0.5rem;
    }
    
    .lead-card-small {
        font-size: 0.65rem;
        padding: 0.5rem 0.4rem;
        line-height: 1.3;
    }
    
    .empty-stage-small {
        min-height: 180px;
    }
    
    .empty-icon-small {
        font-size: 1.75rem;
    }
    
    .ad-card {
        padding: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    .ad-name {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .ad-metrics {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .ad-note {
        font-size: 0.85rem;
    }
    
    .winners-section,
    .losers-section {
        margin-bottom: 1.5rem;
    }
    
    /* Responsive para Dashboard de Canales */
    .channels-dashboard {
        padding: 1.5rem 1rem;
        margin: 2.5rem auto;
    }
    
    .dashboard-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 0.5rem;
    }
    
    .dashboard-subtitle {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
    
    .channels-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .channel-metric-card {
        padding: 1.25rem;
    }
    
    .metric-icon-channel {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .metric-value-channel {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .metric-label-channel {
        font-size: 0.75rem;
    }
    
    .channels-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .channel-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
    }
    
    .tab-icon {
        font-size: 1.1rem;
    }
    
    .tab-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .channel-status-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .status-metric {
        justify-content: space-between;
        width: 100%;
    }
    
    .status-label {
        font-size: 0.85rem;
    }
    
    .status-value {
        font-size: 1.1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .channel-pipeline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        overflow-x: visible;
    }
    
    .pipeline-column {
        min-width: 100%;
        max-height: 500px;
        padding: 1rem;
    }
    
    .column-header h4 {
        font-size: 0.9rem;
    }
    
    .column-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .pipeline-leads {
        gap: 0.875rem;
    }
    
    .lead-pipeline-card {
        padding: 0.875rem;
    }
    
    .lead-name {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .lead-phone,
    .lead-message,
    .lead-assigned,
    .lead-date {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .lead-tags {
        gap: 0.4rem;
        margin-bottom: 0.6rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .analyzing-badge,
    .crm-updated-badge {
        font-size: 0.7rem;
        padding: 0.4rem;
        margin-top: 0.4rem;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .dashboard-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .dashboard-footer-text {
        font-size: clamp(0.95rem, 3vw, 1rem);
    }
    
    .metric-ai-status {
        font-size: 0.65rem;
        padding: 0.4rem;
        margin-top: 0.5rem;
    }
    
    .ai-pulse {
        width: 6px;
        height: 6px;
    }
    
    .ai-analysis-container {
        padding: 0.6rem;
        margin-top: 0.6rem;
    }
    
    .analyzing-badge {
        font-size: 0.7rem;
        padding: 0.4rem;
        margin-bottom: 0.6rem;
    }
    
    .ai-progress-steps {
        gap: 0.4rem;
    }
    
    .progress-step {
        padding: 0.4rem;
        font-size: 0.65rem;
    }
    
    .step-icon {
        font-size: 0.8rem;
    }
    
    .crm-updated-badge {
        padding: 0.6rem;
        font-size: 0.7rem;
        margin-top: 0.6rem;
    }
    
    .crm-badge-header {
        font-size: 0.75rem;
    }
    
    .crm-text {
        font-size: 0.7rem;
    }
    
    .crm-details {
        gap: 0.3rem;
        padding-top: 0.4rem;
    }
    
    .crm-detail-item {
        font-size: 0.65rem;
    }
    
    .ai-analysis-complete {
        padding: 0.75rem;
        margin-top: 0.6rem;
    }
    
    .ai-complete-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }
    
    .ai-icon {
        font-size: 1rem;
    }
    
    .ai-complete-text {
        font-size: 0.75rem;
    }
    
    .ai-metrics-extracted {
        gap: 0.4rem;
        margin-bottom: 0.6rem;
    }
    
    .ai-metric-item {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .metric-label,
    .metric-value {
        font-size: 0.7rem;
    }
}
