/* ========================================
   NEON THEME — Dark, modern, bold
   ======================================== */

:root {
    --bg:          #0a0a0f;
    --bg-card:     #12121a;
    --bg-glass:    rgba(18, 18, 26, 0.7);
    --surface:     #1a1a2e;
    --border:      rgba(255, 255, 255, 0.06);
    --text:        #e0e0e8;
    --text-dim:    #8888a0;
    --text-muted:  #555568;
    --accent:      #7c5cfc;
    --accent-glow: rgba(124, 92, 252, 0.4);
    --accent2:     #00d4ff;
    --gradient:    linear-gradient(135deg, var(--accent), var(--accent2));
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:   1200px;
    --header-h:    64px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Noise overlay */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-nav { display: flex; gap: 1rem; }

.nav-link {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 0;
    min-height: 420px;
}

.hero-content { display: flex; flex-direction: column; gap: 1rem; }

.hero-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    background: var(--gradient);
    border-radius: 50px;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.hero-title a {
    transition: color var(--transition);
}
.hero-title a:hover {
    color: var(--accent2);
}

.hero-excerpt {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.hero-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-visual:hover img {
    transform: scale(1.03);
}
.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* ========================================
   FEATURED DUO
   ======================================== */
.featured-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem 0 2.5rem;
}

.duo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.duo-card:hover {
    border-color: rgba(124, 92, 252, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.duo-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.duo-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.duo-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Shared small elements */
.card-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.play-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    font-size: 0.75rem;
    color: #fff;
}
.play-icon.small {
    width: 30px;
    height: 30px;
    font-size: 0.65rem;
}

/* ========================================
   CARD GRID
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.card:hover {
    border-color: rgba(124, 92, 252, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface);
}
.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-visual img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}
.card-placeholder span {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.card-excerpt {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ========================================
   ARTICLE PAGE
   ======================================== */
.article-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--accent2); }

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}
.article-hero-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.article-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ========================================
   MAP SECTION (homepage)
   ======================================== */
.map-section {
    display: block;
    margin: 1.5rem calc(-50vw + 50%) 2rem;
    width: 100vw;
    padding: 1.5rem 0 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.map-section:hover .map-title { opacity: 0.8; }
.map-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    transition: opacity var(--transition);
}
.map-wrapper {
    overflow: hidden;
    position: relative;
}
.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
    pointer-events: none;
}

/* ========================================
   MAP PAGE (/mapa/)
   ======================================== */
.map-page {
    padding: 2rem 0 4rem;
}
.map-page-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}
.map-page-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-page-wrapper iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}
.map-page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    max-width: 360px;
}

.footer-meta {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-meta a {
    color: var(--text-dim);
    transition: color var(--transition);
}
.footer-meta a:hover { color: var(--accent2); }

.footer-date { color: var(--text-muted); }
.footer-engine {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
        min-height: auto;
    }
    .hero-visual { order: -1; }

    .featured-duo {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .article-actions { flex-direction: column; }
    .btn-glow, .btn-ghost { width: 100%; justify-content: center; }
}
