/* ==========================================================================
   Fijate Tools - Comparador de Precios de Supermercados
   Hojas de estilo canónicas con soporte para tema claro y oscuro
   ========================================================================== */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Colores corporativos */
    --color-mercadona: #008f52;
    --color-mercadona-light: #e6f7ef;
    --color-mercadona-dark: #00683b;
    --color-consum: #ea580c;
    --color-consum-light: #ffedd5;
    --color-consum-dark: #c2410c;

    /* Superficies y textos (modo claro por defecto) */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-alt: #f8fafc;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --badge-win-bg: #dcfce7;
    --badge-win-text: #15803d;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.09);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --bg-page: #0b0f17;
    --bg-surface: #141b26;
    --bg-surface-elevated: #1e293b;
    --bg-surface-alt: #162030;
    --border-color: #243042;
    --border-focus: #60a5fa;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --color-mercadona-light: rgba(0, 143, 82, 0.18);
    --color-consum-light: rgba(234, 88, 12, 0.18);

    --badge-win-bg: rgba(34, 197, 94, 0.2);
    --badge-win-text: #4ade80;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Contención canónica del layout
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.tool-layout {
    max-width: 1200px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
    flex: 1 0 auto;
    width: 100%;
}

.tool-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.tool-main-content {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* ==========================================================================
   Hero & Buscador interactivo
   ========================================================================== */
.comparator-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.hero-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Formulario buscador */
.search-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.5rem;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-icon-left {
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    color: var(--text-muted);
}

.search-input-field {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem 0.75rem;
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.search-input-field::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.search-clear-btn:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.search-submit-btn {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.15s, transform 0.1s active;
}

.search-submit-btn:hover {
    background: var(--accent-blue-hover);
}

/* Chips de acceso rápido */
.quick-chips-section {
    margin-top: 1.25rem;
}

.quick-chips-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.65rem;
    text-align: center;
}

.quick-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.quick-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    min-height: 34px;
}

.quick-chip:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.quick-chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

/* ==========================================================================
   Barra de control y filtros
   ========================================================================== */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tabs-group {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--text-primary);
    color: var(--bg-page);
    border-color: var(--text-primary);
}

.filter-group {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.filter-chip {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    min-height: 32px;
    transition: all 0.15s;
}

.filter-chip:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.filter-chip.active {
    background: var(--bg-surface-elevated);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==========================================================================
   Vista Versus (Cara a cara)
   ========================================================================== */
.versus-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.versus-verdict-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.winner-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.winner-mercadona {
    background: var(--color-mercadona-light);
    color: var(--color-mercadona-dark);
}

[data-theme="dark"] .winner-mercadona {
    color: #4ade80;
}

.winner-consum {
    background: var(--color-consum-light);
    color: var(--color-consum-dark);
}

[data-theme="dark"] .winner-consum {
    color: #fb923c;
}

.winner-tie {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
}

.verdict-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Cuadrícula de tarjetas enfrentadas */
.versus-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.versus-badge-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.vs-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.diff-chip {
    font-family: var(--font-mono);
    font-size: 0.775rem;
    font-weight: 700;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

/* Tarjeta de producto */
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.product-card.is-winner {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px #22c55e, var(--shadow-md);
}

.supermarket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.super-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-mercadona {
    background: var(--color-mercadona);
    color: #ffffff;
}

.badge-consum {
    background: var(--color-consum);
    color: #ffffff;
}

.brand-pill {
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.brand-leader {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
}

.product-media {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .product-media {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.winner-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #22c55e;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    flex: 1;
    line-height: 1.35;
}

.price-container {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.unit-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.reference-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-card-add {
    width: 100%;
    min-height: 40px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-card-add:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

/* Barra de acción versus */
.versus-action-bar {
    text-align: center;
    margin-top: 0.5rem;
}

.btn-add-pair {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #10b981;
    color: #ffffff;
    border: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: background-color 0.15s, transform 0.1s;
}

.btn-add-pair:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Vista de catálogo simple */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ==========================================================================
   Simulador de la Cesta de la compra
   ========================================================================== */
.cart-simulator-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
}

.cart-title-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cart-title {
    font-size: 1.25rem;
}

.cart-count-badge {
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.cart-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cart-tool {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-cart-tool:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.btn-cart-share {
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-cart-share:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* Lista de filas de la cesta */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cart-row {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cart-row-left {
    flex: 1 1 240px;
}

.cart-row-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-row-subprices {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.subprice-m { color: var(--color-mercadona); font-weight: 600; }
.subprice-c { color: var(--color-consum); font-weight: 600; }

.cart-item-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
}

.tag-m { background: var(--color-mercadona-light); color: var(--color-mercadona-dark); }
.tag-c { background: var(--color-consum-light); color: var(--color-consum-dark); }
.tag-tie { background: var(--bg-surface-elevated); color: var(--text-muted); }

.cart-row-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    overflow: hidden;
}

.btn-qty {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.btn-qty:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.qty-number {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 0.5rem;
    min-width: 24px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
}

.btn-remove-item:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Panel de totales y ahorro */
.cart-summary-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.cart-totals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.total-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    text-align: center;
}

.block-mercadona { border-top: 3px solid var(--color-mercadona); }
.block-consum { border-top: 3px solid var(--color-consum); }

.total-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-savings-banner {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.savings-info {
    flex: 1 1 200px;
}

.savings-highlight {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.savings-annual {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-pill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.winner-m { background: var(--color-mercadona-light); color: var(--color-mercadona-dark); }
.winner-c { background: var(--color-consum-light); color: var(--color-consum-dark); }
.tie { background: var(--bg-surface-elevated); color: var(--text-secondary); }

/* ==========================================================================
   Sección didáctica SEO y acordeón explicativo
   ========================================================================== */
.seo-guide-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.guide-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.guide-lead {
    font-size: 0.975rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-alt);
    overflow: hidden;
}

.faq-summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

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

.faq-summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

details[open] .faq-summary::after {
    content: "−";
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.faq-content ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.faq-content li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   Modales y Toast
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 440px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.modal-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 40px;
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: #ffffff;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 40px;
}

.toast-box {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    pointer-events: none;
}

[data-theme="dark"] .toast-box {
    background: #ffffff;
    color: #0f172a;
}

.toast-box.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Indicador de carga */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive & Móvil
   ========================================================================== */
@media (max-width: 860px) {
    .versus-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .versus-badge-divider {
        flex-direction: row;
        margin: 0.5rem 0;
    }

    .cart-totals-grid {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs-group {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    .filter-group {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}
