/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: #CC0000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: #CC0000;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #333;
    font-weight: 500;
}

.main-nav a:hover {
    color: #CC0000;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #CC0000;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Home */
.home-hero {
    text-align: center;
    padding: 3rem 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #CC0000;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* Sections */
section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Marcas Grid */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.marca-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.marca-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.marca-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.marca-logo-large {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 2rem;
    display: block;
}

.marca-pais {
    color: #666;
    font-size: 0.9rem;
}

.marca-modelos {
    color: #CC0000;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modelos Grid */
.modelos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modelo-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modelo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.modelo-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modelo-info {
    padding: 1rem;
}

.modelo-marca {
    color: #CC0000;
    font-size: 0.9rem;
    font-weight: 500;
}

.modelo-periodo, .modelo-versiones {
    color: #666;
    font-size: 0.9rem;
}

/* Versiones Grid */
.versiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.version-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.version-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.version-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.version-specs .spec-item {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.version-periodo {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Filtros */
.filtros-combustible {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filtro-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filtro-btn:hover {
    border-color: #CC0000;
    color: #CC0000;
}

.filtro-btn.active {
    background-color: #CC0000;
    color: #fff;
    border-color: #CC0000;
}

/* Ficha Técnica */
.version-ficha {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.version-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.version-subtitle {
    color: #666;
    font-size: 1.2rem;
}

.version-rating {
    margin-top: 1rem;
}

.rating-stars {
    color: #ffa500;
    font-size: 1.5rem;
}

.rating-value {
    font-weight: 600;
    margin-left: 0.5rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

/* Especificaciones */
.ficha-seccion {
    margin-bottom: 3rem;
}

.ficha-seccion h2 {
    font-size: 1.5rem;
    color: #CC0000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.spec-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Opiniones */
.opiniones-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opinion-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

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

.opinion-rating {
    color: #ffa500;
    font-size: 1.2rem;
}

.opinion-texto {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.opinion-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.opinion-autor {
    font-weight: 600;
    color: #333;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #CC0000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #FF0000;
    text-decoration: none;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .stats {
        gap: 2rem;
    }

    .marcas-grid,
    .modelos-grid,
    .versiones-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}
