/**
 * About page - EXACT layout from vibe-coding-academy.html
 * Our fonts (Inter) and colors (brand gradient, etc.)
 */

/* Academy title with logo – <logo> academy name */
.academy-group-title-with-logo {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.academy-title-link {
    display: flex;
    align-items: center;
    gap: inherit;
    text-decoration: none;
    color: inherit;
}
.academy-sidebar-title-with-logo .academy-title-link {
    gap: 8px;
}
/* Solo el texto del nombre dentro del enlace — no el span.about-title-row (envuelve lápices) */
.academy-group-title-with-logo .academy-title-link > span {
    background: linear-gradient(to right, #00A3EC, #6988FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* Estado vacío: título sin about-title-row */
.academy-group-title-with-logo > span:not(.about-title-row) {
    background: linear-gradient(to right, #00A3EC, #6988FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.academy-group-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.main-content-area .academy-group-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    position: static !important;
    left: auto !important;
    border-radius: 50% !important;
}

/* Full-area background - breaks out of main-content-area padding */
.academy-page-bg {
    background-color: #F8F7F5;
    margin: -24px;
    padding: 24px;
    min-height: 100%;
}

.academy-layout-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    max-width: 1085px;
    margin: 0 auto;
    padding: 0 8px;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--login-text, #4E5460);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.academy-main-content {
    flex: 2 1 100%;
    min-width: 471px;
    max-width: 770px;
}

.academy-gap {
    flex-shrink: 1;
    flex-grow: 1;
    min-width: 24px;
    max-width: 42px;
}

.academy-sidebar {
    flex-shrink: 0;
    flex-grow: 0;
    width: 273px;
    position: relative;
}

.academy-content-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
    gap: 24px;
}

.academy-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E4E4E4);
    border-radius: 10px;
    overflow: hidden;
}

.academy-card-content {
    padding: 24px 18px 20px 18px;
}

.academy-card-content-inner {
    padding: 0 14px;
}

.academy-group-title {
    font-size: 23px;
    font-weight: bold;
    margin-bottom: 24px;
    background: linear-gradient(to right, #00A3EC, #6988FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Video Section */
.academy-video-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background: var(--border-color, #E4E4E4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
}

.academy-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Free/Subscription badge on course image – slightly larger, more spacing from edges */
.academy-video-container .catalog-course-status-badge {
    top: 12px;
    right: 12px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

.academy-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 163, 236, 0.2), rgba(105, 136, 255, 0.2));
}

.academy-video-container-embed {
    padding: 0;
}
.academy-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About image generating – spinner overlay */
.about-image-generating-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}
.about-image-generating-overlay.about-image-generating-failed {
    background: rgba(254, 226, 226, 0.95);
}
.about-image-generating-overlay.about-image-generating-failed .about-image-spinner {
    display: none;
}
.about-image-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #00A3EC;
    border-radius: 50%;
    animation: about-image-spin 0.8s linear infinite;
}
@keyframes about-image-spin {
    to { transform: rotate(360deg); }
}
.about-image-generating-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}
.about-image-generating-overlay.about-image-generating-failed .about-image-generating-text {
    color: #991b1b;
}
.academy-video-container.about-image-generating {
    position: relative;
}

.about-image-debug {
    margin-bottom: 12px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: #92400e;
}

.academy-video-play-button {
    position: absolute;
    width: 64px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-text, #4E5460);
}

.academy-video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background-color: var(--login-text, #4E5460);
    color: #ffffff;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 13px;
}

/* Thumbnails */
.academy-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.academy-thumbnails::-webkit-scrollbar {
    display: none;
}

.academy-thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

:root {
    --academy-placeholder-bg: #E4E4E4;
}

.academy-thumbnail.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 3px solid var(--brand-primary-design, #00A3EC);
    height: 100%;
    width: 100%;
    border-radius: 10px;
    pointer-events: none;
    box-sizing: border-box;
}

/* Group Info */
.academy-group-info {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    margin-top: 40px;
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: wrap;
}

.academy-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--login-text, #4E5460);
}

/* Solo iconos de la fila (miembros / precio); no el SVG del lápiz dentro del botón */
.academy-info-item > svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.academy-info-item-by {
    margin-left: auto;
}

.academy-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.academy-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.academy-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00A3EC, #6988FF);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.academy-author-name {
    font-weight: 500;
}

/* Description */
.academy-description {
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--login-text, #4E5460);
}

.academy-description p {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.academy-description p:first-child {
    margin-top: 0;
}

.academy-description p:last-child {
    margin-bottom: 0;
}

.academy-description ol {
    margin: 0;
    padding-left: 2em;
}

.academy-description a {
    color: var(--brand-primary-design, #00A3EC);
    text-decoration: none;
}

.academy-description a:hover {
    text-decoration: underline;
}

.academy-empty-line {
    height: 16px;
}

/* Courses section (uses courses-table, course-mobile-card from main.css) */
.about-courses-section {
    margin-top: 32px;
    padding-left: 14px;
    padding-right: 14px;
}

.about-courses-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--login-text, #4E5460);
}

.about-catalog-link-wrap {
    margin-top: 20px;
    text-align: center;
}

.about-catalog-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(to right, #00A3EC, #6988FF);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-catalog-btn:hover {
    opacity: 0.9;
}

/* Override .main-content-area img hide – show catalog course images, academy sidebar/video images on About page */
.main-content-area .academy-sidebar img,
.main-content-area .academy-video-container img,
.main-content-area .academy-video-thumbnail,
.main-content-area .about-courses-section .catalog-course-image,
.main-content-area .about-courses-section .catalog-course-image-wrap img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    width: auto !important;
    position: relative !important;
    left: auto !important;
}
.main-content-area .academy-video-container .academy-video-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.main-content-area .about-courses-section .catalog-course-image-wrap img {
    height: 100% !important;
    width: 100% !important;
}
.main-content-area .academy-sidebar .academy-sidebar-card-image {
    height: 144px !important;
    width: 100% !important;
}
.main-content-area .academy-sidebar .academy-sidebar-title-logo {
    height: 1.25em !important;
    width: 1.25em !important;
}
/* Hide broken/failed images so only placeholder shows */
.main-content-area .about-courses-section .catalog-course-image.catalog-course-image-failed {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Sidebar */
.academy-sidebar-card {
    padding: 0;
    overflow: hidden;
}

.academy-sidebar-card-image {
    width: 100%;
    height: 144px;
    object-fit: cover;
    display: block;
}

.academy-sidebar-card-image-placeholder {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 163, 236, 0.3), rgba(105, 136, 255, 0.3));
}

.academy-sidebar-card-content {
    padding: 16px;
}

.academy-sidebar-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
    background: linear-gradient(to right, #00A3EC, #6988FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Logo + academy name in sidebar (proportional to text) */
.academy-sidebar-title-with-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.academy-sidebar-title-with-logo .academy-title-link > span {
    background: linear-gradient(to right, #00A3EC, #6988FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.academy-sidebar-title-logo {
    width: 1.25em;
    height: 1.25em;
    min-width: 1.25em;
    min-height: 1.25em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.academy-sidebar-title-logo-placeholder {
    background: linear-gradient(135deg, rgba(0, 163, 236, 0.4), rgba(105, 136, 255, 0.4));
}

.academy-group-url {
    color: var(--text-secondary, #909090);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.academy-sidebar-description {
    margin-bottom: 16px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--login-text, #4E5460);
}

.academy-sidebar-description p {
    margin: 0;
}

.academy-sidebar-stats {
    margin-bottom: 16px;
}

.academy-stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color, #E4E4E4);
    border-bottom: 1px solid var(--border-color, #E4E4E4);
    padding: 8px 0;
}

.academy-stats-row > div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.academy-stats-row > div:nth-child(2) {
    border-left: 1px solid var(--border-color, #E4E4E4);
    border-right: 1px solid var(--border-color, #E4E4E4);
}

.academy-stat-number {
    font-size: 18px;
    font-weight: 500;
    color: var(--login-text, #4E5460);
}

.academy-stat-label {
    font-size: 13px;
    color: var(--text-secondary, #909090);
}

.academy-join-button {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: linear-gradient(to right, #00A3EC, #6988FF);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.32), 0px 2px 6px rgba(60, 64, 67, 0.15), 0px 1px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 100ms ease;
}

.academy-join-button:hover {
    opacity: 0.9;
}

/* Responsive - EXACT from original */
@media (max-width: 1024px) {
    .academy-layout-wrapper {
        flex-direction: column;
        min-width: 0;
        max-width: 100%;
    }

    .academy-main-content {
        max-width: 100%;
        min-width: auto;
    }

    .academy-sidebar {
        width: 100%;
        margin-top: 24px;
    }

    .academy-gap {
        display: none;
    }
}

@media (max-width: 768px) {
    .academy-layout-wrapper {
        min-width: 0;
        padding: 0 4px;
    }

    .academy-group-info {
        gap: 20px;
    }
}

/* Academy About (course about – public, academy layout) */
.academy-course-about-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--login-text, #4E5460);
    margin: 16px 0 32px;
    line-height: 1.3;
}
.academy-about-panel {
    padding-top: 8px;
}
.academy-about-section-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--login-text, #4E5460);
    margin: 0 0 16px;
}
.academy-about-desc {
    color: var(--login-text, #4E5460);
    line-height: 1.6;
}
.academy-about-desc p {
    margin: 0 0 12px;
}
.academy-about-desc p:last-child {
    margin-bottom: 0;
}
.academy-about-objectives {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.academy-about-objectives li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    color: var(--login-text, #4E5460);
}
.academy-about-obj-num {
    color: #00A3EC;
    margin-right: 8px;
    flex-shrink: 0;
}
.academy-syllabus-accordion {
    margin-top: 8px;
}
.academy-syllabus-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}
.academy-syllabus-section {
    border: 1px solid var(--border-color, #E4E4E4);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.academy-syllabus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
}
a.academy-syllabus-header-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}
.academy-syllabus-header:hover,
a.academy-syllabus-header-link:hover {
    background: #f9fafb;
}
.academy-syllabus-header h4 {
    font-size: 14px;
    font-weight: 500;
    color: #616a76;
    margin: 0;
}
.academy-syllabus-toggle {
    font-size: 18px;
    color: #9ca3af;
}
.academy-syllabus-body {
    border-top: 1px solid var(--border-color, #E4E4E4);
}
.academy-syllabus-lesson {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: var(--login-text, #4E5460);
}
a.academy-syllabus-lesson-link {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: background 0.15s ease;
}
a.academy-syllabus-lesson-link:hover {
    background: #f9fafb;
}
.academy-syllabus-lesson:last-child {
    border-bottom: none;
}
.academy-syllabus-lesson-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #00A3EC;
    flex-shrink: 0;
}
/* Same horizontal padding as /about (about-courses-section: 14px) */
.academy-about-main-wrap {
    padding-left: 14px;
    padding-right: 14px;
}
.academy-about-tabs-main {
    margin-top: 28px;
    margin-bottom: 16px;
}
.academy-about-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #E4E4E4);
}
.academy-about-course-meta {
    font-size: 14px;
    color: #6b7280;
}
.academy-about-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color, #E4E4E4);
    margin-bottom: 16px;
}
.academy-about-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    color: #717985;
    font-family: inherit;
}
.academy-about-tab:hover {
    color: #00A3EC;
}
.academy-about-tab.active {
    color: #00A3EC;
    border-bottom-color: #00A3EC;
}
.academy-about-sidebar-details {
    margin-bottom: 16px;
}
.academy-about-detail-row {
    font-size: 14px;
    color: var(--login-text, #4E5460);
    padding: 4px 0;
}
.academy-about-back-link {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: #00A3EC;
    text-decoration: none;
}
.academy-about-back-link:hover {
    text-decoration: underline;
}
.academy-about-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.academy-about-toast-warn {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* /about — owner inline edit (pencil + modal) */
.about-title-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    vertical-align: middle;
    /* Evita heredar clipping de texto del h1/h2 sobre los botones lápiz */
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}
.about-hero-with-edit .about-owner-edit-pencil {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.about-ae-hero-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
    display: none;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}
.about-academy-edit-remove-img {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}
.about-academy-edit-remove-img:hover {
    border-color: #fca5a5;
    color: #b91c1c;
    background: #fef2f2;
}
.about-owner-edit-pencil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.about-owner-edit-pencil:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fafc;
}
/* Los títulos del /about usan gradiente con -webkit-text-fill-color: transparent; hereda al botón y al SVG (stroke=currentColor) → lápices invisibles */
.academy-page-bg .about-owner-edit-pencil {
    -webkit-text-fill-color: #64748b;
    color: #64748b;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}
.academy-page-bg .about-owner-edit-pencil svg {
    stroke: #64748b;
}
.academy-page-bg .about-owner-edit-pencil:hover {
    -webkit-text-fill-color: #2563eb;
    color: #2563eb;
}
.academy-page-bg .about-owner-edit-pencil:hover svg {
    stroke: #2563eb;
}
.about-owner-block--inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.about-owner-block--url .academy-group-url {
    flex: 1 1 auto;
    min-width: 0;
}
.about-owner-block--subtitle {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.about-owner-block--subtitle .academy-description,
.about-owner-block--subtitle .academy-sidebar-description {
    flex: 1 1 auto;
    min-width: 0;
}
.about-owner-block--subtitle .about-owner-edit-pencil {
    flex-shrink: 0;
    margin-top: 2px;
}
.about-academy-subtitle-html {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.about-academy-subtitle-html p {
    margin: 0 0 0.75em;
}
.about-academy-subtitle-html p:last-child {
    margin-bottom: 0;
}
.about-academy-subtitle-html a {
    color: #0058cc;
}
.about-owner-block--join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.about-owner-block--join .academy-join-button {
    flex: 1 1 auto;
    text-align: center;
}

/* /about when no academy yet – same CTA alignment as sidebar JOIN */
.about-empty-school-join {
    margin-top: 24px;
    width: 100%;
}

.about-academy-edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100200;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.about-academy-edit-modal.is-open {
    display: flex;
}
.about-academy-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.about-academy-edit-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.about-academy-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.about-academy-edit-heading {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}
.about-academy-edit-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
}
.about-academy-edit-close:hover {
    background: #f3f4f6;
    color: #111827;
}
.about-academy-edit-scroll {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.about-academy-edit-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.about-ae-field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
}

/* Subdomain modal: input estrecho + sufijo .dominio en gris */
.about-ae-subdomain-row {
    max-width: min(100%, 22rem);
}
.about-ae-subdomain-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.about-ae-subdomain-wrap:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.about-ae-field-input--subdomain {
    width: auto;
    flex: 0 1 9.5rem;
    min-width: 5.5rem;
    max-width: 11rem;
    border: none;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 0.875rem;
    text-align: right;
    direction: ltr;
}
.about-ae-field-input--subdomain:focus {
    outline: none;
}
.about-ae-subdomain-suffix {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px 8px 10px;
    background: #f9fafb;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}
.about-ae-file-input {
    margin-top: 4px;
    font-size: 0.875rem;
}
.about-academy-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    flex-shrink: 0;
}
.about-academy-edit-cancel,
.about-academy-edit-save {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.about-academy-edit-cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}
.about-academy-edit-save {
    border: none;
    background: #2563eb;
    color: #fff;
}
.about-academy-edit-save:hover:not(:disabled) {
    background: #1d4ed8;
}
.about-academy-edit-save:disabled {
    opacity: 0.7;
    cursor: wait;
}
.about-academy-edit-hint {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}
.about-academy-edit-lead {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}
.about-academy-edit-link {
    color: #2563eb;
    font-weight: 500;
}
.about-academy-edit-muted {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 8px;
}
.about-academy-edit-muted--tight {
    margin-top: 4px;
    margin-bottom: 0;
}
.about-academy-edit-hero-ai-wrap {
    margin-top: 14px;
    margin-bottom: 0;
}
.about-academy-edit-regenerate-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid #c7d2fe;
    background: linear-gradient(to right, #eef2ff, #f5f3ff);
    color: #4338ca;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.about-academy-edit-regenerate-ai:hover:not(:disabled) {
    border-color: #818cf8;
    color: #3730a3;
}
.about-academy-edit-regenerate-ai:disabled {
    opacity: 0.75;
    cursor: wait;
}
.about-ae-logo-preview-wrap {
    margin-top: 12px;
}
.about-ae-logo-preview {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
    display: none;
    border: 1px solid #e5e7eb;
}
.about-academy-edit-error {
    color: #b91c1c;
    font-size: 0.875rem;
    margin: 0;
}
