:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --amazon-orange: #ff9900;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #334155;
    --border: #e2e8f0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0;
    background-color: #f8fafc; color: #334155;
}
.flex-container{display: grid;min-height: 100dvh; grid-template-rows: auto 1fr auto;}
header { background-color: #1e293b; color: white; padding: 1rem 1rem; text-align: center; }
h1 { margin: 0 0 1rem 0; font-size: 2 rem; }
.logo {display: flex;justify-content: center; align-items: center; text-align: center;}
.logo img{max-width: 80px;padding:0px 0px 0px 0px; border-radius: 50%;}
.logo h1{padding:0px 0px 0px 30px; font-size: 60px}
.tabs { display: flex; justify-content: center; gap: 0.5rem; }
.tab-btn {
    background-color: #334155; color: #cbd5e1; border: none;
    padding: 0.75rem 1.2rem; cursor: pointer; font-size: 0.95rem;
    border-radius: 6px; transition: all 0.3s ease;
}
.tab-btn:hover, .tab-btn.active { background-color: #2563eb; color: white; }
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem;}
.container-footer-sections { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.tab-content { display: none;}
.tab-content.active { display: block; }
.search-container { position: relative; max-width: 500px; margin: 1.5rem 0; }
#auto-search { width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 1rem; box-sizing: border-box; }
.dropdown-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid #e2e8f0; border-top: none;
    list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.dropdown-list li { padding: 0.75rem; cursor: pointer; border-bottom: 1px solid #e2e8f0; }
.dropdown-list li:hover { background-color: #f1f5f9; }
.table-responsive { width: 100%;min-height: 600px; overflow-x:auto; margin-top: 2rem; background: #ffffff; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.compare-table { width: 100%;table-layout:fixed; border-collapse: collapse; text-align:center; min-width: 600px;}
.compare-table th, .compare-table td { padding: 1rem; border: 1px solid var(--border); vertical-align: top; }
.compare-table td.spec-label { font-weight: bold; background-color: #f1f5f9; color: #1e293b; max-width: 150px; }
.compare-table th { background-color: #f8fafc; color: #1e293b; font-size: 1.1rem; }
.table-car-img { width: 100%; max-width: 200px; height: 90px; object-fit: contain; border-radius: 4px; background-color: white; margin-top: 0.5rem; }
.btn-remove-td { background-color: #ef4444; color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.85rem; margin-top: 0.5rem; }
.btn-remove-td:hover { background-color: #dc2626; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; background: #f1f5f9; padding: 1rem; border-radius: 6px; margin-bottom: 2rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.85rem; font-weight: bold; }
.filter-group select, .filter-group input { padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 4px; }
.results-grid { display: grid;width: 100%;min-height: 600px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.results-grid p{grid-column: 1 / -1;}
.car-simple-card { background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-align: center; }
.car-simple-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { background: white; border-top: 4px solid #2563eb; padding: 1.5rem; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-align: center;}
.news-card img {display:block; margin-left: auto; margin-right: auto;}
.news-card p {text-align: justify;}
.badge { background-color: #eff6ff; color: #2563eb; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: bold; display: inline-block; border-radius: 4px; margin-bottom: 0.5rem;}
.tabla-centrada {margin: 0 auto; width: 80%; text-align: center;box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
.tabla-centrada td{border-bottom: 1px solid #dddddd;}
.tabla-centrada th{background-color: #caddf8;}
.tabla-centrada tr td:nth-child(3){font-weight: bold;color: #1d4ed8;}
.main-footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 3rem 1rem 2rem 1rem;
    font-size: 0.9rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-block h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    border-bottom: 2px solid #334155;
    padding-bottom: 0.5rem;
}
.footer-block p { margin: 0.5rem 0; }
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.social-links a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s;
}
.social-links a:hover { color: white; text-decoration: underline; }
.btn-send-compare {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-send-compare:hover {
    background-color: #1d4ed8;
}

.btn-send-compare:active {
    transform: scale(0.98);
}
.table-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.btn-clear-all {
    background-color: #475569;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-clear-all:hover {
    background-color: #ef4444;
}
summary {
  cursor: pointer;
  display: list-item;
}