/* DatoPicada Comparador de Precios */
.dp-wrap {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dp-search-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 24px;
}

.dp-title {
    color: #fff;
    font-size: 28px;
    margin: 0 0 6px;
    font-weight: 700;
}

.dp-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin: 0 0 24px;
}

.dp-input-wrap {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 0;
}

.dp-input-wrap input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: none;
    border-radius: 10px 0 0 10px;
    outline: none;
}

.dp-input-wrap button {
    padding: 14px 28px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dp-input-wrap button:hover {
    background: #d97706;
}

/* Loading */
.dp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #2d5a8e;
    border-radius: 50%;
    animation: dp-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* Best Price Banner */
.dp-best-price {
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dp-best-price .dp-best-icon {
    font-size: 32px;
}

.dp-best-price .dp-best-info h3 {
    margin: 0 0 4px;
    color: #065f46;
    font-size: 18px;
}

.dp-best-price .dp-best-info p {
    margin: 0;
    color: #047857;
    font-size: 14px;
}

.dp-best-price .dp-best-price-tag {
    margin-left: auto;
    font-size: 28px;
    font-weight: 700;
    color: #065f46;
}

/* Results Table */
.dp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dp-table thead {
    background: #f8fafc;
}

.dp-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.dp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.dp-table tr:last-child td {
    border-bottom: none;
}

.dp-table tr:hover {
    background: #f8fafc;
}

.dp-table tr.dp-cheapest {
    background: #f0fdf4;
}

.dp-table .dp-product-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.dp-table .dp-product-brand {
    color: #6b7280;
    font-size: 12px;
}

.dp-table .dp-price {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.dp-table .dp-price-cheapest {
    color: #059669;
}

.dp-table .dp-list-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
}

.dp-table .dp-promo {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.dp-table .dp-super-name {
    font-weight: 600;
    color: #1e3a5f;
}

.dp-table .dp-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
}

.dp-table .dp-link:hover {
    text-decoration: underline;
}

.dp-table .dp-updated {
    color: #9ca3af;
    font-size: 11px;
}

.dp-table .dp-badge-best {
    background: #10b981;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
}

.dp-product-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9fafb;
}

/* No results */
.dp-no-results {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

/* Disclaimer */
.dp-disclaimer {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* All products toggle */
.dp-toggle-all {
    text-align: center;
    margin-top: 16px;
}

.dp-toggle-all button {
    background: none;
    border: 1px solid #d1d5db;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    color: #4b5563;
    font-size: 14px;
}

.dp-toggle-all button:hover {
    background: #f3f4f6;
}

/* Responsive */
@media (max-width: 600px) {
    .dp-search-box { padding: 24px 16px; }
    .dp-title { font-size: 22px; }
    .dp-input-wrap { flex-direction: column; gap: 8px; }
    .dp-input-wrap input { border-radius: 10px; }
    .dp-input-wrap button { border-radius: 10px; }
    .dp-best-price { flex-direction: column; text-align: center; }
    .dp-best-price .dp-best-price-tag { margin-left: 0; }
    .dp-table th:nth-child(3), .dp-table td:nth-child(3) { display: none; }
    .dp-product-img { width: 40px; height: 40px; }
}
