/* =========================================================
   ARTICLE V2 — UNIFIED STYLE SYSTEM
   Extracted from inline <style> blocks (canonical source:
   where-to-stay-in-cancun-hotel-zone-vs-downtown.html)
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.article-hero {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 6s ease;
}

.article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.12) 35%,
            rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.12) 100%);
}

.article-hero:hover .article-hero-image {
    transform: scale(1.03);
}

.article-hero .hero-content {
    position: absolute;
    bottom: 40px;
    right: 60px;
    max-width: 600px;
    color: #ffffff;
    text-align: left;
    opacity: 1;
    transform: none;
}

.article-hero .hero-content h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

.article-hero .hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   ARTICLE STRUCTURE
   ========================================================= */

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.article-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

.article-content a {
    transition: 0.3s ease;
}

.article-content a:hover {
    opacity: 0.8;
}

.article-content a.internal-link {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    transition: border-color 0.2s ease;
}

.article-content a.internal-link:hover {
    border-bottom-color: #2563eb;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.article-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-intro p {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.article-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTENT BLOCKS
   ========================================================= */

.article-point {
    margin: 70px 0;
}

.article-point--accent {
    position: relative;
    border-color: #2563eb !important;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.15),
        0 8px 32px rgba(37, 99, 235, 0.08);
}

.article-point--accent::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 16px 16px 0 0;
}

.article-point--accent > h2 {
    color: #2563eb !important;
}

[data-theme="light"] .article-point--accent {
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 8px 32px rgba(37, 99, 235, 0.06);
}

.article-subpoint {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 14px;
    margin-top: 20px;
}

.article-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--border-color) 20%,
            var(--border-color) 80%,
            transparent);
    margin: 3rem 0;
}

.article-summary--note {
    padding: 35px;
    border-left: 4px solid #2563eb;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 14px;
}


/* =========================================================
   MEDIA
   ========================================================= */

.article-image {
    margin: 60px 0;
    border-radius: 18px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    display: block;
}

.image-caption {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 12px;
}


/* =========================================================
   COMPONENTS
   ========================================================= */

.article-quote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    border-left: 3px solid #2563eb;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.06),
            rgba(37, 99, 235, 0.02));
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
}

[data-theme="light"] .article-quote {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.08),
            rgba(37, 99, 235, 0.03));
}

.article-case {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}

[data-theme="light"] .article-case {
    background: rgba(0, 0, 0, 0.02);
}

.article-case .case-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.article-finale {
    padding: 2rem !important;
    position: relative;
    overflow: hidden;
}

.article-finale::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb 50%, transparent);
}

.article-finale .finale-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-finale .finale-cta a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   CHECKLIST
   ========================================================= */

.checklist-premium {
    padding: 2rem !important;
    border-left: 3px solid #2563eb;
    border-radius: 0 16px 16px 0 !important;
}

.checklist-premium h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.checklist-premium .checklist-intro {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

[data-theme="light"] .check-item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.check-item:last-child {
    border-bottom: none;
}

.check-item:hover {
    background: rgba(37, 99, 235, 0.04);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.check-icon::after {
    content: '✓';
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 700;
}


/* =========================================================
   MATCH CARDS
   ========================================================= */

.match-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.match-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03));
}

[data-theme="light"] .match-card {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0.015));
}

.match-card-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-card-text strong {
    display: block;
    margin-bottom: 0.2rem;
}

.match-card-text span {
    font-size: 0.92rem;
    color: var(--text-secondary);
}


/* =========================================================
   INTERACTIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}

.lb-overlay.lb-visible {
    display: flex;
    opacity: 1;
}

.lb-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lb-img-wrap img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain;
}

.lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .article-lead {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .article-meta {
        flex-wrap: wrap;
        font-size: 0.82rem;
    }

    .article-quote {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .checklist-premium {
        padding: 1.5rem !important;
    }

    .article-hero .hero-content {
        position: absolute;
        bottom: 15px;
        right: 15px;
        left: 20px;
        max-width: 85%;
        text-align: left;
    }

    .article-hero .hero-content h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .article-hero .hero-subtitle {
        font-size: 0.9rem;
    }
}
