* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.guest-body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #1d2433;
    background: #f3f5fb;
}

a {
    text-decoration: none;
}

.guest-topbar {
    background: #0d1533;
    color: #fff;
}

.guest-topbar-inner,
.guest-navbar,
.guest-page,
.guest-topbar-simple {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.guest-topbar-inner {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.guest-topbar-inner a,
.guest-topbar-simple a {
    color: #fff;
    font-weight: 700;
}

.guest-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.guest-brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #26a8ff, #0f3fce);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(15, 63, 206, 0.25);
}

.guest-brand-title {
    font-size: 28px;
    font-weight: 800;
    color: #12306f;
}

.guest-brand-subtitle {
    color: #5c6476;
    font-size: 14px;
}

.guest-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.guest-nav-links a {
    color: #1d2433;
    font-weight: 700;
}

.guest-login-link {
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #26a8ff, #0f3fce);
    color: #fff !important;
}

.guest-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 26px;
    padding: 18px 0 8px;
}

.guest-hero-content {
    background: linear-gradient(135deg, #ffffff, #e8f0ff);
    border-radius: 30px;
    padding: 52px;
    box-shadow: 0 18px 50px rgba(19, 46, 123, 0.08);
    border: 1px solid #dde6fb;
}

.guest-kicker,
.guest-section-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2567e8;
    margin-bottom: 12px;
}

.guest-hero-content h1,
.guest-detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.02;
    color: #121a2f;
}

.guest-hero-content p,
.guest-detail-content p {
    margin: 0;
    max-width: 780px;
    color: #5b6578;
    font-size: 17px;
    line-height: 1.7;
}

.guest-search-form {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.guest-search-form input,
.guest-filters-grid input,
.guest-filters-grid select {
    flex: 1;
    min-width: 220px;
    border: 1px solid #d5def3;
    border-radius: 16px;
    background: #fff;
    padding: 15px 16px;
    font-size: 15px;
    color: #1d2433;
}

.guest-search-form button,
.guest-filters-actions button,
.guest-filters-actions a,
.guest-detail-actions a {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #26a8ff, #0f3fce);
    color: #fff;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.guest-page {
    padding-bottom: 40px;
}

.guest-filters-card,
.guest-section,
.guest-detail-card,
.guest-viewer-card {
    background: #fff;
    border: 1px solid #e3e8f7;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(19, 46, 123, 0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.guest-filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.guest-filters-grid label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #5d6881;
    margin-bottom: 8px;
}

.guest-filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.guest-filters-actions a {
    background: #eef3ff;
    color: #1544b0;
}

.guest-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-section-header h2,
.guest-viewer-card h2 {
    margin: 0;
    font-size: 32px;
    color: #111b33;
}

.guest-count-pill {
    background: #eef3ff;
    color: #1544b0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.guest-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.guest-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.guest-featured-card,
.guest-library-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #e6ebfa;
    background: #fff;
    box-shadow: 0 12px 32px rgba(21, 44, 109, 0.06);
}

.guest-card-cover {
    height: 250px;
    background: linear-gradient(135deg, #1162ff, #3dd0ff);
    position: relative;
}

.guest-card-cover-small {
    height: 220px;
}

.guest-detail-cover {
    height: 320px;
}

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

.guest-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.guest-card-body {
    padding: 22px;
}

.guest-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.guest-card-tags span {
    background: #eef3ff;
    color: #1849b6;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.guest-card-tags-large {
    margin-bottom: 18px;
}

.guest-card-body h3 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    color: #131b31;
}

.guest-library-card .guest-card-body h3 {
    font-size: 24px;
}

.guest-card-body p {
    margin: 0;
    color: #606a7d;
    line-height: 1.7;
}

.guest-card-link,
.guest-card-footer a {
    color: #1350cf;
    font-weight: 800;
}

.guest-card-link {
    display: inline-block;
    margin-top: 18px;
}

.guest-card-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64708a;
    font-size: 14px;
}

.guest-empty-state {
    border: 1px dashed #c8d5f2;
    background: #f7f9ff;
    border-radius: 20px;
    padding: 38px;
    text-align: center;
    color: #55627d;
    font-size: 16px;
}

.guest-topbar-simple {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.guest-topbar-simple a:first-child {
    color: #1544b0;
}

.guest-topbar-simple a:last-child {
    color: #fff;
    background: linear-gradient(135deg, #26a8ff, #0f3fce);
    padding: 10px 14px;
    border-radius: 12px;
}

.guest-detail-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

.guest-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    color: #54627b;
}

.guest-detail-meta div {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f8ff;
}

.guest-detail-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.guest-video-frame,
.guest-pdf-frame {
    margin-top: 20px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dce4f8;
    background: #fff;
}

.guest-video-frame iframe {
    width: 100%;
    min-height: 560px;
    border: 0;
}

.guest-pdf-frame iframe {
    width: 100%;
    min-height: 840px;
    border: 0;
}
.footer-derechos{
    background:#0b0b2b;
    color:#fff;
    padding:18px 20px;
    font-size:14px;
    margin-top:40px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.footer-left{
    font-weight:500;
}

.footer-center{
    opacity:0.8;
}

.footer-right{
    font-size:13px;
    opacity:0.7;
}

@media(max-width:768px){
    .footer-container{
        flex-direction:column;
        text-align:center;
    }
}
@media (max-width: 1100px) {
    .guest-filters-grid,
    .guest-library-grid,
    .guest-featured-grid,
    .guest-detail-grid,
    .guest-detail-meta {
        grid-template-columns: 1fr 1fr;
    }

    .guest-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .guest-navbar,
    .guest-topbar-inner,
    .guest-topbar-simple,
    .guest-section-header,
    .guest-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .guest-filters-grid,
    .guest-library-grid,
    .guest-featured-grid,
    .guest-detail-meta {
        grid-template-columns: 1fr;
    }

    .guest-hero-content,
    .guest-filters-card,
    .guest-section,
    .guest-detail-card,
    .guest-viewer-card {
        padding: 20px;
    }

    .guest-hero-content h1,
    .guest-detail-content h1,
    .guest-section-header h2,
    .guest-viewer-card h2,
    .guest-card-body h3 {
        font-size: 28px;
    }

    .guest-card-cover,
    .guest-card-cover-small,
    .guest-detail-cover {
        height: 210px;
    }

    .guest-video-frame iframe {
        min-height: 280px;
    }

    .guest-pdf-frame iframe {
        min-height: 520px;
    }
}
