/* Estilos base - Manteniendo minimalismo original */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.share-button {
    display: inline-block;
    background-color: #4267B2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s;
    padding: 10px 20px 13px!important;
}

.share-button:hover {
    background-color: #365899;
}

.share-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.header-left h1 {
    margin: 0;
    font-size: 28px!important;
    color: #000080;
}

.header-left p {
    margin: 5px 0;
    font-size: 18px;
    color: #666;
}

.modal-footer {
    display: flex!important;
    justify-content: space-between!important;
    align-items: center!important;
}

.header-right {
    text-align: right;
}

.price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
}

.button:hover {
    transform: translateY(-2px);
}

.accident-history {
    background-color: #000000;
    color: white;
}

.accident-history:hover {
    background-color: #2980b9;
}

.performance-check {
    background-color: #e74c3c;
    color: white;
}

.performance-check:hover {
    background-color: #c0392b;
}

.image-gallery {
    display: flex;
    margin-bottom: 30px;
}

.main-image {
    flex: 2;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.main-image img {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
}

.thumbnails {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    height: 400px;
    max-height: 700px;
    overflow-y: auto;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.info-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.basic-info, .seller-info, .quick-consultation {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.seller-info img {
    width: 100px;
    margin-bottom: 10px;
    filter: brightness(0);
}

.buy-button, .calculate-button {
    padding: 12px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.buy-button {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid;
    font-size: 13px;
}

.buy-button:hover {
    background-color: #45a049;
}

.calculate-button {
    background-color: #000000;
    color: white;
    font-size: 12px;
}

.calculate-button:hover {
    background-color: #007a9e;
}

.related-vehicles {
    margin-top: 30px;
}

.related-vehicles h2 {
    margin-bottom: 20px;
    color: #000000;
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vehicle-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.vehicle-card h3 {
    margin: 10px 0;
    color: #000080;
}

.vehicle-card p {
    margin: 5px 0;
    color: #000000;
    font-family: monospace;
}

.vehicle-card .price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

.vehicle-list a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Sección de Videos de YouTube - Estilo minimalista */
.youtube-videos {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.youtube-videos h2 {
    margin-bottom: 20px;
    color: #000000;
    font-size: 22px !important;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.youtube-carousel {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.youtube-carousel::-webkit-scrollbar {
    height: 8px;
}

.youtube-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.youtube-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.youtube-video-card {
    display: inline-block;
    width: 300px;
    margin-right: 20px;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: normal;
}

.youtube-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.youtube-video-card iframe {
    width: 100%;
    height: 170px;
    border: none;
}

.youtube-video-info {
    padding: 12px;
    background: white;
}

.youtube-video-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px !important;
    color: #000080;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.youtube-video-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.youtube-channel-link {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.youtube-channel-link:hover {
    background-color: #c0392b;
    color: white;
}

#calculateModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#calculateModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

#calculateModal .modal-title {
    font-weight: bold;
    color: #333;
}

#calculateModal .modal-body {
    padding: 30px;
}

#calculateModal .close {
    font-size: 28px;
    font-weight: normal;
    color: #aaa;
}

.vehicle-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.vehicle-image {
    flex: 0 0 40%;
    margin-right: 20px;
}

.vehicle-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vehicle-details {
    flex: 1;
}

.vehicle-title {
    display: inline;
    font-size: 1.8em!important;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.vehicle-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff0000;
    display: list-item;
}

.alert {
    border-radius: 5px;
    font-size: 0.9em;
}

.form-group label {
    font-weight: bold;
    color: #555;
}

#regionSelect {
    border-radius: 5px;
    border: 1px solid #ced4da;
}

#calculationResults {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-label {
    font-weight: bold;
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #ff0000;
}

.result-item.total {
    font-size: 1.2em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #000000;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

.btn {
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.share-counter {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.left-buttons {
    font-size: 11px;
    gap: 10px;
}

.right-button {
    margin-left: auto;
    display: flex;
    font-size: 15px;
    gap: 10px;
}

#contactAgentButton {
    display: none;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

h2 {
    font-size: 18px !important;
    margin-bottom: 15px;
}

h1 {
    margin: 0;
    font-size: 35px !important;
    color: #000089;
    font-family: system-ui;
}

h3 {
    margin: 0;
    font-size: 20px !important;
    color: #000089;
    font-family: system-ui;
}

@media screen and (min-width: 1001px) {
    .desktopview {
        display: block;
    }
    .mobileview {
        display: none;
    }
}

@media (max-width: 1000px) {
    .desktopview {
        display: none;
    }
    .mobileview {
        display: block;
    }

    body {
        font-family: 'Arial', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f4f4f4;
        color: #333;
    }

    .container {
        max-width: 100%;
        margin: 0 auto;
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .carousel {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .carousel-inner {
        display: flex;
        transition: transform 0.3s ease-in-out;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .carousel-indicator {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 12px;
    }

    .mobile_vehicle_info {
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .mobile_title {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 10px 0;
        color: #000080;
    }

    .mobile_subtitle {
        font-size: 16px;
        color: #666;
        margin: 0 0 15px 0;
    }

    .mobile_price {
        font-size: 28px;
        font-weight: bold;
        color: #e74c3c;
        margin: 15px 0;
    }

    .mobile_info_list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .mobile_info_item {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
        padding: 12px 0;
        font-size: 14px;
    }

    .mobile_info_label {
        color: #777;
    }

    .mobile_info_value {
        font-weight: bold;
        color: #333;
    }

    .mobile_button {
        display: block;
        width: 100%;
        padding: 15px;
        margin: 10px 0;
        text-align: center;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.1s;
    }

    .mobile_button:active {
        transform: scale(0.98);
    }

    .mobile_performance_check {
        background-color: #e74c3c;
        color: white;
    }

    .mobile_performance_check:hover {
        background-color: #c0392b;
    }

    .mobile_buy_button {
        background-color: #000000;
        color: white;
    }

    .mobile_buy_button:hover {
        background-color: #2980b9;
    }

    .mobile_calculate_button {
        background-color: #ffffff;
        color: #000000;
        display: block;
        width: 100%;
        padding: 15px;
        margin: 10px 0;
        text-align: center;
        border: 1px solid #000;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.1s;
    }

    .mobile_calculate_button:hover {
        background-color: #27ae60;
    }

    .mobile_seller_info {
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        margin-top: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .mobile_seller_info h2 {
        margin-top: 0;
        color: #000080;
        font-size: 20px;
    }

    .mobile_seller_info img {
        max-width: 120px;
        margin-bottom: 15px;
        filter: brightness(0);
    }

    .mobile_seller_info p {
        margin: 5px 0;
        font-size: 14px;
    }

    .mobile_quick_consultation {
        margin-top: 20px;
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .mobile_quick_consultation h2 {
        margin-top: 0;
        color: #000080;
        font-size: 20px;
    }

    .mobile_related_vehicles {
        padding: 20px 0;
    }

    .mobile_related_vehicles h2 {
        margin-bottom: 15px;
        color: #000080;
        font-size: 22px;
    }

    .mobile_related_carousel {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile_related_carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile_vehicle_card {
        display: inline-block;
        width: 250px;
        margin-right: 15px;
        vertical-align: top;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s;
    }

    .mobile_vehicle_card:hover {
        transform: translateY(-5px);
    }

    .mobile_vehicle_card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .mobile_vehicle_card_info {
        padding: 15px;
    }

    .mobile_vehicle_card h3 {
        margin: 0 0 10px 0;
        font-size: 18px;
        color: #000080;
    }

    .mobile_vehicle_card p {
        margin: 5px 0;
        font-size: 14px;
        color: #666;
    }

    .mobile_vehicle_card .mobile_price {
        font-size: 18px;
        color: #e74c3c;
        font-weight: bold;
        margin-top: 10px;
    }

    /* Sección de videos móvil */
    .mobile_youtube_videos {
        padding: 20px;
        background-color: #f9f9f9;
        margin-top: 20px;
    }

    .mobile_youtube_videos h2 {
        margin-bottom: 15px;
        color: #000080;
        font-size: 20px;
        border-bottom: 2px solid #e74c3c;
        padding-bottom: 10px;
    }

    .share-button {
        padding: 8px 15px !important;
        font-size: 14px;
    }

    .btn-secondary {
        padding: 8px 15px !important;
        font-size: 14px;
    }

    .left-buttons {
        display: flex;
        gap: 10px;
    }

    #calculateModal .modal-body {
        padding: 20px;
    }

    .share-counter {
        font-size: 13px;
        padding: 8px !important;
    }

    .container {
        padding-bottom: 70px;
    }
}
