/*
Theme Name: ReviewPro
Theme URI: https://reviewpro.ai
Author: Local Graph LLC
Author URI: https://localgraph.io
Description: Herramienta de analisis de resenas de Google Maps con IA
Version: 1.0.0
License: Proprietary
Text Domain: reviewpro
*/

:root {
    --rp-primary: #6366F1;
    --rp-primary-dark: #4F46E5;
    --rp-primary-light: #818CF8;
    --rp-primary-50: #EEF2FF;
    --rp-primary-100: #E0E7FF;
    --rp-primary-200: #C7D2FE;

    --rp-gray-50: #FAFAFA;
    --rp-gray-100: #F5F5F5;
    --rp-gray-200: #EAEAEA;
    --rp-gray-300: #D4D4D4;
    --rp-gray-400: #999999;
    --rp-gray-500: #666666;
    --rp-gray-600: #444444;
    --rp-gray-700: #333333;
    --rp-gray-800: #222222;
    --rp-gray-900: #111111;

    --rp-success: #10B981;
    --rp-success-bg: rgba(16, 185, 129, 0.08);
    --rp-warning: #F59E0B;
    --rp-warning-bg: rgba(245, 158, 11, 0.08);
    --rp-error: #EF4444;
    --rp-error-bg: rgba(239, 68, 68, 0.08);

    --rp-font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rp-radius: 8px;
    --rp-radius-lg: 12px;
    --rp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --rp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --rp-shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--rp-font);
    color: var(--rp-gray-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   BUTTONS
   ============================================ */

.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--rp-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.rp-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rp-btn-primary {
    background: var(--rp-primary);
    color: #fff;
    border-color: var(--rp-primary);
}

.rp-btn-primary:hover {
    background: var(--rp-primary-dark);
    border-color: var(--rp-primary-dark);
}

.rp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rp-btn-secondary {
    background: #fff;
    color: var(--rp-gray-700);
    border-color: var(--rp-gray-200);
}

.rp-btn-secondary:hover {
    background: var(--rp-gray-50);
    border-color: var(--rp-gray-300);
}

.rp-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--rp-radius-lg);
}

/* ============================================
   WIZARD
   ============================================ */

.rp-wizard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rp-wizard-header {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rp-gray-200);
}

.rp-wizard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rp-gray-900);
    text-decoration: none;
}

.rp-wizard-progress {
    display: flex;
    gap: 8px;
}

.rp-wizard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-gray-200);
    transition: all 0.3s ease;
}

.rp-wizard-dot.active {
    background: var(--rp-primary);
    transform: scale(1.2);
}

.rp-wizard-dot.done {
    background: var(--rp-success);
}

.rp-wizard-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.rp-step {
    max-width: 520px;
    width: 100%;
    animation: rp-fadeIn 0.3s ease;
}

@keyframes rp-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rp-step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--rp-gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.rp-step-subtitle {
    font-size: 15px;
    color: var(--rp-gray-500);
    margin-bottom: 32px;
}

.rp-field {
    margin-bottom: 24px;
}

.rp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rp-gray-700);
    margin-bottom: 6px;
}

.rp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius);
    font-size: 15px;
    font-family: var(--rp-font);
    transition: border-color 0.15s ease;
    outline: none;
}

.rp-input:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px var(--rp-primary-50);
}

.rp-hint {
    font-size: 12px;
    color: var(--rp-gray-400);
    margin-top: 6px;
}

.rp-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* ============================================
   BUSINESS CARD (confirmation step)
   ============================================ */

.rp-biz-card {
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.rp-biz-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--rp-radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--rp-gray-100);
}

.rp-biz-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rp-biz-info p {
    font-size: 14px;
    color: var(--rp-gray-500);
    margin-bottom: 4px;
}

.rp-biz-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rp-gray-700);
}

.rp-biz-rating .stars {
    color: #FBBF24;
}

/* ============================================
   PROCESSING SCREEN
   ============================================ */

.rp-processing {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.rp-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--rp-gray-200);
    border-top-color: var(--rp-primary);
    border-radius: 50%;
    animation: rp-spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes rp-spin {
    to { transform: rotate(360deg); }
}

.rp-processing h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rp-processing p {
    font-size: 14px;
    color: var(--rp-gray-500);
}

/* ============================================
   REPORT
   ============================================ */

.rp-report {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.rp-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rp-gray-200);
}

.rp-report-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rp-gray-900);
    letter-spacing: -0.02em;
}

.rp-report-meta {
    font-size: 13px;
    color: var(--rp-gray-500);
    margin-top: 4px;
}

.rp-score-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rp-primary-50);
    color: var(--rp-primary);
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.rp-section {
    margin-bottom: 40px;
}

.rp-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--rp-gray-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-card {
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-lg);
    padding: 24px;
    background: #fff;
}

.rp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rp-chart-container {
    position: relative;
    height: 250px;
}

.rp-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rp-progress-label {
    min-width: 140px;
    font-size: 13px;
    color: var(--rp-gray-700);
}

.rp-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--rp-gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.rp-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rp-progress-fill.positive { background: var(--rp-success); }
.rp-progress-fill.negative { background: var(--rp-error); }
.rp-progress-fill.neutral { background: var(--rp-warning); }
.rp-progress-fill.primary { background: var(--rp-primary); }

.rp-progress-value {
    min-width: 40px;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: var(--rp-gray-600);
}

/* Strengths / Weaknesses */
.rp-insight-list {
    list-style: none;
}

.rp-insight-item {
    padding: 16px;
    border: 1px solid var(--rp-gray-100);
    border-radius: var(--rp-radius);
    margin-bottom: 10px;
}

.rp-insight-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rp-insight-item p {
    font-size: 13px;
    color: var(--rp-gray-500);
    font-style: italic;
}

.rp-insight-item .rp-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.rp-tag-green { background: var(--rp-success-bg); color: #065F46; }
.rp-tag-red { background: var(--rp-error-bg); color: #991B1B; }

/* Recommendations */
.rp-rec-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--rp-gray-100);
    border-radius: var(--rp-radius);
    margin-bottom: 10px;
}

.rp-rec-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rp-primary-50);
    color: var(--rp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.rp-rec-item p {
    font-size: 14px;
    color: var(--rp-gray-700);
}

/* Word Cloud */
.rp-wordcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
}

.rp-word {
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--rp-gray-100);
    font-size: 13px;
    color: var(--rp-gray-700);
    transition: all 0.2s;
}

.rp-word.size-lg { font-size: 18px; font-weight: 600; background: var(--rp-primary-50); color: var(--rp-primary); }
.rp-word.size-md { font-size: 15px; font-weight: 500; }
.rp-word.size-sm { font-size: 12px; }

/* ============================================
   LANDING PAGE
   ============================================ */

.rp-landing { overflow-x: hidden; }

.rp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.rp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rp-gray-900);
    text-decoration: none;
}

.rp-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
}

.rp-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--rp-gray-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.rp-hero h1 span {
    background: linear-gradient(135deg, var(--rp-primary), #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rp-hero .rp-hero-sub {
    font-size: 18px;
    color: var(--rp-gray-500);
    max-width: 560px;
    margin: 0 auto 40px;
}

.rp-features {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rp-feature-card {
    padding: 32px;
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-lg);
    transition: border-color 0.2s;
}

.rp-feature-card:hover {
    border-color: var(--rp-primary-200);
}

.rp-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rp-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.rp-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--rp-primary);
}

.rp-feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rp-feature-card p {
    font-size: 14px;
    color: var(--rp-gray-500);
    line-height: 1.5;
}

.rp-pricing-section {
    background: var(--rp-gray-50);
    padding: 80px 32px;
    text-align: center;
}

.rp-pricing-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.rp-pricing-section .rp-pricing-sub {
    color: var(--rp-gray-500);
    margin-bottom: 40px;
}

.rp-pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-lg);
    padding: 40px;
    text-align: left;
}

.rp-pricing-card .price {
    font-size: 40px;
    font-weight: 800;
    color: var(--rp-gray-900);
    letter-spacing: -0.02em;
}

.rp-pricing-card .price-note {
    font-size: 14px;
    color: var(--rp-gray-400);
    margin-bottom: 24px;
}

.rp-pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.rp-pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--rp-gray-700);
    margin-bottom: 12px;
}

.rp-pricing-features li svg {
    width: 16px;
    height: 16px;
    color: var(--rp-success);
    flex-shrink: 0;
}

.rp-footer {
    padding: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--rp-gray-400);
    border-top: 1px solid var(--rp-gray-100);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .rp-hero h1 { font-size: 32px; }
    .rp-hero { padding: 60px 20px; }
    .rp-features { grid-template-columns: 1fr; padding: 0 20px 60px; }
    .rp-grid-2 { grid-template-columns: 1fr; }
    .rp-biz-card { flex-direction: column; }
    .rp-report-header { flex-direction: column; gap: 16px; }
}

/* ============================================
   PRINT / PDF
   ============================================ */

@media print {
    .rp-btn, .rp-report-actions { display: none !important; }
    .rp-report { padding: 20px; }
    .rp-section { break-inside: avoid; }
    .rp-card { border: 1px solid #eee; }
}
