/* 
 * TodoReseña - VS Template Styles (Comparativa Cara a Cara)
 */

:root {
    /* Base variables (duplicated from custom-home.css — loaded here so VS works standalone) */
    --primary:        #4f46e5;
    --primary-dark:   #4338ca;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --star-gold:  #fbbf24;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.025);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --pro-green:  #16a34a;
    --con-red:    #dc2626;
    --success:    #16a34a;
    /* VS-specific */
    --vs-color-a: #2563eb;
    --vs-color-b: #16a34a;
    --vs-color-a-light: rgba(37, 99, 235, 0.1);
    --vs-color-b-light: rgba(22, 163, 74, 0.1);
}

.vs-main-container {
    background: var(--gray-50);
    padding-bottom: 5rem;
    font-family: var(--font-body);
}

.vs-main-container .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.vs-header {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}
.vs-breadcrumbs {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}
.vs-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.vs-h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.vs-meta {
    font-size: 0.9rem;
    color: var(--gray-600);
}
.tested-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Botones específicos de producto */
.btn-primary-a {
    display: inline-block;
    background: var(--vs-color-a);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-primary-a:hover { background: #1d4ed8; color: white; transform: translateY(-2px); }

.btn-primary-b {
    display: inline-block;
    background: var(--vs-color-b);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-primary-b:hover { background: #15803d; color: white; transform: translateY(-2px); }

/* Layout 50/50 Base */
.vs-split-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
}

.vs-side {
    display: flex;
    flex-direction: column;
}
.vs-side-a {
    border-top: 4px solid var(--vs-color-a);
    padding-top: 1rem;
}
.vs-side-b {
    border-top: 4px solid var(--vs-color-b);
    padding-top: 1rem;
}

.vs-divider-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vs-divider-center::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, var(--vs-color-a), var(--vs-color-b));
    opacity: 0.2;
}
.vs-circle {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.2rem;
    border: 4px solid white;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}
.vs-small {
    width: 40px; height: 40px;
    font-size: 0.9rem;
    border-width: 3px;
}

@media (max-width: 768px) {
    .vs-split-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .vs-divider-center { padding: 1rem 0; }
    .vs-divider-center::before {
        width: 100%; height: 2px;
        top: 50%; left: 0; bottom: auto;
        transform: translateY(-50%);
    }
}

/* Elementos del Hero Box */
.vs-hero-box {
    margin-bottom: 2rem;
}
.hero-title {
    text-align: center;
    margin-bottom: 2rem;
}
.side-header { text-align: center; margin-bottom: 2rem; }
.vs-product-img {
    height: 200px;
    object-fit: contain;
    margin: 1rem auto;
}
.side-reasons ul { list-style: none; padding: 0; }
.side-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.vs-side-a svg { width: 18px; color: var(--vs-color-a); flex-shrink: 0; margin-top: 3px; }
.vs-side-b svg { width: 18px; color: var(--vs-color-b); flex-shrink: 0; margin-top: 3px; }

.tldr-box {
    background: var(--gray-900);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Tabla Especificaciones */
.vs-table-wrapper {
    background: white;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.vs-specs-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
.vs-specs-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 800;
}
.vs-specs-table .th-a { background: var(--vs-color-a-light); color: var(--vs-color-a); }
.vs-specs-table .th-b { background: var(--vs-color-b-light); color: var(--vs-color-b); }

.vs-specs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.vs-specs-table tr.section-row td {
    background: var(--gray-100);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gray-500);
    letter-spacing: 1px;
}
.vs-specs-table tr.winner-row td {
    font-weight: 700;
}
.vs-specs-table td.is-winner {
    background: #ecfdf5;
    color: #047857;
}

/* Detalles por secciones */
.vs-detail-block {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}
.score-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
}

.vs-winner-banner {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
}
.banner-a { background: var(--vs-color-a-light); color: #1e3a8a; border: 1px solid rgba(37,99,235,0.2); }
.banner-b { background: var(--vs-color-b-light); color: #064e3b; border: 1px solid rgba(22,163,74,0.2); }

/* Calculadora Interactiva */
.decision-calc-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 3rem;
    border-radius: 20px;
}
.question-item {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.question-item h4 { margin-bottom: 1rem; color: white; }
.question-item label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.calc-result-box {
    background: white;
    color: var(--gray-900);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}
.calc-result-box h3 { font-size: 2rem; margin-bottom: 1rem; }

/* Veredicto Final */
.border-a { border: 2px solid var(--vs-color-a); border-radius: 16px; }
.border-b { border: 2px solid var(--vs-color-b); border-radius: 16px; }
.color-a { color: var(--vs-color-a); }
.color-b { color: var(--vs-color-b); }

.check-list { list-style: none; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}
