/* Psicología Multiplano — site styles */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: #000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14pt;
    line-height: 1.5;
    background: #fff;
}

a { color: #000; }
img { max-width: 100%; height: auto; }

.site-header {
    background: #fff;
    width: 100%;
    border-bottom: none;
}

.site-header::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, #cff5fe 0%, #ffe4e3 100%);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.header-logo img { display: block; }

.header-right { flex: 1; min-width: 280px; }

.header-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
    font-size: 13pt;
    font-weight: bold;
}

.nav-btn.active { background: #cff5fe; }

@media (min-width: 901px) {
    .nav-btn:hover {
        background: #cff5fe;
        border-color: #888;
    }

    .lang-switch select:hover {
        background: #cff5fe;
        border-color: #888;
        cursor: pointer;
    }
}

.lang-switch select {
    min-height: 36px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 13pt;
    background: #fff;
}

.header-social-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 0 0;
}

.header-social-row .social-links {
    gap: 30px;
    padding: 0 30px;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-mobile {
    justify-content: space-around;
    width: 100%;
    max-width: 320px;
    margin: 8px auto 0;
}

.header-mobile { width: 100%; }

.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

.text-box {
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 16px;
    color: #000;
}

.text-box-1 { background: #cff5fe; }
.text-box-2 { background: #ffe4e3; }
.text-box-3 { background: #daffdd; }
.text-box-4 { background: #fff1e8; }

.box-title {
    font-size: 21pt;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: left;
}

.box-subtitle {
    font-size: 18pt;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: left;
}

.box-text {
    text-align: justify;
    margin: 0 0 10px;
}

.box-list {
    text-align: left;
    margin: 0 0 10px 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "what course"
        "project subscribe"
        "certification about";
    gap: 16px;
    align-items: start;
}

.home-panel { min-width: 0; }
.home-panel-what { grid-area: what; }
.home-panel-course { grid-area: course; }
.home-panel-project { grid-area: project; }
.home-panel-subscribe { grid-area: subscribe; }
.home-panel-certification { grid-area: certification; }
.home-panel-about { grid-area: about; }

.home-video-block { margin-bottom: 12px; }

.presentation-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.home-dynamic-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.home-dynamic-row.no-poster .home-dynamic-text { flex: 1; }

.home-dynamic-text {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    text-align: justify;
    white-space: pre-line;
}

.home-dynamic-text p { margin: 0 0 8px; }

.home-poster-col {
    flex: 0 0 200px;
    width: 200px;
}

.poster-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
}

.poster-thumb:hover { opacity: 0.9; }

.home-cta {
    display: block;
    text-align: left;
    margin: 8px 0 16px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14pt;
}

.page-home .home-panel-course .home-dynamic-text,
.page-home .home-panel-course .home-cta {
    text-align: left;
}

.page-cursos .home-dynamic-text,
.page-cursos .home-cta {
    text-align: center;
}

.page-cursos .text-box .home-dynamic-text {
    padding: 0;
}

.public-course-detail .box-title,
.public-course-detail .box-subtitle,
.public-course-detail .course-schedule,
.public-course-detail .course-audience {
    text-align: left;
}

.public-course-body {
    text-align: justify;
}

.public-course-body p {
    margin: 0 0 10px;
}

.course-audience {
    margin: -4px 0 10px;
    font-size: 12pt;
    font-weight: bold;
}

.course-schedule {
    margin: 0 0 6px;
    font-weight: bold;
}

.course-summary-section {
    margin: 22px 0;
}

.course-summary-list {
    display: grid;
    gap: 14px;
}

.course-summary-card {
    display: grid;
    grid-template-columns: 180px minmax(220px, 0.8fr) minmax(260px, 1.2fr);
    gap: 16px;
    align-items: stretch;
    min-height: 250px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
    text-decoration: none;
}

.course-summary-card.no-poster {
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
}

.course-summary-card:hover {
    background: #cff5fe;
}

.course-summary-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    overflow: hidden;
}

.course-summary-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.course-summary-main,
.course-summary-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.course-summary-main {
    gap: 7px;
    font-size: 13pt;
}

.course-summary-main strong {
    font-size: 16pt;
}

.course-summary-description {
    font-size: 11.5pt;
    line-height: 1.35;
    color: #333;
}

.page-wide-separator {
    height: 4px;
    margin: 28px -16px 22px;
    background: linear-gradient(to right, #cff5fe 0%, #ffe4e3 100%);
}

.about-michela-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.about-michela-headings {
    flex: 1;
    min-width: 0;
}

.about-michela-headings .box-subtitle {
    margin-bottom: 0;
}

.about-michela-photo {
    flex: 0 0 300px;
    width: 300px;
    height: auto;
    border-radius: 15px;
    display: block;
}

.cursos-video-wrap {
    max-width: 900px;
    border: 1px solid #000;
    margin: 0 auto 16px;
}

.cursos-video-wrap video { width: 100%; display: block; }

.page-contacto { text-align: center; }

.contacto-intro {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 24px;
    text-align: left;
}

.contacto-details {
    flex: 1;
    min-width: 0;
}

.page-contacto .contact-photo {
    flex: 0 0 auto;
    width: 280px;
    max-width: 40%;
    border-radius: 15px;
    margin: 0;
    display: block;
}

.subscribe-form label {
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin-top: 4px;
    font-size: 14pt;
    border: 1px solid #999;
    border-radius: 5px;
}

.subscribe-audience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 10px;
    text-align: left;
}

.subscribe-audience-label {
    font-weight: bold;
}

.subscribe-audience .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
}

.subscribe-audience input[type="radio"] {
    margin: 0;
}

.btn-submit {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 14pt;
    border-radius: 5px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-msg { font-weight: bold; }
.form-ok { color: #060; }
.form-err { color: #900; }

.site-footer {
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    font-size: 12pt;
    color: #444;
    margin-top: 24px;
}

.footer-home { background: #e8f7fc; }
.footer-cursos { background: #fde8e7; }
.footer-supervision { background: #e8fde9; }
.footer-certificacion { background: #fff5ee; }
.footer-contacto { background: #f0f0f0; }
.footer-pago { background: #e8f7fc; }
.footer-terminos { background: #f5f5f5; }
.footer-admin { background: #eee; }

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-logo { display: block; margin: 0 auto 12px; max-width: 200px; }

.copy-email-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copy-email {
    background: none;
    border: none;
    font: inherit;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.copy-email-feedback {
    font-size: 12pt;
    font-weight: bold;
    color: #060;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.copy-email-feedback.visible {
    opacity: 1;
}

.hamburger {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.mobile-menu {
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.mobile-menu a {
    display: block;
    padding: 8px 4px;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 900px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }

    .mobile-menu[hidden] {
        display: none !important;
    }

    .header-inner { justify-content: center; }
    .header-logo { text-align: center; width: 100%; }

    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "what"
            "course"
            "project"
            "certification"
            "subscribe"
            "about";
    }

    .home-dynamic-row {
        flex-direction: column;
    }

    .home-dynamic-text { text-align: center; }

    .home-poster-col {
        flex: none;
        width: 100%;
        max-width: 280px;
    }

    .home-cta { text-align: center; }

    .contacto-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-contacto .contact-photo {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 16px;
    }

    .about-michela-header {
        flex-direction: column;
    }

    .about-michela-photo {
        width: 100%;
        max-width: 300px;
        flex-basis: auto;
        align-self: center;
    }

    .cursos-video-wrap { max-width: 100%; }

    .course-summary-card {
        grid-template-columns: 1fr;
    }

    .course-summary-poster {
        max-width: 220px;
        margin: 0 auto;
    }

    .course-summary-main,
    .course-summary-description {
        text-align: center;
    }
}

/* Admin */
body.page-admin .site-main { max-width: 1400px; }

.admin-subnav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.admin-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-subnav-right {
    justify-content: flex-end;
}

.admin-banner {
    background: #daffdd;
    color: #060;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-section {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-section h2 {
    margin: 0 0 12px;
    font-size: 18pt;
}

.video-list { list-style: none; padding: 0; margin: 0 0 12px; }
.video-list li { margin-bottom: 4px; }
.video-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.video-list a { text-decoration: none; }
.video-list-name { flex: 1 1 180px; min-width: 0; word-break: break-all; }
.video-list .current { font-weight: bold; font-style: italic; }
.admin-btn-set,
.admin-btn-view {
    padding: 2px 10px;
    font-size: 11pt;
    text-decoration: none;
    display: inline-block;
}
.admin-video-view-page {
    max-width: none;
    padding: 20px;
    text-align: center;
}
.admin-video-view-back {
    text-align: left;
    margin: 0 0 12px;
}
.admin-video-view-title {
    font-size: 14pt;
    margin: 0 0 16px;
    word-break: break-all;
}
.admin-video-view-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.admin-video-view-player {
    width: 80vw;
    height: 80vh;
    max-width: 100%;
    object-fit: contain;
    background: #000;
}
.video-delete-form { display: inline; margin: 0; }
.admin-btn-delete {
    padding: 2px 8px;
    font-size: 11pt;
    border-color: #999;
    color: #900;
}

.admin-textarea {
    width: 100%;
    min-height: 20em;
    font-family: Georgia, serif;
    font-size: 14pt;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 5px;
}

.admin-textarea-short {
    min-height: 10em;
}

.admin-lang-tabs {
    display: flex;
    width: 100%;
    gap: 6px;
    margin-bottom: 10px;
}

.admin-lang-tabs .nav-btn {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    font-family: inherit;
}

.admin-toolbar { margin: 8px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.admin-save-status {
    font-size: 12pt;
    font-weight: bold;
    color: #060;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.admin-save-status.visible { opacity: 1; }
.admin-save-status.err { color: #900; }

.admin-toolbar button,
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
    font-size: 13pt;
    line-height: 1.2;
    text-decoration: none;
}

.admin-btn.active { background: #cff5fe; }

.admin-serif-bold-btn {
    font-family: Georgia, serif;
    font-weight: bold;
}

.admin-btn-small {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 11pt;
}

.admin-msg { font-weight: bold; margin: 8px 0; }
.admin-msg.ok { color: #060; }
.admin-msg.err { color: #900; }

.admin-list-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 0 0 14px;
}

.admin-members-subscriber-count {
    margin-left: auto;
    align-self: center;
    font-size: 11pt;
    white-space: nowrap;
}

.admin-list-controls label,
.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: bold;
}

.admin-list-controls input,
.admin-list-controls select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-control select {
    width: 100%;
    padding: 7px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font: inherit;
    font-size: 12pt;
}

.admin-form textarea { min-height: 10em; }

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.admin-form-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-inline {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    margin: 6px 14px 10px 0;
}

.check-inline input { width: auto; }

.admin-check-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}

.admin-check-row > span {
    font-weight: bold;
}

.admin-save-btn {
    margin-top: 12px;
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.admin-save-btn.dirty,
.poster-save-btn.dirty,
.home-text-floating-save-btn.dirty {
    background: #daffdd;
    border-color: #35a853;
    box-shadow: 0 0 14px rgba(53, 168, 83, 0.65);
    animation: saveGlow 1.8s ease-in-out infinite;
}

.admin-save-float,
.poster-save-float {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.admin-bottom-save-btn,
.poster-bottom-save-btn {
    display: inline-flex;
    margin-top: 18px;
}

@keyframes saveGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(53, 168, 83, 0.35); }
    50% { box-shadow: 0 0 22px rgba(53, 168, 83, 0.9); }
}

.admin-click-table tbody tr { cursor: pointer; }
.admin-click-table tbody tr:hover { background: #cff5fe; }

.subscriber-table th a {
    color: #000;
    text-decoration: none;
}

.subscriber-table th a.active-sort { text-decoration: underline; }

.admin-detail-section {
    margin-top: 18px;
    background: #fff1e8;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.admin-mini-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
}

.admin-mini-section h3,
.course-lang-box h3 { margin: 0 0 8px; }

.admin-simple-list { margin: 10px 0 0 20px; }
.admin-simple-list li { margin-bottom: 8px; }

.admin-member-course-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.admin-member-course-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.accounting-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.accounting-summary > div {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 11.5pt;
}

.accounting-summary strong,
.accounting-summary span {
    display: inline;
}

.accounting-summary strong::after {
    content: ": ";
}

.accounting-summary span {
    font-size: 12pt;
}

.accounting-fl-share-section {
    margin-top: 18px;
}

.accounting-benefit-formula {
    margin-top: 2.8em;
    text-align: center;
}

.accounting-benefit-formula img {
    max-width: 100%;
    height: auto;
}

.admin-payment-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 11pt;
}

.admin-payment-status.paid {
    background: #daffdd;
}

.admin-payment-status.unpaid {
    background: #ffe4e3;
}

.admin-member-course-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 100%;
}

.admin-member-course-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1 1 100%;
}

.admin-member-course-payment {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-member-course-payment .admin-inline-label input {
    width: 96px;
}

.admin-member-course-payment .check-inline {
    margin: 0;
}

.admin-member-course-remove {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.inline-form {
    display: inline;
    margin-left: 8px;
}

.admin-link-btn {
    border: none;
    background: transparent;
    color: #900;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.admin-delete-btn {
    min-height: 28px;
    padding: 3px 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #eee;
    color: #333;
    font-size: 11pt;
    cursor: pointer;
}

.admin-delete-btn:hover {
    background: #ddd;
}

.admin-inline-control,
.member-file-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.member-file-form {
    border: 2px dashed transparent;
    border-radius: 8px;
    padding: 8px;
}

.member-file-form.dragover {
    border-color: #35a853;
    background: #daffdd;
}

.admin-upload-hint,
.admin-muted {
    color: #555;
    font-size: 11pt;
}

.admin-inline-control select { flex: 1 1 260px; }

.admin-home-mode-form label {
    flex: 1 1 360px;
}

.admin-home-mode-form select {
    flex: 0 0 auto !important;
    height: 38px;
    min-height: 0;
    max-height: 38px;
    line-height: 1.2;
}

.admin-provider-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-provider-row input {
    flex: 1 1 220px;
    padding: 7px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font: inherit;
    font-size: 12pt;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.accounting-provider-vat {
    display: none;
    margin-left: auto;
    font-weight: bold;
}

.accounting-provider-vat.visible {
    display: inline-flex;
}

.accounting-francois-checkbox {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.admin-inline-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
}

.admin-inline-label input {
    width: 120px;
}

.admin-attendee-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.admin-attendee-row > span {
    flex: 1 1 260px;
}

body.accounting-type-expense .accounting-income-fields,
body.accounting-type-income .accounting-expense-fields {
    display: none;
}

.course-lang-box {
    border: 1px solid #ddd;
    margin-top: 16px;
}

.course-lang-box .check-inline {
    margin-bottom: 0;
}

.home-upcoming-course { margin-bottom: 12px; }
.home-upcoming-course h3 { margin: 0 0 6px; }
.public-course-card .cursos-video-wrap { margin-bottom: 12px; }

body.poster-editor-page .site-main {
    max-width: none;
}

.poster-editor-shell {
    width: 100%;
}

.poster-editor-topbar,
.poster-resource-row,
.poster-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.poster-save-btn {
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.poster-editor-reminder {
    font-weight: bold;
    margin: 0 0 12px;
}

.poster-resource-tile {
    width: 200px;
    height: 200px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.poster-editor-layout {
    display: grid;
    grid-template-columns: minmax(520px, 900px) minmax(360px, 640px);
    gap: 24px;
    align-items: flex-start;
}

.poster-main-link {
    width: 900px;
    max-width: 100%;
    aspect-ratio: 210 / 297;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #f8f8f8;
    text-decoration: none;
}

.poster-main-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.poster-main-link.empty {
    color: #555;
    font-weight: bold;
}

.poster-side-panel {
    width: 640px;
    max-width: 100%;
}

.poster-upload-box {
    position: relative;
    min-height: 170px;
    border: 2px dashed #999;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: #fff;
    margin-bottom: 12px;
}

.poster-upload-box.dragover {
    border-color: #35a853;
    background: #daffdd;
}

#poster-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.poster-style-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: bold;
    margin-top: 14px;
}

.poster-style-label select {
    width: 260px;
    padding: 8px;
    font: inherit;
    font-size: 12pt;
}

.poster-prompt-head {
    width: 600px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-weight: bold;
}

.poster-prompt-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#poster-prompt {
    width: 600px;
    max-width: 100%;
    min-height: 27em;
    max-height: 27em;
    overflow: auto;
    white-space: pre-wrap;
    padding: 10px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11pt;
}

.admin-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.poster-upload-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.poster-upload-row .poster-form,
.poster-upload-row .poster-delete-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.poster-delete-form button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-poster-sep {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.poster-block-title {
    margin: 0 0 12px;
    font-size: 16pt;
}

.poster-preview-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.poster-drop-zone {
    flex: 1 1 50%;
    min-height: 4.5em;
    border: 2px dashed #999;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 12pt;
    color: #555;
    cursor: pointer;
    background: #fff;
}

.poster-drop-zone.dragover { border-color: #333; background: #f0f8ff; }

.poster-thumb-admin {
    flex: 1 1 50%;
    min-height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-thumb-admin img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    border: 1px solid #ccc;
}

.subscriber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11pt;
}

.subscriber-table th,
.subscriber-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.subscriber-table th { background: #eee; }

.admin-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-pmp-app-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.subscriber-ps {
    text-align: center;
    width: 3em;
}

.ps-check {
    color: #060;
    font-weight: bold;
    font-size: 14pt;
}

.admin-login-box {
    max-width: 360px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.admin-login-box input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0 12px;
    font-size: 14pt;
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-form-grid,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
    .poster-editor-layout {
        grid-template-columns: 1fr;
    }
    .poster-main-link {
        width: 100%;
    }
}
