/* ══════════════════════════════════════════════════════
   PORTAL VIDA Y OBRAS v2 — CSS LIMPIO
   ══════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ─────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
    --bg: #eceae4;
    --surface: #ffffff;
    --surface2: #f5f2ec;
    --border: #ddd8d0;
    --border2: #c8c0b4;
    --text: #1a1815;
    --muted: #7a7065;
    --muted2: #9a8e80;
    --gold: #b8952a;
    --gold-dim: rgba(184,149,42,0.12);
    --gold-border: rgba(184,149,42,0.3);
    --green: #2a8a5a;
    --red: #c0392b;
    --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── TICKER ────────────────────────────────────────── */
.ticker-wrap {
    background: var(--text);
    color: #fff;
    height: 34px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.tick-item {
    padding: 0 28px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tick-up { color: #4ade80; }
.tick-down { color: #f87171; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── NAV ───────────────────────────────────────────── */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 34px;
    z-index: 150;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.nav-date {
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 12px;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gold-dim);
    color: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold-dim);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--gold-border);
}

.btn-suscriptor {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-suscriptor:hover { opacity: 0.85; }

/* ── APPS SLIDER ───────────────────────────────────── */
.apps-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 0;
    position: sticky;
    top: 90px;
    z-index: 90;
    display: flex;
    align-items: center;
}

.apps-bar-label {
    background: var(--text);
    color: var(--bg);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 14px;
    height: 42px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
}

.apps-bar-label:hover {
    background: var(--gold);
    color: #000;
}

.apps-track {
    display: flex;
    animation: apps-slide 25s linear infinite;
}

.app-slide {
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 18px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}

.app-slide:hover { background: var(--gold-dim); }
.app-slide span { font-weight: 400; color: var(--muted); font-size: 0.6rem; }

@keyframes apps-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── MAIN CONTAINER (una sola columna) ─────────────── */
.main-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 25px 20px;
}

/* ── MERCADO AL DIA ────────────────────────────────── */
.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.market-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.market-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.market-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 8px;
    background: var(--surface2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.market-item-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-item-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 2px;
}

/* ── NOTA CENTRAL ──────────────────────────────────── */
.nota-central {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.nota-central-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.nota-central-body {
    padding: 24px;
}

.nota-central-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.nota-central-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

.nota-central-fecha {
    font-size: 0.7rem;
    color: var(--muted2);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── COSTOS GRID ───────────────────────────────────── */
.costos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.costo-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    background-size: cover;
    background-position: center;
}

.costo-card:hover { border-color: var(--gold); }

.costo-card-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,1), 0 4px 20px rgba(0,0,0,0.8);
    margin-bottom: 4px;
}

.costo-card-sub {
    font-size: 0.8rem;
    color: #f8fafc;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,1);
}

.premium-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

/* ── INTEGRAL JOBS TEASER ──────────────────────────── */
.jobs-teaser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
}

.jobs-teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.jobs-teaser-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
}

.jobs-aviso {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jobs-aviso-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.jobs-aviso-zona {
    font-size: 0.75rem;
    color: var(--muted);
}

.jobs-aviso-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--gold-dim);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── FULL WIDTH SECTIONS ────────────────────────────── */
.full-width-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 35px 20px;
}

/* ── BANNERS APPS GRID & BRAND SHOWCASE ──────────────── */
.banners-section {
    position: relative;
    background: url('https://mastervencore.pages.dev/brand-assets/vsystemhub_banner_clean.jpg') center/cover no-repeat;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 20px;
    color: #fff;
    overflow: hidden;
}

.banners-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 25, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}

.banners-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
}

.vsystemhub-header {
    text-align: center;
    margin-bottom: 30px;
}

.vsystemhub-badge {
    display: inline-block;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.vsystemhub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.vsystemhub-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.vsystemhub-benefits span i {
    color: var(--gold);
    margin-right: 5px;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.banner-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.banner-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.banner-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.banner-card-label {
    background: var(--surface);
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── MANIFIESTO ────────────────────────────────────── */
.manifiesto {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 30px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.manifiesto-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 15px;
}

.manifiesto h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.manifiesto p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 15px;
}

.manifiesto-tagline {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(0,0,0,0.2);
    margin-top: 10px;
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
    background: var(--text);
    color: #fff;
    padding: 35px 20px;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 0.75rem;
    color: var(--muted2);
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.7rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ── MODAL BANCO (login suscriptor) ────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,15,25,0.92);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-banco {
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
}

.modal-banco-header {
    background: #0f172a;
    padding: 30px 20px;
    text-align: center;
}

.modal-banco-header h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
}

.modal-banco-header p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 6px;
}

.modal-banco-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-banco-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.modal-banco-input:focus { border-color: var(--gold); }

.modal-banco-btn {
    background: #1e293b;
    color: #fff;
    border: 1px solid #334155;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-banco-btn:hover { background: #0f172a; }

.modal-banco-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.modal-banco-footer {
    background: #f8fafc;
    padding: 14px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    font-size: 0.7rem;
    color: #64748b;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
    .costos-grid { grid-template-columns: 1fr; }
    .banners-grid { grid-template-columns: 1fr 1fr; }
    .market-row { flex-direction: column; }
    .nav-links { display: none; }
    nav { padding: 0 12px; }
    .nota-central-img { height: 180px; }
}
