/* ============================
   Ocasiona61 Cars — Global Styles
   ============================ */

.ocasiona61-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    box-sizing: border-box;
}

.ocasiona61-wrap * {
    box-sizing: border-box;
}

/* ============================
   Breadcrumb
   ============================ */
.ocasiona61-breadcrumb {
    margin-bottom: 20px;
}

.ocasiona61-breadcrumb a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ocasiona61-breadcrumb a:hover {
    color: #c8102e;
}

/* ============================
   SINGLE CAR PAGE
   ============================ */
.ocasiona61-single-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.ocasiona61-single-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ocasiona61-single-image {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.ocasiona61-no-image,
.ocasiona61-no-image-small {
    width: 100%;
    height: 460px;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    border-radius: 16px;
}

.ocasiona61-no-image-small {
    height: 220px;
    border-radius: 0;
}

.ocasiona61-price-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #c8102e;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
}

/* ============================
   Gallery thumbnails
   ============================ */
.ocasiona61-thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ocasiona61-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.ocasiona61-thumb:hover {
    opacity: 1;
}

.ocasiona61-thumb.active {
    opacity: 1;
    border-color: #c8102e;
}

/* ============================
   Video block
   ============================ */
.ocasiona61-video-block {
    margin-top: 20px;
}

.ocasiona61-video-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ocasiona61-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.ocasiona61-video-wrapper iframe,
.ocasiona61-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ocasiona61-single-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ocasiona61-single-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 24px;
    font-weight: 600;
}

/* ============================
   Specs grid
   ============================ */
.ocasiona61-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.ocasiona61-spec {
    background: #f7f7f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ocasiona61-spec-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 700;
}

.ocasiona61-spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ============================
   WhatsApp button
   ============================ */
.ocasiona61-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.ocasiona61-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.ocasiona61-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ============================
   Description
   ============================ */
.ocasiona61-single-description {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.ocasiona61-single-description h2 {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 800;
}

/* ============================
   Features section
   ============================ */
.ocasiona61-features-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.ocasiona61-features-section h2 {
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 800;
}

.ocasiona61-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.ocasiona61-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ocasiona61-check-icon {
    width: 18px;
    height: 18px;
    fill: #25D366;
    flex-shrink: 0;
}

/* ============================
   Similar Cars section
   ============================ */
.ocasiona61-similar-section {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.ocasiona61-similar-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 800;
}

/* ============================
   ARCHIVE PAGE
   ============================ */
.ocasiona61-archive-header {
    text-align: center;
    margin-bottom: 36px;
}

.ocasiona61-archive-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ocasiona61-archive-header p {
    color: #777;
    font-size: 15px;
}

.ocasiona61-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ocasiona61-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ocasiona61-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.ocasiona61-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ocasiona61-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ocasiona61-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ocasiona61-card-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c8102e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.ocasiona61-card-body {
    padding: 18px 20px 22px;
}

.ocasiona61-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.ocasiona61-card-brand {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
}

.ocasiona61-card-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.ocasiona61-card-btn {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.ocasiona61-card:hover .ocasiona61-card-btn {
    background: #c8102e;
}

.ocasiona61-no-results {
    text-align: center;
    grid-column: 1 / -1;
    color: #999;
    font-size: 16px;
    padding: 60px 0;
}

/* ============================
   Pagination
   ============================ */
.ocasiona61-pagination {
    margin-top: 40px;
    text-align: center;
}

.ocasiona61-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #f7f7f9;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.ocasiona61-pagination .page-numbers.current {
    background: #c8102e;
    color: #fff;
}

/* ============================
   HOMEPAGE
   ============================ */
.ocasiona61-home {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

.ocasiona61-home * {
    box-sizing: border-box;
}

/* Hero */
.ocasiona61-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 60px 20px;
    text-align: center;
}

.ocasiona61-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.ocasiona61-hero-content h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 12px;
}

.ocasiona61-hero-content > p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    margin-bottom: 32px;
}

/* Hero / Sidebar search forms */
.ocasiona61-hero-search {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.ocasiona61-search-field {
    flex: 1 1 150px;
    text-align: left;
}

.ocasiona61-search-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ocasiona61-search-field select,
.ocasiona61-search-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
}

.ocasiona61-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ocasiona61-price-inputs input {
    width: 100%;
}

.ocasiona61-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.ocasiona61-search-btn:hover {
    background: #a80d26;
}

/* Trust strip */
.ocasiona61-trust-strip {
    background: #f7f7f9;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.ocasiona61-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ocasiona61-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ocasiona61-trust-item svg {
    width: 32px;
    height: 32px;
    color: #c8102e;
    flex-shrink: 0;
}

.ocasiona61-trust-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.ocasiona61-trust-item span {
    font-size: 13px;
    color: #777;
}

/* Section header */
.ocasiona61-home-section {
    padding: 50px 20px;
}

.ocasiona61-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ocasiona61-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.ocasiona61-view-all {
    color: #c8102e;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.ocasiona61-section-title-center {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 40px;
}

/* How it works */
.ocasiona61-how-it-works {
    background: #f7f7f9;
    padding: 60px 20px;
}

.ocasiona61-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ocasiona61-step {
    text-align: center;
}

.ocasiona61-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #c8102e;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ocasiona61-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ocasiona61-step p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* CTA row */
.ocasiona61-cta-row {
    padding: 60px 20px;
}

.ocasiona61-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ocasiona61-cta-card {
    background: #f7f7f9;
    border-radius: 16px;
    padding: 36px;
}

.ocasiona61-cta-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ocasiona61-cta-card p {
    color: #666;
    margin-bottom: 20px;
}

.ocasiona61-cta-dark {
    background: #1a1a1a;
    color: #fff;
}

.ocasiona61-cta-dark p {
    color: rgba(255,255,255,0.75);
}

.ocasiona61-cta-btn {
    display: inline-block;
    background: #c8102e;
    color: #fff;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.ocasiona61-cta-btn-light {
    background: #fff;
    color: #1a1a1a;
}

/* ============================
   ARCHIVE PAGE — sidebar layout
   ============================ */
.ocasiona61-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.ocasiona61-archive-sidebar {
    background: #f7f7f9;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.ocasiona61-archive-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px;
}

.ocasiona61-sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ocasiona61-sidebar-search .ocasiona61-search-btn {
    width: 100%;
}

.ocasiona61-clear-filters {
    text-align: center;
    font-size: 13px;
    color: #c8102e;
    text-decoration: underline;
    font-weight: 600;
}

.ocasiona61-sort-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.ocasiona61-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ocasiona61-sort-form select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .ocasiona61-single-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ocasiona61-single-image,
    .ocasiona61-no-image {
        height: 260px;
    }
    .ocasiona61-single-title {
        font-size: 24px;
    }
    .ocasiona61-specs-grid {
        grid-template-columns: 1fr;
    }
    .ocasiona61-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ocasiona61-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    .ocasiona61-archive-grid {
        grid-template-columns: 1fr;
    }
    .ocasiona61-hero-content h1 {
        font-size: 30px;
    }
    .ocasiona61-hero-search {
        flex-direction: column;
        align-items: stretch;
    }
    .ocasiona61-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ocasiona61-steps-grid {
        grid-template-columns: 1fr;
    }
    .ocasiona61-cta-grid {
        grid-template-columns: 1fr;
    }
    .ocasiona61-archive-layout {
        grid-template-columns: 1fr;
    }
    .ocasiona61-archive-sidebar {
        position: static;
    }
    .ocasiona61-sort-row {
        justify-content: flex-start;
    }
}
