/* ==========================================================================
   EL PROFE DE PROFES - SYSTEM TOKENS & BRANDING DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Brand Primary Palette (Amarillo Lima / Mostaza) */
    --brand-primary: #C9C603;
    --brand-lime: #C9C603;
    --brand-primary-hover: #ABAB01;
    --brand-primary-active: #929200;

    /* Brand Dark Palette (Negro Carbón & Grafito) */
    --brand-dark: #1A1A19;
    --brand-dark-secondary: #30302E;

    /* Brand Grays */
    --brand-gray-dark: #61605E;
    --brand-gray: #9B9B9A;

    /* Brand Backgrounds & Surfaces */
    --brand-background: #F7F7F3;
    --brand-surface: #FFFFFF;
    --brand-surface-alt: #F0F0EC;

    /* Brand Borders & Separators */
    --brand-border: #D8D8D1;
    --brand-border-input: #CFCFC8;

    /* Brand Typography */
    --brand-text: #1A1A19;
    --brand-text-body: #1F1F1D;
    --brand-text-secondary: #61605E;
    --brand-text-muted: #85857F;

    /* Functional / Semantic Colors */
    --success: #15803D;
    --info: #2563EB;
    --warning: #A16207;
    --error: #B91C1C;
    --neutral: #61605E;

    /* Progress & Accessories */
    --progress-bg: #E5E5DF;

    /* Typography Families */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.dark-theme {
    --brand-background: #121211;
    --brand-surface: #1C1C1B;
    --brand-surface-alt: #262625;
    --brand-border: #383836;
    --brand-border-input: #424240;
    --brand-text: #F7F7F3;
    --brand-text-body: #E5E5E0;
    --brand-text-secondary: #AAAAA5;
    --brand-text-muted: #888884;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-background);
    color: var(--brand-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Application Mode Controllers */
#publicLandingPage {
    display: block;
}

#appContainer {
    display: none;
}

body.mode-app #publicLandingPage {
    display: none;
}

body.mode-app #appContainer {
    display: flex;
}

/* Public Landing Page Navbar */
.landing-navbar {
    background-color: var(--brand-dark);
    padding: 1.25rem 2rem;
    border-bottom: 3px solid var(--brand-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.landing-brand img {
    height: 42px;
    filter: brightness(0) invert(1);
}

.landing-brand span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-surface);
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-nav-link {
    color: var(--brand-surface-alt);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.landing-nav-link:hover {
    color: var(--brand-primary);
}

/* Comic Sunburst & Halftone Background */
.comic-sunburst-bg {
    background-color: var(--brand-primary);
    background-image: 
        radial-gradient(circle at center, transparent 30%, rgba(26, 26, 25, 0.08) 100%),
        repeating-conic-gradient(from 0deg, rgba(255,255,255,0.2) 0deg 15deg, transparent 15deg 30deg),
        radial-gradient(rgba(26, 26, 25, 0.15) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 16px 16px;
    border-bottom: 4px solid var(--brand-dark);
}

.home-landing-hero {
    position: relative;
    padding: 5rem 2rem 6rem;
    overflow: hidden;
}

.home-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-avatar-image {
    width: 100%;
    max-width: 620px;
    height: auto;
    border-radius: 16px;
    border: 4px solid var(--brand-dark);
    box-shadow: 8px 8px 0px var(--brand-dark);
    background-color: var(--brand-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-avatar-image:hover {
    transform: scale(1.02) rotate(-0.5deg);
    box-shadow: 12px 12px 0px var(--brand-dark);
}

.social-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-dark);
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.comic-title-banner {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--brand-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #FFFFFF;
}

.comic-card-vignette {
    background-color: var(--brand-surface);
    border: 3px solid var(--brand-dark);
    box-shadow: 5px 5px 0px var(--brand-dark);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card-vignette:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--brand-dark);
}

/* Public Blog Card & Reader Modal */
.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--brand-dark);
    margin-bottom: 1rem;
    box-shadow: 3px 3px 0px var(--brand-dark);
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-featured-img {
    transform: scale(1.02);
}

.blog-modal-featured-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--brand-dark);
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0px var(--brand-dark);
}

/* YouTube Channel Section & Slider */
.yt-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background-color: var(--brand-surface);
    border: 3px solid var(--brand-dark);
    box-shadow: 5px 5px 0px var(--brand-dark);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yt-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--brand-dark);
}

.yt-thumb-box {
    position: relative;
    width: 100%;
    height: 165px;
    border-radius: 8px;
    border: 2px solid var(--brand-dark);
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.yt-play-icon {
    position: absolute;
    width: 52px;
    height: 38px;
    background-color: #FF0000;
    border: 2px solid #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #FFFFFF;
    margin-left: 3px;
}

.yt-card:hover .yt-play-icon {
    transform: scale(1.15);
    background-color: #CC0000;
}

@media (max-width: 992px) {
    .yt-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .yt-card {
        flex: 0 0 100%;
    }
}

.btn-editor-tool {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--brand-dark);
    transition: all 0.15s ease;
}

.btn-editor-tool:hover {
    background: var(--brand-primary);
    border-color: var(--brand-dark);
}

.photo-opt-btn.active {
    background-color: var(--brand-dark);
    color: var(--brand-primary);
    border-color: var(--brand-dark);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--brand-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.blog-post-content {
    line-height: 1.8;
    color: var(--brand-text);
}

.blog-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--brand-text);
}

.blog-post-content p {
    margin-bottom: 1.25rem;
    color: var(--brand-text-body);
}

.blog-post-content code, .blog-prompt-block {
    display: block;
    background-color: var(--brand-surface-alt);
    border-left: 4px solid var(--brand-primary);
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 1.25rem 0;
}

.page-title-wrapper {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-text);
    position: relative;
    display: inline-block;
}

.page-title::after, .title-accent-line {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background-color: var(--brand-primary);
    margin-top: 8px;
    border-radius: 2px;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.view-section {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar {
    width: 260px;
    background-color: var(--brand-dark);
    color: var(--brand-surface-alt);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--brand-dark-secondary);
}

.sidebar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sidebar-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-surface);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gray);
    padding: 0.75rem 1rem 0.35rem;
    font-weight: 700;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--brand-surface-alt);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.sidebar-item .nav-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gray);
    transition: color 0.2s ease;
}

.sidebar-item:hover {
    background-color: var(--brand-dark-secondary);
    color: var(--brand-surface);
}

.sidebar-item.active {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    font-weight: 700;
}

.sidebar-item.active .nav-icon {
    color: var(--brand-dark);
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--brand-dark-secondary);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    border: 2px solid var(--brand-dark-secondary);
}

.user-info .user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-surface);
    line-height: 1.2;
}

.user-info .user-role {
    font-size: 0.75rem;
    color: var(--brand-gray);
}

.main-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-header {
    background-color: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--brand-text);
}

.header-search {
    position: relative;
    width: 340px;
}

.header-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid var(--brand-border-input);
    border-radius: 9999px;
    background-color: var(--brand-surface-alt);
    font-size: 0.9rem;
    color: var(--brand-text);
    transition: all 0.2s ease;
}

.header-search input:focus {
    outline: none;
    background-color: var(--brand-surface);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(201, 198, 3, 0.25);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-text-muted);
    font-size: 0.9rem;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--brand-surface);
    border: 2px solid var(--brand-dark);
    box-shadow: 0 10px 25px rgba(26, 26, 25, 0.15);
    border-radius: 12px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 200;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--brand-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: rgba(201, 198, 3, 0.15);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--brand-text);
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--brand-surface-alt);
    border-color: var(--brand-text);
}

.notif-btn {
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    color: var(--brand-text);
    transition: all 0.2s ease;
}

.notif-btn:hover {
    background-color: var(--brand-surface-alt);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-surface);
}

.notification-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background-color: var(--brand-surface);
    border: 2px solid var(--brand-dark);
    box-shadow: 0 10px 30px rgba(26, 26, 25, 0.2);
    border-radius: 12px;
    z-index: 200;
    overflow: hidden;
}

.notification-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.notif-header {
    padding: 0.85rem 1rem;
    background-color: var(--brand-surface-alt);
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.notif-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.notif-item:hover {
    background-color: var(--brand-background);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    border-color: var(--brand-primary);
    box-shadow: 0 2px 4px rgba(26, 26, 25, 0.08);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--brand-dark);
    color: var(--brand-surface);
    border-color: var(--brand-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--brand-text);
    color: var(--brand-text);
}

.btn-outline:hover {
    background-color: var(--brand-surface-alt);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-cta-aula {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    border: 2px solid var(--brand-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0px var(--brand-dark);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-cta-aula:hover {
    background-color: var(--brand-primary-hover);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--brand-dark);
}

.filter-chip {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-border);
    background-color: var(--brand-surface);
    color: var(--brand-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    border-color: var(--brand-dark);
    font-weight: 800;
}

.content-area {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(26, 26, 25, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 14px rgba(26, 26, 25, 0.1);
    border-color: var(--brand-gray);
}

.card-accent-top {
    border-top: 4px solid var(--brand-primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 25, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-modal {
    background-color: var(--brand-surface);
    border: 3px solid var(--brand-dark);
    box-shadow: 8px 8px 0px var(--brand-dark);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--brand-text-muted);
}

.modal-logo {
    height: 50px;
    margin-bottom: 1rem;
}

@media print {
    .sidebar, .main-header, .page-title-wrapper button, #addRowBtn, #printRubricBtn, #addQuestionBtn {
        display: none !important;
    }
    .main-viewport {
        margin: 0;
        padding: 0;
    }
    .content-area {
        padding: 0;
    }
    .table-wrapper, .card {
        box-shadow: none;
        border: 2px solid #000;
    }
    body {
        background-color: #fff;
    }
}

/* ==========================================================================
   FORM CONTROLS & INPUT SYSTEM - POP-ART EDITORIAL DESIGN
   ========================================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-dark);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-theme .form-label {
    color: var(--brand-text);
}

.form-control, 
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="url"].form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-dark);
    background-color: var(--brand-surface);
    border: 2.5px solid var(--brand-dark);
    border-radius: 12px;
    box-shadow: 3px 3px 0px var(--brand-dark);
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
}

body.dark-theme .form-control {
    color: var(--brand-text);
    background-color: var(--brand-surface-alt);
    border-color: var(--brand-border);
    box-shadow: 3px 3px 0px #000000;
}

.form-control::placeholder {
    color: var(--brand-text-muted);
    font-weight: 400;
    opacity: 0.75;
}

.form-control:focus {
    border-color: var(--brand-dark);
    background-color: #FFFFFF;
    box-shadow: 5px 5px 0px var(--brand-primary);
    transform: translateY(-2px);
}

body.dark-theme .form-control:focus {
    background-color: #242423;
    box-shadow: 5px 5px 0px var(--brand-primary);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A19' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

/* Custom Editor Inputs & Contenteditable Boxes */
.editor-input-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    padding: 1rem 1.25rem;
    border: 3px solid var(--brand-dark);
    border-radius: 12px;
    box-shadow: 4px 4px 0px var(--brand-dark);
}

.editor-content-editable {
    min-height: 280px;
    padding: 1.25rem;
    border: 2.5px solid var(--brand-dark);
    border-radius: 12px;
    box-shadow: 4px 4px 0px var(--brand-dark);
    background-color: var(--brand-surface);
    font-size: 1.05rem;
    line-height: 1.7;
    outline: none;
    transition: all 0.2s ease;
}

.editor-content-editable:focus {
    box-shadow: 5px 5px 0px var(--brand-primary);
}

/* Modal Enhancements & Darse de Alta Compact Typography */
.login-modal {
    background: var(--brand-surface);
    border: 3.5px solid var(--brand-dark);
    box-shadow: 10px 10px 0px var(--brand-dark);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    position: relative;
    width: 92%;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#loginModal .login-modal {
    padding: 1.85rem 1.65rem;
    max-width: 490px;
}

#loginModal h2 {
    font-size: 1.3rem;
}

#loginModal p {
    font-size: 0.825rem;
}

#loginModal .auth-tabs-header {
    margin-bottom: 1.15rem !important;
}

#loginModal .auth-tabs-header button {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.6rem !important;
}

#loginModal .form-group {
    margin-bottom: 1.05rem;
    gap: 0.3rem;
}

#loginModal .form-label {
    font-size: 0.84rem;
    font-weight: 700;
}

#loginModal .form-control {
    font-size: 0.88rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border-width: 2px;
    box-shadow: 2.5px 2.5px 0px var(--brand-dark);
}

.btn-google-sso:hover {
    background-color: #F8F9FA !important;
    box-shadow: 5px 5px 0px var(--brand-dark) !important;
    transform: translateY(-2px);
}

.btn-google-sso:active {
    box-shadow: 1px 1px 0px var(--brand-dark) !important;
    transform: translateY(1px);
}

.google-account-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--brand-surface);
}

.google-account-item:hover {
    border-color: var(--brand-dark);
    box-shadow: 3px 3px 0px var(--brand-primary);
    transform: translateY(-2px);
}

#loginModal .btn-cta-aula {
    font-size: 0.925rem !important;
    padding: 0.65rem 1rem !important;
    margin-top: 0.4rem;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Ocultar barra de herramientas campus y cabecera en SOBRE MÍ */
body.hide-campus-sidebar #appSidebar {
    display: none !important;
}

body.hide-campus-sidebar .main-header {
    display: none !important;
}

body.hide-campus-sidebar .main-viewport {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.hide-campus-sidebar #view-sobre-mi {
    padding: 0 !important;
}

.sobre-mi-wrapper {
    background-color: transparent;
    color: var(--brand-text-body);
    font-family: var(--font-body);
    width: 100%;
}

.sobre-mi-hero {
    padding: 1rem 0 3rem 0;
    max-width: 1350px;
    margin: 0 auto;
}

.sobre-mi-hero-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .sobre-mi-hero-container {
        grid-template-columns: 1fr;
    }
    .sobre-mi-hero {
        padding: 1.5rem 0;
    }
}

.sobre-mi-hero-left {
    padding-right: 1.5rem;
}

.sobre-mi-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sobre-mi-bio {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--brand-text-body);
    margin-bottom: 1.5rem;
}

.metrics-band {
    background-color: var(--brand-dark);
    color: #FFFFFF;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-top: 4px solid var(--brand-primary);
    border-bottom: 4px solid var(--brand-primary);
    box-shadow: 4px 4px 0px var(--brand-dark);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.metric-item {
    padding: 0.5rem;
}

.section-lo-que-hago,
.section-forma-trabajar,
.section-formacion,
.section-cuadricula {
    padding: 3.5rem 0;
    max-width: 1350px;
    margin: 0 auto;
}

.grid-cuadricula-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

@media (max-width: 768px) {
    .grid-cuadricula-4 {
        grid-template-columns: 1fr;
    }
}

.cuadricula-card {
    background: #FFFFFF;
    border: 2.5px solid var(--brand-dark);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 4px 4px 0px var(--brand-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cuadricula-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px var(--brand-primary);
}

.cuadricula-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--brand-dark);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.cuadricula-title span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-text-secondary);
    display: block;
    margin-top: 0.25rem;
}

.section-trayectoria {
    background-color: #1A1A19;
    padding: 4rem 3rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 4px 4px 0px var(--brand-dark);
}

.timeline-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: #A0A09C;
    font-size: 1rem;
    line-height: 1.5;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.expertise-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.expertise-desc {
    font-size: 0.95rem;
    color: var(--brand-text-secondary);
    line-height: 1.5;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.manifesto-card {
    background: #FFFFFF;
    border: 2.5px solid var(--brand-dark);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 4px 4px 0px var(--brand-dark);
    transition: all 0.25s ease;
}

.manifesto-card:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px var(--brand-dark);
}

.manifesto-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.manifesto-hover-text {
    font-size: 0.95rem;
    color: var(--brand-text-secondary);
    line-height: 1.5;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.academic-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #FFFFFF;
    border: 2.5px solid #D8D8D1;
    border-left: 6px solid var(--brand-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.05);
}

.academic-year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--brand-dark);
    background: var(--brand-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.academic-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

.academic-institution {
    font-size: 0.9rem;
    color: var(--brand-text-secondary);
    line-height: 1.4;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.languages-container {
    max-width: 700px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.language-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.language-name {
    font-size: 1.1rem;
    color: var(--brand-dark);
}

.language-level {
    font-size: 0.95rem;
    color: var(--brand-text-secondary);
}

.language-bar-bg {
    width: 100%;
    height: 14px;
    background: #D8D8D1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--brand-dark);
}

.language-bar-fill {
    height: 100%;
    background: var(--brand-primary);
}

.mosaic-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mosaic-chip {
    background: #FFFFFF;
    border: 2px solid var(--brand-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px var(--brand-dark);
}

.colab-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.manifesto-cta-section {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    text-align: center;
    border: 3px solid var(--brand-dark);
    box-shadow: 6px 6px 0px var(--brand-dark);
}

.manifesto-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-cta-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.manifesto-cta-sub {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

.manifesto-cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-dark-cta {
    background-color: var(--brand-dark);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    border: 2.5px solid var(--brand-dark);
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    box-shadow: 4px 4px 0px #FFFFFF;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-dark-cta:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px #FFFFFF;
}

.brush-tag {
    display: inline-block;
    background-color: var(--brand-dark);
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-1deg);
    box-shadow: 2px 2px 0px var(--brand-primary);
    margin-bottom: 1.25rem;
}

.sobre-mi-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    line-height: 1.05;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

body.dark-theme .sobre-mi-title {
    color: var(--brand-text);
}

.sobre-mi-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-text-secondary);
    margin-bottom: 1.5rem;
}

.sobre-mi-quote {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand-dark);
    border-left: 5px solid var(--brand-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

body.dark-theme .sobre-mi-quote {
    color: var(--brand-text);
}

.sobre-mi-avatar-box {
    position: relative;
    background-color: var(--brand-primary);
    border: 3.5px solid var(--brand-dark);
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--brand-dark);
    overflow: hidden;
    padding: 0;
    line-height: 0;
}

.sobre-mi-avatar-img,
.sobre-mi-portrait {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.sobre-mi-avatar-box:hover .sobre-mi-avatar-img,
.sobre-mi-avatar-box:hover .sobre-mi-portrait {
    transform: scale(1.04);
}

/* Metrics Band */
.metrics-band {
    background-color: var(--brand-dark);
    color: #FFFFFF;
    padding: 3rem 2rem;
    border-top: 4px solid var(--brand-primary);
    border-bottom: 4px solid var(--brand-primary);
}

.metrics-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 2.5rem;
}

.metric-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-3px);
}

.metric-icon {
    font-size: 2.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.metric-item:hover .metric-icon {
    transform: scale(1.2) rotate(6deg);
}

.metric-num,
.metric-number {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
    flex-shrink: 0;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--brand-surface-alt);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    max-width: 160px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .metrics-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}

/* Expertise Cards */
.expertise-card {
    position: relative;
    background: var(--brand-surface);
    border: 2.5px solid var(--brand-dark);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 4px 4px 0px var(--brand-dark);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.expertise-card-num {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    pointer-events: none;
}

body.dark-theme .expertise-card-num {
    color: rgba(255, 255, 255, 0.08);
}

.expertise-card:hover {
    background-color: var(--brand-dark);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px var(--brand-primary);
}

.expertise-card:hover h3, 
.expertise-card:hover p {
    color: #FFFFFF !important;
}

.expertise-card:hover .expertise-card-num {
    color: rgba(201, 198, 3, 0.2);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.8rem;
    bottom: -2rem;
    width: 2px;
    background: var(--brand-gray-dark);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: 3px solid var(--brand-dark);
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--brand-dark);
    color: var(--brand-surface);
    border: 2px solid var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 2px 2px 0px var(--brand-dark);
    transition: all 0.2s ease;
    cursor: default;
}

.tool-chip:hover {
    background: var(--brand-primary);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px var(--brand-dark);
}

.colab-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: var(--brand-dark);
    color: var(--brand-surface-alt);
    border: 2px solid var(--brand-dark);
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0px var(--brand-dark);
    transition: all 0.2s ease;
    cursor: default;
}

.colab-chip:hover {
    background: var(--brand-primary);
    color: var(--brand-dark);
    transform: scale(1.05);
    box-shadow: 4px 4px 0px var(--brand-dark);
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 200;
    }

    .sidebar.open {
        transform: translateX(260px);
        box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    }

    .sidebar-toggle-btn {
        display: flex;
    }

    .home-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .landing-nav-links {
        display: none;
    }
}
