:root {
    --bg-dark: #0a0c10;
    --card-bg: rgba(23, 25, 30, 0.7);
    --blue: #0070f3;
    --cyan: #00f0ff;
    --purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #9ba1b0;
    --border: rgba(255, 255, 255, 0.1);
    --accent: linear-gradient(135deg, #0070f3, #00f0ff);
    --section-margin: 3rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a1f2e 0%, var(--bg-dark) 100%);
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 { top: -200px; left: -100px; background: var(--blue); }
.glow-2 { bottom: -200px; right: -100px; background: var(--purple); }

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(10, 12, 16, 0.95);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: contain;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 50px;
}

.side-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.side-nav a:hover, .side-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.association-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aqua-logo {
    height: 120px; /* 2x larger than previous 60px */
    width: auto;
    opacity: 1;
    transition: all 0.3s ease;
    filter: none;
}

.aqua-logo:hover {
    opacity: 1;
    filter: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 4rem;
    max-width: 1400px;
}

.main-content > section, 
.main-content > header, 
.main-content > div {
    margin-bottom: var(--section-margin) !important;
}

.main-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Hero Premium */
.hero-premium {
    margin-bottom: var(--section-margin);
}

.agency-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 112, 243, 0.1);
    color: var(--blue);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-premium h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.accent {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-stat-item .value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: var(--section-margin);
}

.kpi-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.kpi-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.highlight-cyan { color: var(--cyan); }
.highlight-blue { color: var(--blue); }

.kpi-trend {
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-up { color: #4ade80; }

/* Detailed Strategy */
.strategy-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.strategy-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.strategy-block h3, .social-strategy h3 {
    margin-bottom: 2.5rem;
    color: var(--cyan);
}

.city-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chip strong {
    color: #fff;
    margin-left: 0.3rem;
}

.strategy-list-horizontal {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 1.5rem 0;
}

.strategy-list-horizontal li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.debilidad-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.debilidad-list li {
    font-size: 0.85rem;
    color: #f87171;
    margin-bottom: 0.3rem;
    padding-left: 1.2rem;
    position: relative;
}

.debilidad-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

.error-box {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.check-item {
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

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

.social-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 16px;
    text-align: center;
}

.social-stat .val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.social-stat .lab {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.highlight-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-top: 1rem;
}

.market-insight.highlight {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.2rem;
    border-radius: 16px;
}

.insight-box.highlight {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.insights-grid-expanded {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.insight-main {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple);
}

.shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.shift-from, .shift-to {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
}

.shift-from .label, .shift-to .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.shift-to {
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.shift-to p {
    color: var(--cyan);
    font-weight: 600;
}

/* Distribution Bar */
.distribution-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.dist-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.educacion { background: var(--blue); }
.social { background: var(--cyan); color: #000; }
.producto { background: var(--purple); }

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.format {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
}

/* SEO/GEO Audit */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin-bottom: 2rem;
}

.audit-item h5 {
    color: var(--cyan);
    margin-bottom: 1rem;
}

.audit-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.single-line-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

/* Insights Expanded */
.insight-main {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
}

.insight-main h4 {
    color: var(--cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.insight-main p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mt-2 { margin-top: 2rem; }

.insight-secondary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mini-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    transition: all 0.3s ease;
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.highlight-cyan-border {
    border-left: 3px solid var(--cyan) !important;
    background: rgba(0, 240, 255, 0.05) !important;
}

.mini-card h5 {
    margin-bottom: 0.5rem;
}

.mini-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Charts Enhanced */
.chart-container {
    height: 400px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.chart-container-large {
    height: 500px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.chart-container canvas, .chart-container-large canvas {
    max-width: 100% !important;
    max-height: calc(100% - 40px) !important; /* Leave space for H3 */
}

.chart-main {
    width: 100%;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Utils */
.nowrap {
    white-space: nowrap;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.3s; }
.delay-5 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.5s; }
.delay-7 { animation-delay: 0.6s; }
.delay-8 { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .strategy-columns, .insights-grid-expanded { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .sidebar { width: 80px; padding: 2rem 1rem; }
    .sidebar-logo span, .side-nav a, .sidebar-footer { display: none; }
    .main-content { margin-left: 80px; padding: 2.5rem; }
    .hero-premium h1 { font-size: 3rem; }
}

/* Premium Table */
.seo-table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.premium-table th {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.premium-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.premium-table td.num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status.alta { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.status.media { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.status.baja { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

/* Roadmap Desktop Spacing */
.roadmap-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}


@media (max-width: 800px) {
    .kpi-grid, .audit-grid, .chart-row, .formats-grid, .social-stats-row, .strategy-list-horizontal { 
        grid-template-columns: 1fr; 
        flex-direction: column;
    }
/* Roadmap */
.roadmap-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.roadmap-item {
    padding: 2.5rem;
    border-top: none;
    border-left: 4px solid var(--blue);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-item ul {
    margin-top: 1rem;
}

.roadmap-phase {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
}

.roadmap-item ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.roadmap-item li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.roadmap-item li strong {
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}

.highlight-border {
    border-top: 4px solid var(--purple) !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

@media (max-width: 1000px) {
    .roadmap-grid { grid-template-columns: 1fr; }
}

