/* Estilos específicos del Dashboard */
/* Variables para colores de acento */
:root {
    --brand-grad: linear-gradient(135deg, #00FBDC 0%, #6F5CFF 100%);
    --card-bg: rgba(255,255,255,.03);
    --card-radius: 20px;
    --card-shadow: 0 4px 14px rgba(0,0,0,.35);
    --text-main: #FFFFFF;
    --text-muted: #A8B2D1;
    --accent-green: #00FBDC;
    --accent-red: #ff4d6a;
    --card-border-hover: rgba(0,255,255,0.15);
    --card-padding: 24px;
    --hero-height: min(20vh, 240px);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.45);
}

h2.metric {
    font-size: 32px;
    font-weight: 700;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    color: transparent;
}

.dashboard-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slide Scroll para permitir desplazamiento sin cambiar sección */
.slide-scroll {
    max-height: 70vh;
    overflow-y: auto !important; /* Forzar overflow */
    padding-right: 10px;
    margin-right: -10px;
    position: relative;
    -webkit-overflow-scrolling: touch; /* Para mejor desplazamiento en iOS */
    padding-bottom: 100px; /* Aumentar espacio al final para el botón */
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-main);
    opacity: 0.7;
    animation: bounce 1.5s infinite;
    z-index: 10;
    pointer-events: none;
    display: none; /* Se muestra con JS cuando hay contenido scrollable */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

.slide-scroll::-webkit-scrollbar {
    width: 5px;
}

.slide-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.slide-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.grid-item {
    position: relative;
}

.grid-item.col-span-12 {
    grid-column: span 12;
}

.grid-item.col-span-6 {
    grid-column: span 6;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #4DFFC4;
    font-weight: 500;
}

/* Boomerang CX Insights Loader */
#dashboard-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 2rem;
    background: #0b0b2a;
    color: #fff;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    animation: appear 400ms cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Halo de fondo con gradiente */
#dashboard-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 255, 163, 0.15) 0%,
        rgba(70, 250, 255, 0.06) 40%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

@keyframes appear {
    from {
        opacity: 0;
        filter: blur(6px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

#dashboard-loader .logo {
    width: 140px;
    height: auto;
    opacity: 0;
    animation: fadeIn 400ms ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(70, 250, 255, 0.25));
    transform: translateZ(0); /* Forzar aceleración GPU */
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#dashboard-loader .tagline {
    font-weight: 500;
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 400ms ease-out 200ms forwards;
    position: relative;
    z-index: 1;
}

#dashboard-loader .ring {
    width: 120px;
    height: 120px;
    opacity: 0;
    animation: fadeInRing 400ms ease-out 300ms forwards;
    transform: rotate(-90deg);
    position: relative;
    z-index: 1;
}

@keyframes fadeInRing {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(-90deg) scale(1);
    }
}

#dashboard-loader .ring circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

#dashboard-loader .ring .track {
    stroke: #233;
}

#dashboard-loader .ring .indicator {
    stroke: url(#gradA);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transform-origin: center;
    transition: stroke-dashoffset 0.2s linear;
}

@keyframes spin {
    0% { stroke-dashoffset: 339.292; }
    100% { stroke-dashoffset: 0; }
}

#dashboard-loader .loader-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    min-height: 1.5rem;
    opacity: 0;
    transform: translateY(4px);
    position: relative;
    z-index: 1;
}

.loader-text.animate {
    animation: fadeUp 250ms ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Rotating Statistical Tip */
.stats-tip {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 280px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease, transform 600ms ease;
    position: relative;
    z-index: 1;
}

.stats-tip.visible {
    opacity: 1;
    transform: translateY(0);
}

.stats-tip.hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* Dashboard entrance animation */
#dashboard-content {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

#dashboard-content.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ensure accessibility for reduced motion preferences */
@media (prefers-reduced-motion) {
    #dashboard-loader {
        animation: none;
    }
    #dashboard-loader .ring .indicator {
        animation: none;
        stroke-dashoffset: 0;
    }
    #dashboard-loader .logo,
    #dashboard-loader .tagline {
        animation: none;
        opacity: 1;
    }
    #dashboard-loader .ring {
        animation: none;
        opacity: 1;
    }
    .stats-tip {
        transition: none;
    }
    #dashboard-content {
        transition: none;
    }
    .loader-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 425px) {
    #dashboard-loader .ring {
        width: 88px;
        height: 88px;
    }
    
    #dashboard-loader .logo {
        width: 120px;
    }
    
    #dashboard-loader .tagline {
        font-size: 1rem;
    }
    
    .stats-tip {
        top: 16px;
        right: 16px;
        bottom: auto;
        font-size: 0.8rem;
        max-width: 240px;
        padding: 8px 12px;
    }
}

/* Error state */
#dashboard-error {
    text-align: center;
    padding: 3rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.error-message {
    font-size: 1.1rem;
    color: #aaa;
}

/* Sentiment Indicator */
.sentiment-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sentiment-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.sentiment-label {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Meters */
.meter-container {
    margin-bottom: 1rem;
}

.meter-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4DFFC4, #4D9FFF);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.meter-value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Cost & Duration */
.cost-item {
    margin-bottom: 1rem;
}

.cost-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4DFFC4;
}

.cost-unit {
    font-size: 1rem;
    color: #aaa;
    margin-left: 0.25rem;
}

/* Chips */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.chip.highlight {
    background: rgba(77, 255, 196, 0.15);
    border: 1px solid rgba(77, 255, 196, 0.3);
}

.chip.pain-point {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.chip-icon {
    margin-right: 0.5rem;
}

/* Recommendations */
.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
    border-left: 3px solid var(--accent-green);
    background: rgba(0, 255, 220, 0.05);
}

.recommendation-item:hover {
    background: rgba(0, 255, 220, 0.1);
}

.recommendation-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 2px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.recommendation-checkbox.checked {
    border-color: var(--accent-green);
    background-color: var(--accent-green);
}

.recommendation-checkbox.checked::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
    color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.recommendation-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.2px;
    text-shadow: 0 0 5px rgba(0, 255, 220, 0.3);
}

/* Sección de título para recomendaciones */
#recommendations-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    background: var(--brand-grad);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Contenedor de recomendaciones con un poco más de espacio */
#recommendations {
    padding: 5px;
}

/* Alerts */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    display: flex;
    padding: 0.75rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.alert-placeholder {
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Quotes */
.accordion details {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion summary {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    list-style: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

details[open] summary::after {
    content: '-';
}

.quotes-content {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.quote-block {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #4DFFC4;
    font-style: italic;
}

/* Dashboard Footer */
.dashboard-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.next-button {
    background: linear-gradient(135deg, #00FBDC 0%, #6F5CFF 100%);
    color: #111;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 251, 220, 0.25);
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 251, 220, 0.35);
}

/* Utility classes para el dashboard */
.hidden {
    display: none !important;
}

.is-empty {
    color: #666;
}

/* Hero Panel */
.hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    height: var(--hero-height);
    overflow: hidden;
    margin-bottom: 48px;
}

.hero-logo {
    width: 120px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 10px;
}

.hero-emoji {
    font-size: 64px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero-sentiment-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #14F8FF;
    position: relative;
    z-index: 1;
}

.hero-sentiment-state {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.hero-date {
    font-size: 12px;
    color: #8EA0D8;
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 251, 220, 0.2), rgba(111, 92, 255, 0.05));
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroGlowPulse 8s infinite ease-in-out;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Metric Gauges */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.gauge-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.gauge-svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.gauge-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    color: transparent;
}

.gauge-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Call Facts */
.call-facts {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px 20px;
    align-items: center;
}

.fact-icon {
    font-size: 22px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-label {
    font-size: 14px;
    color: var(--text-muted);
}

.fact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

/* Highlights & Pain Points */
.points-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.points-container::-webkit-scrollbar {
    width: 4px;
}

.points-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.points-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.point-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.point-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.highlight-pill {
    border: 1px solid rgba(20, 248, 255, 0.65);
}

.pain-pill {
    border: 1px solid var(--accent-red);
}

/* Customer Quotes */
.quotes-accordion {
    margin-bottom: 24px;
}

.quotes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: var(--card-radius);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quotes-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quotes-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 251, 220, 0.3);
}

.quotes-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.quotes-toggle[aria-expanded="true"] .quotes-toggle-icon {
    transform: rotate(180deg);
}

.quotes-content {
    padding: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    margin-top: -8px;
    display: none;
}

.quotes-content.visible {
    display: block;
}

.quote-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-green);
}

.quote-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
}

/* Alert Strip */
.alert-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--accent-red), #ff8a4c);
    color: white;
    font-weight: 600;
    display: none; /* Inicialmente oculto, se cambia a flex cuando se muestra */
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
    animation: alertPulse 2s infinite;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.alert-strip.visible {
    transform: translateY(0);
}

.alert-strip-icon {
    font-size: 20px;
}

.alert-strip-message {
    font-size: 14px;
}

@keyframes alertPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dashboard Header */
.dashboard-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.dashboard-header .header-logo {
    height: 24px;
    width: auto;
    margin-right: 16px;
}

.dashboard-header .breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* KPI Row - aumentar margen para separar del hero */
.kpi-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    margin-top: 0;
    width: 100%;
}

.kpi-card {
    flex: 1;
    min-width: clamp(200px, 32%, 340px);
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    height: auto;
}

.kpi-card:hover, .kpi-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 255, 255, 0.12);
    border-color: var(--card-border-hover);
}

.kpi-card-icon {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.kpi-card-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #00FBDC 0%, #6F5CFF 100%);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    animation: flipUp 300ms ease-out forwards;
}

.kpi-card-label {
    font-size: 13px;
    color: #A8B2D1;
}

/* Metrics Row */
.metrics-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

.metric-gauge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-gauge:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 255, 255, 0.12);
}

.gauge-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.gauge-svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
    margin-bottom: 12px;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.gauge-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 4px;
    animation: flipUp 300ms ease-out forwards;
}

.gauge-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Section Titles */
.dashboard-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.15);
    position: relative;
    padding-left: 0;
}

/* Título de sección principal (Conversational Insights) */
.dashboard-section-title.fade-in {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 24px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    text-align: center;
}

.dashboard-section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #00FBDC, #6F5CFF);
    border-radius: 2px;
}

/* El título principal tiene un subrayado más largo y centrado */
.dashboard-section-title.fade-in::before {
    width: 60px;
    left: 50%;
    transform: translateX(-50%);
}

/* Main Sections Spacing */
.dashboard-section {
    margin-bottom: 32px;
}

.main-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

/* Secondary Cards */
.secondary-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.secondary-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Points pills */
.points-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.point-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.highlight-pill {
    border: 1px solid rgba(20, 248, 255, 0.65);
}

.pain-pill {
    border: 1px solid var(--accent-red);
}

/* Animations for state text and KPI values */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hero-sentiment-state {
    animation: fadeIn 250ms ease-out forwards;
}

.kpi-card-value {
    animation: flipUp 300ms ease-out forwards;
}

/* Accessibility */
@media (prefers-reduced-transparency) {
    .hero-sentiment-label {
        color: #14F8FF;
        background: none;
        -webkit-background-clip: unset;
    }
    
    .kpi-card-value {
        color: #14F8FF;
        background: none;
        -webkit-background-clip: unset;
    }
}

/* Aumentar la velocidad del scroll para mejor usabilidad */
@media (min-width: 1024px) {
    .slide-scroll {
        scroll-behavior: smooth;
        scrollbar-width: thin;
    }
    
    .slide-scroll::-webkit-scrollbar {
        width: 6px;
    }
    
    .slide-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 6px;
    }
    
    .slide-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Ajustes para versiones móvil y tablet */
@media (max-width: 1024px) {
    .main-sections-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .metric-gauge {
        padding: 16px;
    }
    
    .gauge-svg {
        width: 100px;
        height: 100px;
    }
    
    .slide-scroll {
        max-height: 65vh;
        padding-bottom: 100px; /* Más espacio para móviles */
        scroll-padding-bottom: 120px; /* Asegurar que el scroll no termine en el botón */
        -webkit-overflow-scrolling: touch; /* Mejorar scroll en iOS */
    }
    
    .kpi-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .kpi-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .kpi-row {
        flex-wrap: wrap;
    }
    
    .kpi-card {
        min-width: 100%;
        margin-bottom: 16px;
    }
    
    .hero-panel {
        padding: 20px 16px;
        margin-bottom: 32px;
        height: auto;
    }
    
    .hero-emoji {
        font-size: 48px;
    }
    
    .hero-sentiment-state {
        font-size: 18px;
    }
    
    /* Mejoras para scroll en móviles */
    .slide-scroll {
        max-height: 60vh; /* Reducir altura para dejar espacio para el botón */
        padding-bottom: 120px; /* Más espacio al final */
        margin-bottom: 20px; /* Espacio extra debajo del scroll */
    }
    
    /* Hacer el indicador de scroll más visible en móviles */
    .scroll-indicator {
        bottom: 20px;
        opacity: 0.9;
        font-size: 18px;
        width: 30px;
        height: 30px;
        display: block; /* Mostrar por defecto en móviles */
    }
    
    /* Mejorar visibilidad del botón continue */
    .dashboard-footer {
        position: relative;
        z-index: 20;
        padding-top: 15px;
        padding-bottom: 20px;
    }
    
    .next-button {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 600;
    }
}

/* Ajustar espaciado de los elementos dentro del div scrolleable */
.slide-scroll > .fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(var(--index, 0) * 100ms);
}

.slide-scroll > .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para los chips de sentimiento */
.sentiment-container {
    margin-bottom: 1.5rem;
}

.sentiment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.sentiment-pill {
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sentiment-pill.positive {
    background: rgba(44, 220, 146, 0.15);
    border-color: rgba(44, 220, 146, 0.4);
}

.sentiment-pill.negative {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
}

/* Fin de estilos para chips de sentimiento */

/* Estilos actualizados para el hero panel con dos columnas */
.hero-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-left, .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hero-customer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.hero-customer-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(126, 87, 255, 0.7);
}

/* Ajustes para asegurar compatibilidad con los estilos existentes */
.hero-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

/* Ajuste para separar la fecha del contenido principal */
.hero-date {
    margin-top: 0.5rem;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-left, .hero-right {
        width: 100%;
    }
}

/* Estilos para la fila de Summary y Emotional Journey */
.summary-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.half-width {
    width: 50%;
    flex: 0 0 50%;
}

.summary-container {
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.summary-container::-webkit-scrollbar {
    width: 6px;
}

.summary-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.summary-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.summary-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0 0.5rem;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .summary-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .half-width {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Estilos para texto de ayuda en móviles */
.mobile-help-text {
    display: none;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .mobile-help-text {
        display: block;
    }
    
    /* Mejorar estilos del botón */
    .next-button {
        position: relative;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #4DFFC4, #565EE1);
        color: #fff;
        border: none;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(77, 255, 196, 0.3);
    }
    
    .button-icon {
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    .next-button:hover .button-icon,
    .next-button:focus .button-icon {
        transform: translateX(4px);
    }
} 