/*
Theme Name: VidaTour Agency Theme
Theme URI: https://vidatour.cl
Author: VidaTour
Description: Tema minimalista para herramientas SaaS con Dark Mode nativo.
Version: 1.0
*/

:root {
    /* --- PALETA MODO OSCURO (PREDETERMINADO) --- */
    --vt-bg: #0f172a;       /* Fondo oscuro profundo */
    --vt-card-bg: #1e293b;  /* Fondo de tarjetas */
    --vt-text: #f8fafc;     /* Texto claro */
    --vt-text-muted: #94a3b8;
    --vt-primary: #3b82f6;  /* Azul brillante */
    --vt-border: #334155;
    --vt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* --- PALETA MODO CLARO (Sobrescribe si tiene la clase .light-mode) --- */
body.light-mode {
    --vt-bg: #f8fafc;
    --vt-card-bg: #ffffff;
    --vt-text: #0f172a;
    --vt-text-muted: #64748b;
    --vt-primary: #2563eb;
    --vt-border: #e2e8f0;
    --vt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- RESET BÁSICO --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--vt-bg);
    color: var(--vt-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- LAYOUT --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--vt-border);
    margin-bottom: 40px;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: var(--vt-primary); text-decoration: none; }
.logo span { color: var(--vt-text); }

/* Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--vt-border);
    color: var(--vt-text);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.theme-toggle:hover { background: var(--vt-card-bg); }

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--vt-text-muted);
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid var(--vt-border);
}

/* --- INTEGRACIÓN CON EL PLUGIN SEO --- */
/* Forzamos al plugin a usar las variables del tema para que se adapte */
.vt-seo-card, .vt-score-section, .vt-metric-card {
    background: var(--vt-card-bg) !important;
    color: var(--vt-text) !important;
    border: 1px solid var(--vt-border);
}
.vt-seo-wrapper h3, .vt-seo-wrapper h2 { color: var(--vt-text) !important; }
.vt-metric-msg { color: var(--vt-text-muted) !important; }
.vt-score-number { color: var(--vt-dark) !important; } /* El gráfico circular necesita fondo claro interno, ojo ahí */
/* Ajuste especial para el gráfico en modo oscuro */
body:not(.light-mode) .vt-gauge-inner { background: #1e293b; }
body:not(.light-mode) .vt-score-number { color: #fff !important; }