/* === AKUTANGULO DEV & DESIGN SUITE === */
@font-face {
    font-family: "bauhouse_akutangulo";
    src: url("../../assets/fonts/bauhouse_akutangulo.woff2") format("woff2");
    font-display: swap;
}

@property --aku-color-neon {
    syntax: "<color>";
    inherits: false;
    initial-value: deeppink;
}

@keyframes aku-ciclo-neon {
    0%, to {
        --aku-color-neon: deeppink;
    }
    25% {
        --aku-color-neon: lime;
    }
    50% {
        --aku-color-neon: magenta;
    }
    75% {
        --aku-color-neon: mediumslateblue;
    }
}

@keyframes aku-logo-balanceo {
    0%, to {
        transform: rotate3d(1, 1, 0, 40deg);
    }
    25% {
        transform: rotate3d(-1, 1, 0, 40deg);
    }
    50% {
        transform: rotate3d(-1, -1, 0, 40deg);
    }
    75% {
        transform: rotate3d(1, -1, 0, 40deg);
    }
}

/* Paleta Dual: Modo Oscuro Abisal vs Modo Launch Eléctrico (#585afa) */
:root {
    color-scheme: dark;

    /* Marca Akutangulo */
    --aku-morado: #9300d3;
    --aku-morado-claro: #b54ade;
    --aku-morado-oscuro: #6a00a0;
    --aku-cian: #00c2ff;

    /* Primarios & Malvas (Dark Mode por defecto) */
    --aku-bg-deep: #0e0a19;
    --aku-bg-surface: #171226;
    --aku-bg-surface-elevated: #211a36;
    --aku-bg-surface-hover: #2b2246;

    /* Bordes y Líneas */
    --aku-border-subtle: rgba(184, 155, 235, 0.15);
    --aku-border-strong: rgba(184, 155, 235, 0.35);

    /* Textos accesibles (WCAG 2.1 AA contraste sobre superficies oscuras) */
    --aku-text-primary: #f8f6fe;
    /* Ratio > 13:1 */
    --aku-text-secondary: #c7bfe3;
    /* Ratio > 7:1 */
    --aku-text-muted: #958cb5;
    /* Ratio > 4.5:1 */

    /* Acento de alta visibilidad: Esmeralda Eléctrico / Menta */
    --aku-accent: #10e8aa;
    /* Ratio > 10:1 sobre fondos oscuros */
    --aku-accent-hover: #34f5be;
    --aku-accent-subtle: rgba(16, 232, 170, 0.12);
    --aku-accent-glow: rgba(16, 232, 170, 0.35);

    /* Malvas y violetas secundarios */
    --aku-purple-glow: rgba(168, 85, 247, 0.25);
    --aku-purple-light: #c084fc;
    --aku-purple-vivid: #a855f7;
    --aku-danger: #ff5b79;
    --aku-warning: #facc15;
    --aku-info: #38bdf8;

    /* Sombras & Transiciones */
    --aku-shadow-sm: 0 4px 12px rgba(5, 3, 10, 0.4);
    --aku-shadow-lg: 0 12px 32px rgba(5, 3, 10, 0.6);
    --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Paletas dinámicas */
    --surface: #171226;
    --md-ref-monocromatica: #9300D3;
    --md-ref-analoga: #4daef5;
    --md-ref-complementaria: #f6e32c;
    --md-ref-triadica: #00ffff;
    --md-ref-tetradica: #de1c0a;
    --md-ref-compuesta: #3a86ff;
}

/* ==========================================================================
   TEMA CLARO / LAUNCH ELÉCTRICO (IDENTIDAD ORIGINAL DE WEB-LAUNCH-CHECKLIST)
   ========================================================================== */
html[data-theme="launch"] {
    color-scheme: light dark;

    /* Fondo azul eléctrico icónico */
    --aku-bg-deep: #585afa;
    --aku-bg-surface: #4345e6;
    --aku-bg-surface-elevated: #211076;
    --aku-bg-surface-hover: #3617a8;

    /* Bordes con contraste índigo/morado profundo */
    --aku-border-subtle: rgba(33, 16, 118, 0.35);
    --aku-border-strong: rgba(33, 16, 118, 0.7);

    /* Textos nítidos de alto contraste */
    --aku-text-primary: #ffffff;
    --aku-text-secondary: #e2e1fc;
    --aku-text-muted: #b5adde;

    /* Acentos verde menta y lila icónicos */
    --aku-accent: #57d490;
    --aku-accent-hover: #57eaa6;
    --aku-accent-subtle: rgba(87, 212, 144, 0.2);
    --aku-accent-glow: rgba(87, 212, 144, 0.4);

    --aku-purple-vivid: #bf6bfe;
    --aku-purple-light: #d896ff;
    --aku-purple-glow: rgba(191, 107, 254, 0.35);

    --aku-shadow-sm: 0 6px 16px rgba(22, 10, 80, 0.35);
    --aku-shadow-lg: 0 16px 36px rgba(22, 10, 80, 0.45);
    --surface: #4345e6;
}

/* Reset y Accesibilidad Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Century Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--aku-bg-deep);
    color: var(--aku-text-primary);
    min-height: 100vh;
    display: block;
    line-height: 1.5;
}

/* Estilos Neón Akutangulo para Títulos */
h1, h2, h3 {
    font-family: "Century Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1, h2 {
    color: var(--aku-morado-claro);
}

h1 {
    font-size: 3rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 20px var(--aku-color-neon), 0 0 30px var(--aku-color-neon);
    animation: aku-ciclo-neon 4s ease-in-out infinite;
}

h2, h3 {
    -webkit-text-stroke: 1px var(--aku-color-neon);
    text-shadow: 0 0 10px var(--aku-color-neon);
    animation: aku-ciclo-neon 5s ease-in-out infinite;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    color: transparent;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    h1, h2, h3 {
        animation: none;
        text-shadow: 0 0 16px magenta;
    }
}

/* Skip link para accesibilidad por teclado (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: var(--aku-accent);
    color: #061f16;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    z-index: 1000;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid #ffffff;
}

/* Foco visible estricto (WCAG 2.4.7) */
:focus-visible {
    outline: 2px solid var(--aku-accent);
    outline-offset: 3px;
}

/* LAYOUT PRINCIPAL */
.app-container {
    width: 100%;
}

/* SIDEBAR ACCESIBLE */
.sidebar {
    background: var(--aku-bg-surface);
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.sidebar-brand {
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--aku-border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
    opacity: 0.95;
    filter: drop-shadow(0 0 16px rgba(181, 74, 222, 0.45));
}

.sidebar-brand:focus-visible {
    outline: 2px solid var(--aku-morado-claro);
    outline-offset: 4px;
    border-radius: 8px;
}

.sidebar-aku-container {
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    overflow: hidden;
}

.sidebar-aku-logo {
    position: absolute;
    inset: 0;
    margin: 0;
    transform-style: preserve-3d;
    animation: aku-logo-balanceo 5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-aku-capa {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    font-family: "bauhouse_akutangulo", sans-serif;
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--aku-morado);
    text-shadow: 0 0 18px var(--aku-color-neon);
    animation: aku-ciclo-neon 10s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
}

.sidebar-aku-logo span:nth-child(1) { transform: translateZ(0); }
.sidebar-aku-logo span:nth-child(2) { transform: translateZ(2px); }
.sidebar-aku-logo span:nth-child(3) { transform: translateZ(4px); }
.sidebar-aku-logo span:nth-child(4) { transform: translateZ(6px); }
.sidebar-aku-logo span:nth-child(5) { transform: translateZ(8px); }
.sidebar-aku-logo span:nth-child(6) { transform: translateZ(10px); }
.sidebar-aku-logo span:nth-child(7) { transform: translateZ(12px); }
.sidebar-aku-logo span:nth-child(8) { transform: translateZ(14px); }

@media (prefers-reduced-motion: reduce) {
    .sidebar-aku-logo {
        animation: none;
        transform: rotate3d(1, 1, 0, 18deg);
    }
    .sidebar-aku-capa {
        animation: none;
        text-shadow: 0 0 16px magenta;
    }
}



.brand-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: var(--aku-accent-subtle);
    color: var(--aku-accent);
    border: 1px solid rgba(16, 232, 170, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: auto;
}

/* Enlaces rápidos de retorno / migas en sidebar */
.sidebar-nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.85rem;
    margin: 0.75rem 0.75rem 0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aku-text-secondary);
    text-decoration: none;
    border: 1px solid var(--aku-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
}

.sidebar-nav-back:hover {
    color: var(--aku-accent);
    background: var(--aku-bg-surface-elevated);
    border-color: rgba(16, 232, 170, 0.25);
    transform: translateX(-2px);
}

.sidebar-nav-back span {
    font-size: 0.95rem;
}

/* Navegación */
.nav-items-container {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.25rem;
    gap: 6px;
}

.nav-item {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--aku-text-secondary);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--aku-bg-surface-elevated);
    color: var(--aku-text-primary);
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2) 0%, rgba(16, 232, 170, 0.12) 100%);
    color: var(--aku-text-primary);
    border-left: 3px solid var(--aku-accent);
    box-shadow: inset 0 0 16px rgba(168, 85, 247, 0.15);
}

.nav-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Footer / Métricas Rápidas */
.sidebar-footer {
    padding: 0.85rem 1rem;
    margin: 0.5rem 0 0;
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 8px;
    font-size: 0.8rem;
}

.sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--aku-text-secondary);
}

.sidebar-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--aku-purple-vivid), var(--aku-accent));
    width: 0%;
    transition: width 0.3s ease;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    flex: 1;
    min-width: 0;
}

.view-section {
    display: none;
    animation: fadeIn var(--transition-smooth);
    max-width: 1350px;
    margin: 0 auto;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeceras de Sección */
.section-header {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--aku-border-subtle);
}

.section-header-info h1,
.section-header-info h2 {
    letter-spacing: -0.5px;
    margin: 0;
}

.section-header-info .subtitle {
    color: var(--aku-text-secondary);
    font-size: 1rem;
    margin-top: 0.35rem;
}

/* BARRA DE HERRAMIENTAS DE CHECKLIST */
.toolbar-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--aku-shadow-sm);
}

.search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 8px;
    padding: 0.65rem 1rem 0.65rem 2.4rem;
    color: var(--aku-text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--aku-accent);
}

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

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    color: var(--aku-text-secondary);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-filter:hover {
    color: var(--aku-text-primary);
    border-color: var(--aku-border-strong);
}

.btn-filter.active {
    background: var(--aku-accent-subtle);
    border-color: var(--aku-accent);
    color: var(--aku-accent);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    color: var(--aku-text-primary);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-action:hover {
    background: var(--aku-bg-surface-hover);
    border-color: var(--aku-border-strong);
}

.btn-action.btn-accent {
    background: var(--aku-accent);
    border-color: var(--aku-accent);
    color: #081a13;
    font-weight: 700;
}

.btn-action.btn-accent:hover {
    background: var(--aku-accent-hover);
    box-shadow: 0 0 12px var(--aku-accent-glow);
}

/* SUB-PESTAÑAS DE CHECKLIST */
.subtabs-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--aku-border-subtle);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.subtab-btn {
    background: transparent;
    border: none;
    color: var(--aku-text-secondary);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subtab-btn:hover {
    color: var(--aku-text-primary);
    background: var(--aku-bg-surface);
}

.subtab-btn.active {
    color: var(--aku-text-primary);
    background: var(--aku-bg-surface-elevated);
    box-shadow: inset 0 -2px 0 var(--aku-accent);
}

.subtab-badge {
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* CARDS GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.card {
    min-width: 0;
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--aku-shadow-sm);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--aku-border-strong);
    box-shadow: var(--aku-shadow-lg), 0 0 20px rgba(168, 85, 247, 0.1);
}

.card-header {
    gap: 0.75rem;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--aku-border-subtle);
}

.card-title {
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--aku-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-counter {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--aku-accent);
    background: var(--aku-accent-subtle);
    padding: 2px 8px;
    border-radius: 12px;
}

/* CHECKLIST ITEM CON ACCESIBILIDAD */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-fast);
    border: 1px solid transparent;
}

.checklist-item:hover {
    background-color: var(--aku-bg-surface-elevated);
    border-color: rgba(184, 155, 235, 0.1);
}

.checklist-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--aku-border-strong);
    border-radius: 6px;
    background: var(--aku-bg-deep);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    display: grid;
    place-content: center;
    transition: all var(--transition-fast);
}

.checklist-checkbox:checked {
    background: var(--aku-accent);
    border-color: var(--aku-accent);
    box-shadow: 0 0 10px var(--aku-accent-glow);
}

.checklist-checkbox:checked::before {
    content: "";
    width: 6px;
    height: 10px;
    border: solid #091c14;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.checklist-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.checklist-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--aku-text-primary);
    transition: color var(--transition-fast);
}

.checklist-checkbox:checked~.checklist-content .checklist-title {
    color: var(--aku-text-muted);
    text-decoration: line-through;
}

.checklist-desc {
    font-size: 0.82rem;
    color: var(--aku-text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

/* BOTÓN EXPANDIBLE DE INFORMACIÓN TÉCNICA (+) */
.checklist-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.checklist-item-row > .checklist-item {
    flex: 1;
    min-width: 0;
}

.btn-toggle-info {
    background: transparent;
    border: none;
    color: var(--aku-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.btn-toggle-info:hover {
    color: var(--aku-accent);
    background: var(--aku-bg-surface-hover);
}

.btn-toggle-info.open {
    color: var(--aku-purple-vivid);
    transform: rotate(45deg);
}

/* PANEL ACORDEÓN EXPANDIBLE CON ENLACES Y RECURSOS */
.item-info-drawer {
    display: none;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    margin-left: 32px;
    background: var(--aku-bg-deep);
    border-left: 2px solid var(--aku-accent);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: var(--aku-text-secondary);
    line-height: 1.5;
    animation: fadeIn 0.2s ease;
}

.item-info-drawer.open {
    display: block;
}

.item-info-drawer a {
    color: var(--aku-accent);
    text-decoration: underline;
    font-weight: 600;
}

.item-info-drawer a:hover {
    color: var(--aku-accent-hover);
}

.item-info-drawer ul {
    margin-top: 4px;
    padding-left: 18px;
}

/* ==========================================================================
   COLOR SUITE INTEGRADA
   ========================================================================== */
.color-suite-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Verificador de Contraste WCAG */
.contrast-checker {
    width: 100%;
    max-width: 820px;
    background: var(--aku-bg-surface);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--aku-border-subtle);
    box-shadow: var(--aku-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contrast-checker h2,
.contrast-checker .h2-title {
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
    color: var(--aku-text-primary);
}

.contrast-inputs {
    display: flex;
    justify-content: space-around;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contrast-color-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contrast-color-control label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aku-text-secondary);
}

.contrast-color-control input[type="color"] {
    width: 80px;
    height: 42px;
    border: 1px solid var(--aku-border-strong);
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
}

.contrast-color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.contrast-color-control input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 7px;
}

.font-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid var(--aku-border-subtle);
    border-bottom: 1px solid var(--aku-border-subtle);
}

.font-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 150px;
}

.font-control-group label {
    font-size: 0.85rem;
    color: var(--aku-text-secondary);
    text-align: center;
}

.font-control-group select,
.font-size-input {
    background: var(--aku-bg-deep);
    color: var(--aku-text-primary);
    border: 1px solid var(--aku-border-strong);
    border-radius: 6px;
    padding: 0.45rem;
    font-size: 0.85rem;
    width: 100%;
    font-family: inherit;
    text-align: center;
}

.font-style-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    height: 100%;
    font-size: 0.85rem;
    color: var(--aku-text-secondary);
}

.contrast-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

#contrast-preview {
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s, color 0.2s;
    min-height: 90px;
    display: grid;
    place-content: center;
}

.contrast-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.contrast-results li {
    margin-bottom: 0.5rem;
}

.contrast-results .pass {
    color: #10e8aa;
}

.contrast-results .fail {
    color: #ff5b79;
}

/* Cuadrícula de Paletas Armónicas */
.contenedor-paletas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 16px;
    box-shadow: var(--aku-shadow-sm);
    width: 100%;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.color-item:hover {
    transform: translateY(-3px);
    border-color: var(--aku-border-strong);
}

.color-item h3 {
    font-size: 1.25rem;
    margin: 0;
    text-align: center;
    color: var(--aku-text-primary);
}

.color-item p.titulo {
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
    color: var(--aku-text-muted);
}

/* Círculos de color cónicos */
.colores {
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    max-width: 250px;
    border: 5px solid var(--color-seleccionado, transparent);
    transition: border-color 0.2s ease-in-out;
    cursor: crosshair;
    background: conic-gradient(from 0deg, #333, #666);
}

.colores::after {
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: var(--c, #9300D3);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.colores input[type=color] {
    appearance: none;
    border: none;
    padding: 0;
    position: absolute;
    inset: 34%;
    inline-size: unset;
    block-size: unset;
    z-index: 2;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.colores input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.colores input[type=color]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* Contenedor de inputs y formatos */
.color-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    background: var(--aku-bg-deep);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--aku-border-subtle);
}

.color-name {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    color: var(--aku-text-primary);
    background: var(--aku-bg-surface-elevated);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--aku-border-subtle);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    width: 100%;
    margin-bottom: 0.35rem;
}

.format-label {
    font-size: 0.8rem;
    color: var(--aku-text-muted);
    min-width: 42px;
    font-weight: 600;
}

.color-input {
    min-width: 0;
    background: var(--aku-bg-surface);
    color: var(--aku-text-primary);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 6px;
    padding: 0.4rem 2rem 0.4rem 0.5rem;
    font-size: 0.82rem;
    flex: 1;
    text-align: left;
    font-family: monospace;
    outline: none;
}

.color-input:focus {
    border-color: var(--aku-accent);
}

.copy-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 4px;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    color: var(--aku-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon:hover {
    background: var(--aku-accent-subtle);
    color: var(--aku-accent);
    border-color: var(--aku-accent);
}

details summary {
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* TABLA PERIÓDICA HTML5 MODERNA */
.html-table-wrapper {
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
}

.html-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.html-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.html-element {
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.html-element:hover {
    transform: translateY(-2px);
    border-color: var(--aku-accent);
    box-shadow: 0 4px 12px var(--aku-accent-glow);
}

.html-element .elem-tag {
    font-family: monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--aku-text-primary);
}

.html-element .elem-cat {
    font-size: 0.65rem;
    color: var(--aku-text-muted);
    margin-top: 4px;
    text-align: center;
}

.html-element[data-cat="root"] {
    border-top: 3px solid #ff5b79;
}

.html-element[data-cat="meta"] {
    border-top: 3px solid #38bdf8;
}

.html-element[data-cat="section"] {
    border-top: 3px solid #a855f7;
}

.html-element[data-cat="text"] {
    border-top: 3px solid #10e8aa;
}

.html-element[data-cat="form"] {
    border-top: 3px solid #facc15;
}

.html-element[data-cat="media"] {
    border-top: 3px solid #f472b6;
}

.html-element[data-cat="table"] {
    border-top: 3px solid #fb923c;
}

/* MODAL DE DETALLES ACCESIBLE */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 4, 15, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    place-items: center;
    z-index: 100;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: grid;
}

.modal-dialog {
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-border-strong);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--aku-shadow-lg);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--aku-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--aku-text-primary);
}

/* NOTIFICACIÓN TOAST ACCESIBLE (role="status") */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--aku-bg-surface-elevated);
    border: 1px solid var(--aku-accent);
    color: var(--aku-text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px var(--aku-accent-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 999;
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   PANEL DINÁMICO DE PSICOLOGÍA DEL COLOR
   ========================================================================== */
.psychology-analysis-card {
    width: 100%;
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--aku-shadow-sm);
    transition: border-color var(--transition-smooth);
}

.psychology-analysis-card:hover {
    border-color: var(--aku-border-strong);
}

.psychology-analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.psychology-badge {
    background: var(--aku-accent-subtle);
    color: var(--aku-accent);
    border: 1px solid rgba(16, 232, 170, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.pill-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--aku-bg-surface-elevated);
    color: var(--aku-text-secondary);
    border: 1px solid var(--aku-border-subtle);
}

.pill-tag.pos {
    border-color: rgba(16, 232, 170, 0.4);
    color: var(--aku-accent);
}

.pill-tag.neg {
    border-color: rgba(255, 91, 121, 0.4);
    color: var(--aku-danger);
}

/* ==========================================================================
   MASTER SEO & GROWTH GUIDE (ESTILOS VISUALES EN FASES)
   ========================================================================== */
.seo-guide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.seo-phase-card {
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--aku-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.seo-phase-card:hover {
    transform: translateY(-2px);
    border-color: var(--aku-border-strong);
}

.seo-phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.phase-research::before {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.phase-onpage::before {
    background: linear-gradient(90deg, #10e8aa, #22c55e);
}

.phase-offpage::before {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.phase-cro::before {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.seo-phase-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--aku-border-subtle);
}

.seo-phase-step {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.phase-research .seo-phase-step {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.phase-onpage .seo-phase-step {
    background: rgba(16, 232, 170, 0.15);
    color: #10e8aa;
    border: 1px solid rgba(16, 232, 170, 0.3);
}

.phase-offpage .seo-phase-step {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.phase-cro .seo-phase-step {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.seo-phase-header h2 {
    font-size: 1.35rem;
    color: var(--aku-text-primary);
    margin: 0;
}

.seo-phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.seo-subcard {
    background: var(--aku-bg-deep);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.seo-subcard h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.85rem;
    color: var(--aku-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* LISTAS DE INFORMACIÓN ACCESIBLES */
ul.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.info-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 0.65rem;
    color: var(--aku-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

ul.info-list li::before {
    content: '•';
    color: var(--aku-accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

ul.info-list strong {
    color: var(--aku-text-primary);
}

/* ==========================================================================
   INTEGRACIÓN GUÍAS AKUTANGULO (LAYOUT & SIDEBAR HOMOGÉNEO)
   ========================================================================== */
.aku-guia-layout {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    min-height: 100vh;
}

.aku-guia-sidebar {
    width: 280px;
    position: sticky;
    top: 1.5rem;
    background: var(--aku-bg-surface);
    border: 1px solid var(--aku-border-subtle);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    box-shadow: var(--aku-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.aku-guia-sidebar__marca {
    margin-bottom: 0.25rem;
}

.aku-guia-sidebar__marca .sidebar-brand {
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--aku-border-subtle);
}

.aku-guia-sidebar__soporte {
    padding-top: 0.75rem;
    border-top: 1px solid var(--aku-border-subtle);
    font-size: 0.8rem;
    color: var(--aku-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aku-guia-sidebar__soporte a {
    color: var(--aku-accent);
    text-decoration: none;
    font-weight: 600;
}

.aku-guia-sidebar__soporte a:hover {
    text-decoration: underline;
}

.aku-guia-contenido {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0;
    height: auto;
    overflow: visible;
}

/* Barra móvil */
.aku-guia-topbar {
    display: none;
    background: var(--aku-bg-surface);
    border-bottom: 1px solid var(--aku-border-subtle);
    padding: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--aku-shadow-sm);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.aku-topbar-brand {
    text-decoration: none;
}

.aku-topbar-brand-txt {
    font-family: "bauhouse_akutangulo", sans-serif;
    font-size: 1.5rem;
    color: var(--aku-morado-claro);
    text-shadow: 0 0 10px var(--aku-color-neon);
    animation: aku-ciclo-neon 10s ease-in-out infinite;
}

.aku-guia-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--aku-accent-subtle);
    border: 1px solid var(--aku-accent);
    color: var(--aku-text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.aku-guia-topbar__btn:hover,
.aku-guia-topbar__btn:focus-visible {
    background: var(--aku-accent);
    color: #05140d;
}

.aku-guia-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aku-guia-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 900px) {
    .contrast-display {
        grid-template-columns: 1fr;
    }

    .aku-guia-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 90;
        width: 100%;
    }

    .aku-guia-layout {
        display: block;
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        min-height: auto;
    }

    /* Categorías completas, sin desplazamiento lateral en móvil. */
    .subtabs-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .subtab-btn {
        min-width: 0;
        white-space: normal;
        justify-content: space-between;
        text-align: left;
        padding: 0.75rem;
    }

    .subtab-badge {
        flex-shrink: 0;
    }

    .aku-guia-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(85vw, 320px);
        max-height: 100vh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0 1rem 1rem 0;
        border-right: 1px solid var(--aku-morado-claro);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
        z-index: 999;
        transform: translate(-100%);
        transition: transform var(--transition-smooth);
        padding: 1.5rem 1rem;
        overflow-y: auto;
    }

    .aku-guia-sidebar.is-open {
        display: flex;
        transform: translate(0);
    }

    .aku-guia-contenido {
        padding: 1rem 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .subtabs-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .aku-guia-topbar {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .aku-topbar-brand {
        min-width: 0;
    }

    .aku-topbar-brand-txt {
        font-size: clamp(1rem, 5vw, 1.5rem);
        overflow-wrap: anywhere;
    }

    .aku-guia-topbar__btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }

    .aku-guia-layout {
        padding: 0.75rem;
    }

    .grid-container,
    .seo-phase-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .section-header-info,
    .toolbar-container > *,
    .search-input {
        min-width: 0;
        max-width: 100%;
    }

    .card,
    .seo-subcard {
        padding: 1rem;
    }

    .toolbar-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .search-box {
        min-width: 0;
    }

    .filter-buttons,
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
        gap: 0.5rem;
    }

    .btn-filter,
    .btn-action {
        min-width: 0;
        padding: 0.625rem 0.5rem;
        white-space: normal;
        overflow-wrap: anywhere;
        justify-content: center;
    }

    .checklist-item {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .section-header-info h1,
    .section-header-info h2 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .btn-filter,
    .btn-action,
    .subtab-btn,
    .aku-guia-topbar__btn {
        min-height: 44px;
    }

    .search-input,
    .font-control-group select,
    .font-size-input {
        font-size: 1rem;
    }
}
