/* 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;
    gap: 16px;
}

.home-col { min-width: 0; }

.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-col-right .home-dynamic-text,
.page-home .home-col-right .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;
}

.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; }

    .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%; }
}

/* Admin */
body.page-admin .site-main { max-width: 1400px; }

.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 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 .current { font-weight: bold; font-style: italic; }
.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-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 {
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
    font-size: 13pt;
}

.admin-msg { font-weight: bold; margin: 8px 0; }
.admin-msg.ok { color: #060; }
.admin-msg.err { color: #900; }

.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;
}

.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; }
}
