/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bosch-gen5-color: #007bc0;
    --bosch-gen4-color: #4a90c8;
    --avinox-color: #e74c3c;
    --shimano-color: #003d82;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --super-enduro-color: #d32f2f;
    --enduro-color: #795548;
    --all-mountain-color: #2c3e50;
    --trail-color: #558b2f;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

h1, h2, h3, h4 {
    margin-bottom: 1rem;
}

/* Navegación */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Secciones */
.section {
    display: none;
    padding: 3rem 0;
    min-height: calc(100vh - 80px);
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Analysis Cards */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.analysis-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--bg-white);
}

.card-icon.bosch-gen5,
.card-icon.bosch {
    background: linear-gradient(135deg, var(--bosch-gen5-color), #0096dc);
}

.card-icon.bosch-gen4 {
    background: linear-gradient(135deg, var(--bosch-gen4-color), #72aee6);
}

.card-icon.avinox {
    background: linear-gradient(135deg, var(--avinox-color), #ff6b6b);
}

.card-icon.shimano {
    background: linear-gradient(135deg, var(--shimano-color), #0066cc);
}

.analysis-card h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--bg-light);
    border-bottom: 2px solid var(--bg-light);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.brands-list h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.brands-list p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Criteria Section */
.criteria-section {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.criteria-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.criterion {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.criterion i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.criterion h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.criterion p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.summary-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.summary-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.summary-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Botones */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-reset {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.5rem;
    background: var(--warning-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-reset:hover {
    background: #e67e22;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Models Section */
.models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

.view-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.view-btn.active {
    background: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

/* Sort Control */
.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.sort-control:hover {
    border-color: var(--secondary-color);
}

.sort-control label {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    cursor: pointer;
}

.sort-control select {
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    padding: 0.25rem;
}

.sort-control select option {
    padding: 0.5rem;
}

.compare-btn {
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.compare-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.compare-btn.active {
    background: var(--avinox-color);
}

.compare-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--avinox-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Models Layout with Sidebar */
.models-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.filters-sidebar {
    flex: 0 0 300px;
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.btn-reset-mobile {
    display: none;
    background: var(--warning-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-mobile:hover {
    background: #e67e22;
}

.models-content {
    flex: 1;
    min-width: 0;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-group label i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Collapsible Filter Sections */
.filter-section {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-white);
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-section:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.filter-section-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.filter-section-header span {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-section-header span i {
    color: var(--secondary-color);
}

.filter-section-header .toggle-icon {
    color: var(--text-light);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.filter-section-header:hover .toggle-icon {
    color: var(--secondary-color);
}

.filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1rem;
}

.filter-section-content.expanded {
    max-height: 1000px;
    padding: 1rem;
}

.filter-section-content .filter-group:last-child {
    margin-bottom: 0;
}

/* Filtros */
.filters-section {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.results-info {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    font-weight: 600;
    color: var(--success-color);
    border: 2px solid #a5d6a7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Bikes Grid */
.bikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.bike-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.bike-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bike-card.compare-selected {
    border: 3px solid var(--success-color);
}

.compare-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--bg-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
}

.compare-mode .compare-checkbox {
    display: flex;
}

.compare-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.bike-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-light), #d5dbdb);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bike-image i {
    position: absolute;
    z-index: 1;
}

.bike-content {
    padding: 1.5rem;
}

.bike-header {
    margin-bottom: 1rem;
}

.bike-brand {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.bike-model {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.3rem 0;
}

.bike-motor {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.motor-bosch-gen5,
.motor-bosch {
    background: #e3f2fd;
    color: var(--bosch-gen5-color);
}

.motor-bosch-gen4 {
    background: #e8f4fb;
    color: var(--bosch-gen4-color);
}

.motor-avinox {
    background: #ffebee;
    color: var(--avinox-color);
}

.motor-shimano {
    background: #e8f0f7;
    color: var(--shimano-color);
}

.bike-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    justify-content: center;
}

.spec-item i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.bike-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
}

.bike-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
}

.bike-tipo {
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bike-tipo.super-enduro {
    background: var(--super-enduro-color);
}

.bike-tipo.enduro {
    background: var(--enduro-color);
}

.bike-tipo.all-mountain {
    background: var(--all-mountain-color);
}

.bike-tipo.trail {
    background: var(--trail-color);
}

.btn-add-compare {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--success-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-add-compare:hover {
    background: #229954;
    transform: translateY(-2px);
}

.bike-card.compare-selected .btn-add-compare {
    background: var(--avinox-color);
}

.bike-card.compare-selected .btn-add-compare:hover {
    background: #c0392b;
}

.bike-card.compare-selected .btn-add-compare i {
    transform: rotate(45deg);
}

/* List View */
.bikes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bikes-list .bike-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.bikes-list .bike-image {
    width: 300px;
    min-width: 300px;
    height: 220px;
    border-radius: 15px 0 0 15px;
}

.bikes-list .bike-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.bikes-list .bike-header {
    margin-bottom: 1rem;
}

.bikes-list .bike-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
    flex: 1;
}

.bikes-list .spec-item {
    padding: 0.5rem;
}

.bikes-list .bike-footer {
    margin-top: auto;
    border-top: 2px solid var(--bg-light);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    flex-flow: column;
}

.bikes-list .btn-add-compare {
    width: auto;
    margin-top: 0;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Comparador */
.compare-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.compare-empty i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.compare-empty p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.compare-content {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.compare-actions {
    margin-bottom: 2rem;
    text-align: right;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.comparison-table td {
    background: var(--bg-white);
}

.comparison-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.comparison-bike-header {
    padding: 1.5rem;
    background: var(--bg-light);
}

.comparison-bike-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.comparison-bike-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    background: var(--bg-white);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.modal-spec-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.modal-spec-item h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-spec-item h4 .spec-icon {
    color: var(--secondary-color);
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.modal-spec-item p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 1.6rem;
}

.modal-spec-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.modal-spec-item a:hover {
    color: var(--bosch-gen5-color);
    text-decoration: underline;
}

.modal-spec-item a i {
    margin-left: 0.3rem;
    font-size: 0.85em;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .models-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        flex: 1;
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .btn-reset-mobile {
        display: block;
    }

    .btn-reset {
        display: none;
    }

    .bikes-list .bike-image {
        width: 250px;
        min-width: 250px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .models-header h1 {
        font-size: 1.8rem;
    }

    .view-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .sort-control {
        width: 100%;
        justify-content: center;
    }

    .sort-control select {
        flex: 1;
        text-align: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .bikes-grid {
        grid-template-columns: 1fr;
    }

    .bikes-list .bike-card {
        flex-direction: column;
    }

    .bikes-list .bike-image {
        width: 100%;
        height: 250px;
        border-radius: 15px 15px 0 0;
    }

    .bikes-list .bike-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .bikes-list .bike-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .bikes-list .btn-add-compare {
        width: 100%;
        margin-left: 0;
    }

    .bike-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-specs-grid {
        grid-template-columns: 1fr;
    }

    .results-info {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .summary-item h3 {
        font-size: 2rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bike-card {
    animation: fadeIn 0.5s ease;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.loading i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: var(--bg-white);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-content strong {
    color: var(--bg-white);
    font-weight: 700;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.youtube-link i {
    font-size: 1.3rem;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .youtube-link {
        width: 100%;
        justify-content: center;
    }
}
