/* ===================================
   Pages Styles (Adicional al styles.css)
   =================================== */

/* Page Header */
.page-header {
    height: 200px;
    background: linear-gradient(135deg, rgba(225, 0, 15, 1) 0%, rgba(26, 26, 26, 1) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    margin: 30px 20px;
    max-width: calc(1600px - 40px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Adaptación page-header según tamaño de pantalla */
@media (max-width: 1800px) {
    .page-header {
        max-width: calc(1400px - 40px);
    }
}

@media (max-width: 1500px) {
    .page-header {
        max-width: calc(1200px - 40px);
    }
}

@media (max-width: 1300px) {
    .page-header {
        max-width: calc(95% - 40px);
    }
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
}

/* Ajuste para pantallas grandes */
@media (min-width: 1240px) {
    .page-header {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.content-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.content-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.content-intro p {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.content-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.content-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
}

.content-image .brand-content-logo {
    height: 360px;
    object-fit: contain;
    padding: 40px;
    background: var(--color-white);
}

.brand-content-logo-pair {
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 40px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.brand-content-logo-pair img {
    max-width: 100%;
    max-height: 125px;
    object-fit: contain;
}

.renault-model-year-image {
    max-width: 900px;
    margin: 0 auto 45px;
}

.renault-model-year-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Brand Logo Section */
.brand-logo-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.brand-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .brand-logo {
        max-width: 200px;
    }
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.value-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.3;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.value-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Locations Section */
.locations-section {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.location-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.location-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
}

.location-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-info strong {
    color: var(--color-secondary);
    display: block;
    margin-bottom: 5px;
}

.location-card .btn {
    margin-top: 20px;
    width: 100%;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-white);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.service-card > p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--color-text);
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Workshop Section */
.workshop-section {
    padding: 80px 0;
}

.workshop-features {
    margin: 30px 0;
}

.workshop-feature {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
    color: var(--color-text);
}

.workshop-feature:last-child {
    border-bottom: none;
}

.workshop-feature strong {
    color: var(--color-primary);
    display: inline-block;
    min-width: 120px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 10px;
}

.contact-info-box h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.contact-item-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--color-primary);
}

.contact-item-content a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 400px;
    background: var(--color-bg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Vehicle Cards (Ocasión) */
.vehicles-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.vehicle-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.vehicle-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
}

.vehicle-content {
    padding: 25px;
}

.vehicle-category {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vehicle-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.vehicle-spec {
    font-size: 14px;
}

.vehicle-spec strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.vehicle-spec span {
    color: var(--color-text-light);
}

.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 18px;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.vehicle-card .btn {
    width: 100%;
}

/* Responsive para páginas internas */
@media (max-width: 992px) {
    .page-header {
        height: 180px;
        margin: 25px 15px;
        border-radius: 18px;
    }
    
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 160px;
        margin: 20px 15px;
        max-width: calc(100% - 30px);
        border-radius: 15px;
    }
    
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 140px;
        margin: 15px 10px;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }
}

/* ===================================
   Página Empresa (Presentación) - Nuevo Diseño
   =================================== */

/* Hero Empresa */
.empresa-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
}

.empresa-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.empresa-hero-content .hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.about-text .lead {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--color-text);
    line-height: 1.6;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: var(--color-bg);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Values Section - Empresa */
.empresa-values-section {
    padding: 80px 0;
    background: var(--color-white);
}

.empresa-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.empresa-value-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.empresa-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
}

.empresa-value-card h3 {
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.empresa-value-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Brands Section - Empresa */
.empresa-brands-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.empresa-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.empresa-brand-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    display: block;
    text-decoration: none;
}

.empresa-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.empresa-brand-card img {
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
}

.empresa-brand-card h3 {
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.empresa-brand-card p {
    font-size: 15px;
    color: var(--color-text-light);
}

/* Locations Section - Empresa */
.empresa-locations-section {
    padding: 80px 0 120px 0;
    background: var(--color-white);
}

.empresa-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.empresa-location-card {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 20px;
}

.location-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.badge-inline {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
    vertical-align: middle;
}

.location-header h3 {
    font-size: 28px;
    color: var(--color-secondary);
    margin: 0;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.location-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.location-item p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.location-item a {
    color: var(--color-text);
    text-decoration: none;
}

.location-item a:hover {
    color: var(--color-primary);
}

.empresa-location-card .btn {
    align-self: flex-start;
}

/* Responsive - Página Empresa */
@media (max-width: 768px) {
    .empresa-hero-content h1 {
        font-size: 32px;
    }

    .empresa-hero-content .hero-subtitle {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-text .lead {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-header .section-title {
        font-size: 28px;
    }

    .empresa-values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .empresa-brands-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .empresa-locations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================================
   Estilos Adicionales para Empresa (Nuevo Diseño)
   =================================== */

/* Background light */
.bg-light {
    background: var(--color-bg);
}

/* Lead text */
.lead-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Section description */
.section-description {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Two column content grid */
.content-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 40px;
}

.features-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), #c01f1f);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.brand-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.brand-card-image {
    padding: 40px;
    background: var(--color-white);
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-image img {
    max-width: 180px;
    height: auto;
}

.brand-card-content {
    padding: 30px;
    text-align: center;
}

.brand-card-content h3 {
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.brand-card-content p {
    font-size: 15px;
    color: var(--color-text-light);
}

.vehicle-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
}

.pagination-button {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-secondary);
    cursor: pointer;
    font: inherit;
    transition: var(--transition);
}

.pagination-button:hover,
.pagination-button.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Stats Item */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-item .stat-label {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}

/* Location Info */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.location-info-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.location-info-item p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.location-info-item a {
    color: var(--color-text);
    text-decoration: none;
}

.location-info-item a:hover {
    color: var(--color-primary);
}

/* Location Badge */
.location-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.badge-inline {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
    vertical-align: middle;
}

.location-card h3 {
    font-size: 28px;
    color: var(--color-secondary);
    margin-bottom: 25px;
}

/* Responsive - Nuevos Estilos */
@media (max-width: 992px) {
    .features-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .content-grid.two-col {
        grid-template-columns: 1fr;
    }

    .features-grid.four-col {
        grid-template-columns: 1fr;
    }

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

    .lead-text {
        font-size: 18px;
    }

    .section-description {
        font-size: 16px;
    }

    .badge-inline {
        display: block;
        margin-left: 0;
        margin-top: 10px;
        font-size: 11px;
        padding: 3px 10px;
        width: fit-content;
    }
}

/* ===================================
   Vehicle Modal
   =================================== */
.vehicle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: hidden;
}

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

.vehicle-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.vehicle-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--color-secondary);
}

.vehicle-modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg);
}

.vehicle-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* Gallery */
.vehicle-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vehicle-modal-main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--color-light);
}

.vehicle-modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vehicle-thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.vehicle-thumbnail:hover {
    border-color: var(--color-primary);
}

.vehicle-thumbnail.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(215, 35, 35, 0.2);
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.vehicle-modal-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vehicle-modal-header h2 {
    font-size: 28px;
    color: var(--color-secondary);
    margin: 15px 0 20px 0;
}

.vehicle-modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.vehicle-modal-price .price-old {
    font-size: 20px;
    color: var(--color-text);
    text-decoration: line-through;
    opacity: 0.6;
}

.vehicle-modal-price .price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.vehicle-modal-specs h3,
.vehicle-modal-description h3,
.vehicle-modal-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-light);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-item strong {
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item span {
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: 500;
}

.vehicle-modal-description p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.vehicle-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vehicle-modal-features li {
    font-size: 14px;
    color: var(--color-text);
    padding-left: 25px;
    position: relative;
}

.vehicle-modal-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
}

.vehicle-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--color-light);
}

.vehicle-modal-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 30px;
    white-space: nowrap;
}

.btn-whatsapp {
    gap: 12px;
}

.btn-whatsapp svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

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

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white;
}

/* Responsive Modal */
@media (max-width: 992px) {
    .vehicle-modal-body {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .vehicle-modal-main-image {
        height: 300px;
    }

    .vehicle-modal-header h2 {
        font-size: 24px;
    }

    .vehicle-modal-price .price-current {
        font-size: 28px;
    }

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

    .vehicle-modal-features ul {
        grid-template-columns: 1fr;
    }

    .vehicle-modal-actions {
        flex-direction: column;
    }

    .vehicle-modal-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .vehicle-modal-content {
        border-radius: 0;
        max-height: 100vh;
        width: 100%;
    }

    .vehicle-modal-main-image {
        height: 250px;
    }

    .vehicle-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* ===================================
   Responsive Adicional para Páginas
   =================================== */

/* Tablets y Móviles (≤992px) */
@media (max-width: 992px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-grid {
        gap: 40px;
    }
    
    .content-intro h2 {
        font-size: 30px;
    }
    
    .content-intro p {
        font-size: 16px;
    }
    
    .content-text h2 {
        font-size: 28px;
    }
    
    .values-grid {
        gap: 30px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Tablets Portrait (≤768px) */
@media (max-width: 768px) {
    /* Page Header */
    .page-header {
        height: 200px;
        margin: 15px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    /* Content Sections */
    .content-section {
        padding: 50px 0;
    }
    
    .content-intro {
        margin-bottom: 40px;
    }
    
    .content-intro h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .content-intro p {
        font-size: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .content-text p {
        font-size: 15px;
    }
    
    /* Values Section */
    .values-section {
        padding: 50px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .value-card {
        padding: 30px 25px;
    }
    
    .value-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .value-card h3 {
        font-size: 20px;
    }
    
    /* Brands Section */
    .brands-section {
        padding: 50px 0;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    /* Locations */
    .location-card {
        padding: 30px;
    }
    
    .location-card h3 {
        font-size: 22px;
    }
    
    /* Contact Form */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-box {
        padding: 35px 25px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    /* Vehicles Grid */
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vehicle-card {
        flex-direction: column;
    }
    
    .vehicle-image {
        width: 100%;
        height: 250px;
    }
    
    .vehicle-details {
        padding: 25px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Móviles (≤576px) */
@media (max-width: 576px) {
    /* Page Header */
    .page-header {
        height: 180px;
        margin: 15px 10px;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* Content */
    .content-section {
        padding: 40px 0;
    }
    
    .content-intro h2 {
        font-size: 22px;
    }
    
    .content-intro p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .content-text h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .content-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Values */
    .values-section {
        padding: 40px 0;
    }
    
    .value-card {
        padding: 25px 20px;
    }
    
    .value-icon {
        font-size: 36px;
    }
    
    .value-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 14px;
    }
    
    /* Brand Logo */
    .brand-logo {
        max-width: 180px;
    }
    
    .brand-logo-section {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .content-image .brand-content-logo {
        height: 220px;
        padding: 25px;
    }

    .brand-content-logo-pair {
        height: 220px;
        gap: 15px;
        padding: 25px;
    }

    .brand-content-logo-pair img {
        max-height: 75px;
    }
    
    /* Locations */
    .location-card {
        padding: 25px 20px;
    }
    
    .location-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .location-card p {
        font-size: 14px;
    }
    
    /* Contact */
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-info-box {
        padding: 30px 20px;
    }
    
    .contact-info-box h3 {
        font-size: 20px;
    }
    
    .info-item {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 11px 14px;
    }
    
    .btn-submit {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    /* Vehicles */
    .filter-buttons {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .vehicles-grid {
        gap: 20px;
    }
    
    .vehicle-image {
        height: 220px;
    }
    
    .vehicle-details {
        padding: 20px;
    }
    
    .vehicle-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .vehicle-specs {
        gap: 12px;
        margin: 15px 0;
    }
    
    .spec-item {
        font-size: 12px;
    }
    
    .vehicle-price {
        margin: 15px 0;
    }
    
    .price-current {
        font-size: 22px;
    }
    
    .vehicle-description {
        font-size: 13px;
        margin: 12px 0;
    }
    
    /* Product Categories */
    .category-card {
        padding: 20px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    .category-card p {
        font-size: 13px;
    }
    
    /* Services */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 13px;
    }
}

/* Móviles Pequeños (≤480px) */
@media (max-width: 480px) {
    .page-header {
        height: 160px;
        margin: 10px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .content-section,
    .values-section,
    .contact-section {
        padding: 35px 0;
    }
    
    .content-intro h2 {
        font-size: 20px;
    }
    
    .value-card,
    .location-card,
    .contact-info-box {
        padding: 20px 15px;
    }
    
    .vehicle-image {
        height: 200px;
    }
    
    .vehicle-details {
        padding: 18px;
    }
    
    .filter-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Móviles Extra Pequeños (≤375px) */
@media (max-width: 375px) {
    .page-header {
        height: 150px;
        margin: 10px 5px;
        max-width: calc(100% - 10px);
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .content-intro h2 {
        font-size: 19px;
    }
    
    .value-card h3,
    .service-card h3,
    .category-card h3 {
        font-size: 17px;
    }
}

/* ===================================
   Páginas Legales
   =================================== */
.legal-content {
    padding: 80px 0;
    background: var(--color-white);
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.legal-document h2 {
    font-size: 24px;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document h3 {
    font-size: 20px;
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-document h4 {
    font-size: 18px;
    color: var(--color-secondary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.legal-document p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 15px;
}

.legal-document ul,
.legal-document ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-document li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 10px;
}

.legal-document a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-document a:hover {
    color: var(--color-primary-dark);
}

.legal-document strong {
    color: var(--color-secondary);
    font-weight: 600;
}

.legal-update {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
    text-align: center;
}

.legal-update p {
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
}

/* Tablas de cookies */
.cookie-table {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-primary);
}

.cookie-table h4 {
    margin-top: 0;
    font-size: 18px;
}

.cookies-list {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.cookies-list thead {
    background: var(--color-primary);
    color: white;
}

.cookies-list th,
.cookies-list td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--color-border);
}

.cookies-list tbody tr:nth-child(even) {
    background: var(--color-bg);
}

.cookies-list tbody tr:hover {
    background: rgba(225, 0, 15, 0.05);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 50px 0;
    }

    .legal-document {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .legal-document h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .legal-document h3 {
        font-size: 18px;
    }

    .legal-document h4 {
        font-size: 16px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 14px;
    }

    .cookies-list {
        font-size: 12px;
    }

    .cookies-list th,
    .cookies-list td {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .legal-document {
        padding: 25px 15px;
    }

    .legal-document h2 {
        font-size: 20px;
        margin-top: 25px;
    }

    .legal-document h3 {
        font-size: 17px;
    }

    .legal-document h4 {
        font-size: 15px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 13px;
    }

    .legal-document ul,
    .legal-document ol {
        margin-left: 20px;
    }

    /* Hacer la tabla de cookies responsive */
    .cookies-list {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 40px 0;
    }

    .legal-document {
        padding: 20px 12px;
    }

    .legal-document h2 {
        font-size: 18px;
        margin-top: 20px;
    }

    .cookie-table {
        padding: 15px;
    }
}

