/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
    --primary-color: #8A5FF5; /* Púrpura Vibrante */
    --primary-hover: #7C4EEF;
    --bg-dark-primary: #0D1117;
    --bg-dark-secondary: #161B22;
    --card-bg: rgba(22, 27, 34, 0.7);
    --card-border: rgba(139, 148, 158, 0.2);
    --text-color: #E6EDF3;
    --text-muted: #8B949E;
    --font-family: 'Inter', sans-serif;
    --animation-speed: 0.3s;
    --shadow-glow: 0 0 25px rgba(138, 95, 245, 0.3);
    --success-color: #10B981; /* Verde para feedback */
}

/* Base & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-dark-primary);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.95)),
        radial-gradient(ellipse at top left, rgba(138, 95, 245, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(138, 95, 245, 0.15), transparent 50%);
}

/* --- NUEVA ANIMACIÓN DE FADE-IN --- */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px); /* Sutil movimiento hacia arriba */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.main-header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }

/* ESTILOS DEL LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 40px; /* Ajusta la altura del logo como necesites */
    width: auto;
}

.nav-menu { list-style: none; display: flex; gap: 40px; }
.nav-menu a { color: var(--text-muted); font-weight: 500; text-decoration: none; transition: color var(--animation-speed); }
.nav-menu a:hover { color: var(--text-color); }

.nav-actions { display: flex; align-items: center; gap: 20px; }


/* --- ESTILOS PARA EL MENÚ DE PERFIL PÚBLICO --- */
.profile-menu { position: relative; }
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.profile-toggle:hover { background-color: var(--card-border); }
.profile-toggle img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--card-border); }
.profile-toggle .profile-name { font-weight: 500; }

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 101;
    overflow: hidden;
}
.profile-dropdown.show { display: block; }
.dropdown-header { padding: 15px; border-bottom: 1px solid var(--card-border); }
.dropdown-header p { margin: 0; color: var(--text-muted); font-size: 12px; }
.dropdown-header strong { font-size: 14px; }
.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
}
.dropdown-links a:hover { background-color: var(--primary-color); color: white; }
.dropdown-links a i { width: 16px; height: 16px; }

.menu-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; }


/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
}
.hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-color); }
.hero p.subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; color: var(--text-muted); }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.button {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    border: 2px solid transparent;
}
.button-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}
.button-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(138, 95, 245, 0.5);
}
.button-secondary {
    background-color: transparent;
    border-color: var(--card-border);
    color: var(--text-color);
}
.button-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--text-muted);
}

/* ESTRUCTURA DE CONTENIDO (Estilo LuckPerms) */
.showcase-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: start;
}

.showcase-nav {
    position: sticky;
    top: 100px; /* Altura del header + un poco de espacio */
}
.showcase-nav ul {
    list-style: none;
    border-left: 2px solid var(--card-border);
}
.showcase-nav li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all var(--animation-speed);
}
.showcase-nav li a:hover {
    color: var(--text-color);
    background-color: var(--bg-dark-secondary);
}
.showcase-nav li a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: rgba(138, 95, 245, 0.1);
}

.feature-section-content {
    margin-bottom: 80px;
}
.feature-section-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.feature-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}
.feature-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.feature-icon { color: var(--primary-color); }
.feature-card h3 { font-size: 1.4rem; color: var(--text-color); }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); }

/* CTA & Footer */
.cta-section { 
    text-align: center;
}
.cta-section h2 { 
    border: none; 
    font-size: clamp(2rem, 4vw, 2.8rem); 
    margin-bottom: 1rem;
}
.cta-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.main-footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--card-border); margin-top: 80px; }
.main-footer p { color: var(--text-muted); font-size: 0.9rem; }

/* --- ESTILOS PARA LA TIENDA --- */
.store-hero {
    padding: 80px 0;
    text-align: center;
}

/* NUEVO: Estilo para la nota de promoción de fundador */
.founder-promo-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(245, 158, 11, 0.1); /* Fondo naranja/dorado suave */
    border: 1px solid #F59E0B; /* Borde naranja/dorado */
    border-radius: 8px;
    color: #F59E0B; /* Texto naranja/dorado */
    font-weight: 500;
    margin-top: 20px;
}
.founder-promo-note i {
    width: 18px;
    height: 18px;
}
/* Fin de estilo de promoción */

.pricing-section {
    padding-bottom: 100px;
}
/* MODIFICADO: Grid de 3 columnas */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}
/* MODIFICADO: Grid de 3 columnas para el plan custom */
.pricing-grid-custom {
    display: grid;
    /* 3 columnas en escritorio, 1 en tablet/móvil */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Asegura que todas las tarjetas tengan la misma altura */
}
@media (max-width: 1200px) {
    /* MODIFICADO: Pasar a 1 columna antes */
    .pricing-grid-custom {
        grid-template-columns: 1fr;
        max-width: 500px; /* Centrar la única columna */
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .pricing-grid-custom {
        grid-template-columns: 1fr;
        max-width: 100%; /* Ocupar todo el ancho en móvil */
    }
}


.pricing-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform var(--animation-speed), box-shadow var(--animation-speed);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}
.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}
.popular-badge {
    position: absolute;
    top: 20px;
    right: -45px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 0.9em;
    font-weight: 600;
}

/* --- NUEVO: Estilos para el header de la tarjeta de precio --- */
.pricing-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px; /* El margen que antes tenía el h3 */
}
.pricing-header i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Ajuste para el h3 dentro del header */
.pricing-header h3 {
    margin-bottom: 0;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.pricing-card .card-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 40px;
}
.features-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.features-list li i {
    color: var(--primary-color);
}
.pricing-card .button {
    width: 100%;
    text-align: center;
    margin-top: auto; /* Empuja el botón al final */
}

/* --- NUEVO: Estilos para el Plan Personalizado --- */
.custom-plan-options {
    margin-bottom: 30px;
}
.custom-plan-option {
    margin-bottom: 25px;
}
.custom-plan-option label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-muted);
}
.custom-plan-option label strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}
.ip-slider-container {
    padding: 0 5px; /* Pequeño padding para que el thumb no se corte */
}
.ip-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-dark-primary);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    outline: none;
}
.ip-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px; /* Centrar el thumb verticalmente */
}
.ip-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-border);
    transition: .4s;
    border-radius: 26px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}
/* --- Fin de Estilos para Plan Personalizado --- */


/* --- ESTILOS PARA PÁGINAS DE CONTENIDO (WIKI, VERSIONS) --- */
.page-hero {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }

.page-content {
    padding: 80px 0;
}
.content-article {
    max-width: 800px;
    margin: 0 auto;
}
/* AJUSTADO: Eliminamos estilos de h3 y h4 genéricos de content-article */
.content-article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border: none;
    padding: 0;
}

.content-article code, .table-container code, .inline-code {
    background-color: var(--bg-dark-secondary);
    padding: 3px 7px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    color: #c3a9ff;
    border: 1px solid var(--card-border);
    font-size: 0.9em;
}
.content-article pre {
    background-color: var(--bg-dark-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    overflow-x: auto;
    margin: 20px 0;
    position: relative; /* Para el botón de copiar */
    white-space: pre-wrap; /* Asegura el salto de línea */
}
.content-article pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--primary-color);
    white-space: pre-wrap; /* Asegura el salto de línea dentro del código */
}

/* --- ESTILOS MEJORADOS PARA VERSIONES --- */
.version-log {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.version-log:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Añadido para responsividad si los botones son muchos */
}
.version-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
    border: none;
    padding: 0;
    flex-grow: 1; /* Permite que el título crezca */
}
.version-date {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.version-log ul {
    list-style: none;
}
.version-log li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}
.download-button {
    padding: 10px 20px;
    flex-shrink: 0; /* Evita que el botón se encoja */
}

/* NUEVO: Contenedor para botones de versión */
.version-actions {
    display: flex;
    gap: 15px; /* Espacio entre botones */
    flex-shrink: 0; /* Evita que se encojan */
}


.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}
.badge.new { background-color: #3B82F6; } /* Azul */
.badge.improved { background-color: #10B981; } /* Verde */
.badge.fixed { background-color: #F59E0B; } /* Naranja */

/* --- ESTILOS PARA LA WIKI --- */
.wiki-wrapper {
    padding: 60px 0;
}
.wiki-wrapper .container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: flex-start;
}
.wiki-nav {
    position: sticky;
    top: 100px; /* Altura del header + un poco de espacio */
}
.wiki-nav ul {
    list-style: none;
}
.wiki-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 15px;
    border-left: 2px solid var(--card-border);
    transition: all var(--animation-speed);
    font-weight: 500;
    font-size: 0.95rem;
}
.wiki-nav a i {
    width: 18px;
    height: 18px;
}
.wiki-nav a:hover {
    color: var(--text-color);
    background-color: var(--bg-dark-secondary);
}
.wiki-nav a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}
.wiki-nav ul ul {
    margin-left: 15px;
    margin-top: 5px;
}
.wiki-nav ul ul a {
    font-size: 0.9rem;
    padding-top: 6px;
    padding-bottom: 6px;
    /* Estilo de sub-link activo */
}
.wiki-nav ul ul a.active {
    color: var(--text-color); /* Un color menos fuerte que el primario */
    border-left-color: var(--text-muted);
    font-weight: 500;
}
/* Asegurar que el padre también se marque como activo */
.wiki-nav a.active + ul a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* --- APLICAR ANIMACIÓN AL CONTENIDO DE LA WIKI --- */
.wiki-content {
    animation: fadeInContent 0.5s ease-out forwards;
}

.wiki-last-updated {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}
.wiki-section {
    padding-top: 20px;
    margin-bottom: 60px;
}
.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.table-container {
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: var(--bg-dark-secondary);
    margin-top: 25px; /* Añadido para separar de la barra de búsqueda */
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}
th {
    background-color: #11151c; /* Un poco más oscuro */
    font-weight: 600;
}
tbody tr:last-child td {
    border-bottom: none;
}
/* Estilos de lista genéricos dentro del contenido de la wiki */
.wiki-content ol, .wiki-content ul:not(.wiki-feature-list, .config-file-list, .config-property-list) {
    padding-left: 20px;
    color: var(--text-muted);
}
.wiki-content li {
    margin-bottom: 10px;
}
/* Estilo para h3 genérico (ej. "Pasos de Instalación") */
.wiki-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-color); /* Lo hacemos más brillante que "muted" */
}
/* Estilo para h4 genérico (no usado aún, pero bueno tenerlo) */
.wiki-content h4 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-color);
}


/* --- MEJORAS PARA LA WIKI --- */
.info-box {
    background-color: rgba(138, 95, 245, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}
.info-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.info-box ul {
    margin-bottom: 0;
}

/* Estilo para placeholders/variables */
.placeholder-variable {
    color: #ffa657; /* Naranja (mismo que yaml-string) */
    font-weight: 600;
}

.placeholder-entry {
    margin-bottom: 20px;
}
.placeholder-entry p {
    margin: 0;
    line-height: 1.5; /* Asegurar que no esté demasiado apretado */
}
.placeholder-entry p:first-child {
    margin-bottom: 5px; /* Espacio entre el placeholder y su descripción */
}

/* Estilo para la lista de características de la Wiki (Intro) */
.wiki-feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 25px; /* Espacio después del párrafo introductorio */
}
.wiki-feature-list li {
    display: flex;
    align-items: flex-start; /* Alinear el icono con la primera línea de texto */
    gap: 15px; /* Espacio entre el icono y el texto */
    margin-bottom: 15px; /* Espacio entre cada característica */
    font-size: 1.05rem; /* Texto ligeramente más grande para legibilidad */
    color: var(--text-muted); /* Color base para la descripción */
}
.wiki-feature-list i {
    color: var(--primary-color); /* Icono con el color primario */
    width: 22px;
    height: 22px;
    flex-shrink: 0; /* Evita que el icono se encoja */
    margin-top: 3px; /* Ajuste vertical leve */
}
.wiki-feature-list li p {
    margin: 0; /* Resetear margen del párrafo */
    line-height: 1.6;
}
.wiki-feature-list li strong {
    color: var(--text-color); /* Título de la característica más brillante */
    font-weight: 600;
}

/* --- NUEVO: Estilo para la lista de Archivos de Configuración --- */
.config-file-list {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}
.config-file-list > li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px; /* Más espacio entre cada archivo */
}
.config-file-list > li > i {
    color: var(--primary-color);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 5px; /* Alinear con el h4 */
}
.config-file-list > li > div {
    flex: 1;
}
.config-file-list h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}
.config-file-list p {
    margin: 0 0 10px 0; /* Espacio debajo de la descripción */
    color: var(--text-muted);
    line-height: 1.6;
}
/* Lista de propiedades dentro de config.yml */
.config-property-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: var(--text-muted);
}
.config-property-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}


.copy-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--animation-speed);
    margin-left: 10px;
    font-size: 0.8em;
}
.copy-btn:hover {
    background-color: var(--card-bg);
    color: var(--text-color);
}
.copy-btn.copied {
    color: var(--success-color);
    border-color: var(--success-color);
}
.pre-wrapper {
    position: relative;
}
.pre-wrapper .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* --- ESTILOS ADICIONALES PARA LA WIKI (MOVIMOS ESTO AQUÍ) --- */
.wiki-search-bar {
    margin-bottom: 25px;
}
.wiki-search-bar input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}
.wiki-search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- AJUSTE PARA LA NUEVA TABLA DE COMANDOS --- */
.table-container th:nth-child(1) { width: 18%; } /* Comando */
.table-container th:nth-child(2) { width: 25%; } /* Uso */
.table-container th:nth-child(3) { width: 20%; } /* Permiso */
.table-container th:nth-child(4) { width: 37%; } /* Descripción */
/* La 5ta celda (acción) tomará el ancho automático */


.command-action-cell {
    text-align: right;
    white-space: nowrap; /* Evita que el botón se rompa en dos líneas */
}
.command-action-cell .copy-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--animation-speed);
    font-size: 0.8em;
}
.command-action-cell .copy-btn:hover {
    background-color: var(--card-bg);
    color: var(--text-color);
}
.command-action-cell .copy-btn.copied {
    color: var(--success-color);
    border-color: var(--success-color);
}
.warning-box {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #F59E0B;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}
.warning-box h3 {
    margin-top: 0;
    color: #F59E0B;
}

/* --- ESTILOS PARA BLOQUES DE CÓDIGO YAML --- */
pre code.language-yaml .yaml-key {
    color: #79c0ff; /* Azul claro para las claves */
}
pre code.language-yaml .yaml-string {
    color: #ffa657; /* Naranja para los strings */
}
pre code.language-yaml .yaml-comment {
    color: #8b949e; /* Gris para comentarios */
    font-style: italic;
}


/* Responsividad */
@media (max-width: 992px) {
    .showcase-wrapper, .wiki-wrapper .container {
        grid-template-columns: 1fr;
    }
    .showcase-nav, .wiki-nav {
        position: relative;
        top: 0;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }
    .showcase-nav ul, .wiki-nav ul {
        display: flex;
        flex-wrap: wrap;
        border: none;
        justify-content: center;
        gap: 10px;
    }
    .showcase-nav li a, .wiki-nav li a {
        border: 1px solid var(--card-border);
        border-radius: 8px;
        margin: 0;
    }
    .showcase-nav li a.active {
        border-left: 1px solid var(--primary-color);
    }
     .wiki-nav ul ul {
        display: none; /* Ocultar sub-menú en móvil para simplicidad */
    }
    .pricing-card.popular {
        transform: scale(1); /* Desactivar el zoom en móvil para mejor layout */
    }
}
@media (max-width: 768px) { 
    .main-nav, .nav-menu { 
        display: none; 
    } 
    .menu-toggle {
        display: block;
    }
    .profile-toggle .profile-name {
        display: none;
    }

    .main-nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-dark-secondary);
        flex-direction: column;
        padding: 10px;
        border-bottom: 1px solid var(--card-border);
    }
}

