/* Estilo inspirado en la experiencia visual de Power BI (barra oscura, acento amarillo) */
:root {
    --pbi-bg: #f3f2f1;
    --pbi-top: #1b1a19;
    --pbi-accent: #f2c811;
    --pbi-card: #ffffff;
    --pbi-border: #e1dfdd;
    --pbi-text: #323130;
    --pbi-muted: #605e5c;
    --pbi-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--pbi-bg);
    color: var(--pbi-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pbi-topbar {
    background: var(--pbi-top);
    color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 4px solid var(--pbi-accent);
}

.pbi-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pbi-topbar__logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pbi-accent) 0%, #c5a10f 100%);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.pbi-topbar__institution {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}

.pbi-topbar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pbi-topbar__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pbi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pbi-btn--primary {
    background: var(--pbi-accent);
    color: #1b1a19;
}

.pbi-btn--primary:hover {
    filter: brightness(1.05);
}

.pbi-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.pbi-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pbi-main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.pbi-hero {
    background: var(--pbi-card);
    border-radius: var(--radius);
    box-shadow: var(--pbi-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pbi-border);
}

.pbi-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.pbi-hero p {
    margin: 0;
    color: var(--pbi-muted);
    font-size: 0.95rem;
}

.pbi-hero__linkout {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.9rem;
}

.pbi-hero__linkout a {
    color: #0078d4;
    font-weight: 600;
}

.pbi-hero__hint {
    color: var(--pbi-muted);
    font-weight: 400;
}

.pbi-hero__cta {
    margin: 1rem 0 0;
}

.pbi-btn--lg {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
}

.pbi-embed-wrap {
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--pbi-border);
    background: #000;
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.pbi-embed-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.pbi-embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: linear-gradient(180deg, #2b2a29 0%, #1b1a19 100%);
    color: #c8c6c4;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

.pbi-section {
    margin-bottom: 2rem;
}

.pbi-section__head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pbi-accent);
}

.pbi-section__head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pbi-section__head span {
    font-size: 0.8rem;
    color: var(--pbi-muted);
}

.pbi-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.pbi-tile {
    background: var(--pbi-card);
    border: 1px solid var(--pbi-border);
    border-radius: var(--radius);
    box-shadow: var(--pbi-shadow);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--pbi-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pbi-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--pbi-accent);
}

.pbi-tile__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.pbi-footer {
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: var(--pbi-muted);
    border-top: 1px solid var(--pbi-border);
    background: var(--pbi-card);
}

.pbi-footer code {
    font-size: 0.75rem;
    background: var(--pbi-bg);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .pbi-topbar__title {
        font-size: 1.05rem;
    }

    .pbi-tiles {
        grid-template-columns: 1fr;
    }
}
