:root {
    --vcap-navy: #1e3a5f;
    --vcap-navy-deep: #0f2744;
    --vcap-cielo: #0ea5e9;
    --vcap-bosque: #10b981;
    --vcap-ambar: #d97706;
    --vcap-ink: #0f172a;
    --vcap-muted: #64748b;
    --vcap-paper: #f8fafc;
    --vcap-line: rgba(15, 23, 42, 0.08);
    --vcap-font: "Manrope", "Segoe UI", sans-serif;
    --vcap-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body.vcap-body {
    margin: 0;
    min-height: 100vh;
    color: var(--vcap-ink);
    font-family: var(--vcap-font);
    background:
        radial-gradient(circle at 8% -10%, rgba(14, 165, 233, 0.22), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.16), transparent 28%),
        linear-gradient(180deg, #eef6fb 0%, #f8fafc 40%, #eef2f7 100%);
}

.vcap-top,
.vcap-visor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 40px);
}

.vcap-brand {
    font-family: var(--vcap-display);
    font-size: 1.35rem;
    color: var(--vcap-navy);
    text-decoration: none;
}

.vcap-top-link {
    color: var(--vcap-navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(14, 165, 233, 0.45);
}

.vcap-hero {
    width: min(1100px, calc(100% - 32px));
    margin: 8px auto 28px;
}

.vcap-eyebrow {
    margin: 0 0 8px;
    color: #0369a1;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.vcap-hero h1 {
    margin: 0;
    font-family: var(--vcap-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.95;
    color: var(--vcap-navy-deep);
}

.vcap-lead {
    max-width: 42rem;
    margin: 14px 0 0;
    color: var(--vcap-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.vcap-grid {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.vcap-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--vcap-line);
    box-shadow: 0 18px 40px rgba(15, 39, 68, 0.08);
}

.vcap-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--vcap-navy-deep);
    overflow: hidden;
}

.vcap-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vcap-card__vacio {
    display: grid;
    place-items: center;
    height: 100%;
    color: #e2e8f0;
    padding: 16px;
    text-align: center;
}

.vcap-card__orden {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 42px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(15, 39, 68, 0.82);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-align: center;
}

.vcap-card__body {
    padding: 16px 18px 18px;
}

.vcap-card__body h2 {
    margin: 0;
    font-family: var(--vcap-display);
    font-size: 1.55rem;
    color: var(--vcap-navy);
}

.vcap-card__sub,
.vcap-card__meta {
    margin: 6px 0 0;
    color: var(--vcap-muted);
}

.vcap-card__meta { font-size: 0.9rem; }

.vcap-card__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.vcap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vcap-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vcap-btn--principal {
    background: var(--vcap-cielo);
    color: #fff;
}

.vcap-card--bosque .vcap-btn--principal { background: var(--vcap-bosque); }
.vcap-card--ambar .vcap-btn--principal { background: var(--vcap-ambar); }
.vcap-card--noche .vcap-btn--principal { background: var(--vcap-navy); }

.vcap-btn--suave {
    background: #fff;
    color: var(--vcap-navy);
    border-color: rgba(30, 58, 95, 0.18);
}

.vcap-body--visor {
    background: #07111f;
    color: #e2e8f0;
}

.vcap-visor-top h1 {
    margin: 0;
    flex: 1;
    font-family: var(--vcap-display);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    text-align: center;
}

.vcap-body--visor .vcap-top-link { color: var(--vcap-navy); }

.vcap-escenario {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto 28px;
}

.vcap-laminas {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
}

.vcap-lamina {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.vcap-controles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.vcap-contador {
    margin: 0;
    min-width: 5.5rem;
    text-align: center;
    font-weight: 800;
}

.vcap-miniaturas {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 8px;
}

.vcap-mini {
    flex: 0 0 128px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.vcap-mini img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.vcap-mini--activa {
    border-color: var(--vcap-cielo);
}

.vcap-escenario:fullscreen {
    width: 100%;
    height: 100%;
    margin: 0;
    background: #000;
    display: grid;
    grid-template-rows: 1fr auto auto;
    padding: 12px;
}

.vcap-escenario:fullscreen .vcap-laminas {
    border-radius: 0;
    border: 0;
    aspect-ratio: auto;
    min-height: 0;
}

.vcap-aviso {
    width: min(720px, calc(100% - 32px));
    margin: 24px auto;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 800px) {
    .vcap-grid { grid-template-columns: 1fr; }
    .vcap-visor-top { flex-wrap: wrap; }
    .vcap-visor-top h1 { order: 3; flex-basis: 100%; text-align: left; }
}
