/* ═══════════════════════════════════════════════════════════════
   MuEclipse — Bootstrap Overrides — Eclipse / Violet Theme
═══════════════════════════════════════════════════════════════ */

/* Tables */
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    border-top: 1px solid rgba(124,58,237,0.1) !important;
    color: #c8c0f0;
    padding: 10px 12px;
}
.table { color: #c8c0f0; }
.table>thead>tr>th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a855f7;
    border-bottom: 1px solid rgba(124,58,237,0.3) !important;
    background: rgba(124,58,237,0.06);
}

a:focus, a:hover { color: inherit !important; text-decoration: none !important; }

/* Form controls */
.form-control {
    background: rgba(9,7,26,0.9);
    border: 1px solid rgba(124,58,237,0.2);
    color: #f0ecff;
    border-radius: 4px;
    box-shadow: none;
    font-family: 'DM Sans', sans-serif;
}
.form-control:focus {
    border: 1px solid rgba(124,58,237,0.55);
    box-shadow: 0 0 8px rgba(124,58,237,0.18);
    background: rgba(9,7,26,0.9);
    color: #f0ecff;
}
.form-control::placeholder { color: #6b6880; }

/* Utilities */
.nopadding { padding: 0 !important; margin: 0 !important; }
.vcenter { display: inline-block; vertical-align: middle; float: none; }

/* Thumbnails */
.thumbnail {
    background-color: rgba(9,7,26,0.9);
    border: 1px solid rgba(124,58,237,0.15);
    transition: all 0.3s ease;
    border-radius: 4px;
}
a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active {
    border-color: #7c3aed;
    box-shadow: 0 0 30px rgba(124,58,237,0.25);
}

/* Buttons */
.btn-primary {
    color: #fff;
    background: #7c3aed;
    border: none;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
    color: #fff !important;
    background: #a855f7 !important;
    border: none;
    box-shadow: 0 0 15px rgba(124,58,237,0.4);
}
.btn-xs {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 3px 10px;
}

/* Modal override */
.modal-content {
    -webkit-box-shadow: 0 0 40px rgba(124,58,237,0.25) !important;
    box-shadow: 0 0 40px rgba(124,58,237,0.25) !important;
    background-color: #09071a !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    border-radius: 8px !important;
}

/* Tables - bordered */
.table-bordered {
    border: 1px solid rgba(124,58,237,0.15) !important;
    background: rgba(9,7,26,0.6);
}
.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(124,58,237,0.04) !important;
}
.table-hover>tbody>tr:hover {
    background-color: rgba(124,58,237,0.08) !important;
}
.table-bordered>tbody>tr>td,
.table-bordered>tbody>tr>th,
.table-bordered>tfoot>tr>td,
.table-bordered>tfoot>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th {
    border: 1px solid rgba(124,58,237,0.1) !important;
}

/* Pagination */
.pagination>li>a,
.pagination>li>span {
    background: rgba(9,7,26,0.9);
    border: 1px solid rgba(124,58,237,0.22);
    color: #a855f7;
    border-radius: 0 !important;
    font-family: 'Outfit', sans-serif;
}
.pagination>.active>a,
.pagination>.active>span {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.pagination>li>a:hover { background: rgba(124,58,237,0.12); color: #a855f7; }

/* Alerts */
.alert { border-radius: 4px; border: 1px solid rgba(124,58,237,0.3); }
.alert-info { background: rgba(79,70,229,0.12); color: #c8c0f0; border-color: rgba(124,58,237,0.3); }
.alert-success { background: rgba(0,100,50,0.2); color: #a0ffb0; border-color: rgba(0,200,80,0.25); }
.alert-danger { background: rgba(120,20,20,0.2); color: #ffaaaa; border-color: rgba(255,60,60,0.25); }
.alert-warning { background: rgba(100,80,0,0.2); color: #ffe080; border-color: rgba(200,160,0,0.25); }

/* Well */
.well {
    background: rgba(9,7,26,0.8);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 6px;
    box-shadow: none;
    color: #c8c0f0;
}

/* Labels/badges */
.label-primary { background: #7c3aed; }
.label-info    { background: #4f46e5; }
.badge         { background: #7c3aed; color: #fff; }

/* Nav pills (used in rankings) */
.nav-pills>li>a {
    border-radius: 3px;
    color: #a855f7;
    background: rgba(9,7,26,0.9);
    border: 1px solid rgba(124,58,237,0.22);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-pills>li.active>a,
.nav-pills>li.active>a:focus,
.nav-pills>li.active>a:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.nav-pills>li>a:hover {
    background: rgba(124,58,237,0.12);
    color: #e879f9;
    border-color: rgba(124,58,237,0.4);
}

/* Panel overrides */
.panel { background: rgba(9,7,26,0.9); border-color: rgba(124,58,237,0.15); color: #c8c0f0; }
.panel-default>.panel-heading { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); color: #f0ecff; }
.panel-body { color: #c8c0f0; }
.panel-title { color: #f0ecff; font-family: 'Outfit', sans-serif; font-weight: 600; letter-spacing: 1px; }

/* Progress bars */
.progress { background: rgba(124,58,237,0.1); border-radius: 4px; box-shadow: none; }
.progress-bar { background: linear-gradient(90deg,#7c3aed,#a855f7); }

/* ══ FORCE VIOLET THEME — always wins ══════════════════════════ */
body { background-color: #05040e !important; color: #f0ecff !important; }
.top-panel { background: rgba(5,4,14,0.85) !important; border-bottom-color: rgba(124,58,237,0.12) !important; }
.top-panel.solid { background: rgba(5,4,14,0.97) !important; }
.btn-logout { color: #6b6880 !important; background: transparent !important; border-color: rgba(255,255,255,0.07) !important; }
.btn-logout:hover { color: #f0ecff !important; }
.button { color: #a855f7 !important; border-color: rgba(168,85,247,0.45) !important; }
.buttonDark { background: linear-gradient(135deg,#7c3aed,#4f46e5) !important; color: #fff !important; }

/* Logo size hard caps */
.nav-brand-wrap img { height: 34px !important; width: auto !important; max-width: none !important; }
.ec-logo-moon { width: 72px !important; max-width: 72px !important; height: auto !important; }
.fb img { height: 42px !important; width: auto !important; max-width: none !important; }

/* ═══════════════════════════════════════════════════════════════
   GUÍAS — usa las variables de tema definidas en style.css
   (--violet/--vio2/--bg2/--card/--glass/--bdr/--muted/--txt),
   por lo que combina automáticamente con la paleta de cada servidor.
═══════════════════════════════════════════════════════════════ */

.guides-intro {
    color: var(--muted2, #9d99b5);
    max-width: 760px;
    margin-bottom: 28px;
}

/* Grid de tarjetas (listado) */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--glass, rgba(255,255,255,0.025));
    border: 1px solid var(--bdr, rgba(124,58,237,0.18));
    border-radius: 14px;
    padding: 20px;
    text-decoration: none !important;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.guide-card:hover {
    border-color: var(--bdr2, rgba(168,85,247,0.45));
    background: rgba(255,255,255,0.045);
    transform: translateY(-2px);
}
.guide-card-icon {
    font-size: 1.8rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
}
.guide-card-body { flex: 1; min-width: 0; }
.guide-card-cat {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vio2, #a855f7);
    margin-bottom: 6px;
}
.guide-card-body h3 {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: #fff !important;
}
.guide-card-body p {
    font-size: 0.85rem;
    color: var(--muted2, #9d99b5);
    margin: 0;
    line-height: 1.5;
}
.guide-card-arrow {
    color: var(--muted, #6b6880);
    font-size: 1.1rem;
    flex: none;
    transition: transform 0.2s, color 0.2s;
}
.guide-card:hover .guide-card-arrow { color: var(--vio2, #a855f7); transform: translateX(3px); }

/* Estado vacío ("Próximamente") */
.guides-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--bdr, rgba(124,58,237,0.25));
    border-radius: 14px;
    background: var(--glass, rgba(255,255,255,0.02));
}
.guides-empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.guides-empty h3 { color: #fff !important; margin-bottom: 8px; }
.guides-empty p { color: var(--muted2, #9d99b5); margin: 0; }

.guide-notfound {
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.3);
    color: #ffb4b4;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Detalle de guía */
.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted2, #9d99b5) !important;
    margin-bottom: 20px;
}
.guide-back:hover { color: var(--vio2, #a855f7) !important; }

.guide-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--glass, rgba(255,255,255,0.025));
    border: 1px solid var(--bdr, rgba(124,58,237,0.18));
    border-radius: 16px;
    margin-bottom: 24px;
}
.guide-hero-icon {
    font-size: 2.6rem;
    width: 76px;
    height: 76px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}
.guide-hero h1 {
    font-size: 1.5rem;
    margin: 4px 0 6px 0;
}
.guide-hero p {
    color: var(--muted2, #9d99b5);
    margin: 0;
    font-size: 0.92rem;
}

.guide-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.guide-section {
    background: var(--glass, rgba(255,255,255,0.025));
    border: 1px solid var(--bdr, rgba(124,58,237,0.18));
    border-radius: 14px;
    padding: 22px 24px;
}
.guide-section h2 {
    font-size: 1.05rem;
    margin: 0 0 14px 0;
}
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.guide-table tr:last-child { border-bottom: none; }
.guide-table td { padding: 9px 0; font-size: 0.9rem; color: var(--txt, #f0ecff); vertical-align: top; }
.guide-table-label {
    width: 190px;
    color: var(--muted2, #9d99b5);
    font-weight: 600;
    padding-right: 16px;
}
.guide-drop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.guide-drop-list li {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bdr, rgba(124,58,237,0.15));
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--txt, #f0ecff);
}

.guide-steps { list-style: none; counter-reset: guide-step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-steps li {
    counter-increment: guide-step;
    position: relative;
    padding: 10px 14px 10px 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bdr, rgba(124,58,237,0.15));
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--txt, #f0ecff);
}
.guide-steps li::before {
    content: counter(guide-step);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--violet, #7c3aed);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-callout {
    background: rgba(168,85,247,0.08);
    border: 1px solid var(--bdr2, rgba(168,85,247,0.3));
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--txt, #f0ecff);
    line-height: 1.5;
}
.guide-callout::before { content: "💡 "; }

.guide-text {
    font-size: 0.9rem;
    color: var(--txt, #f0ecff);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .guide-hero { flex-direction: column; text-align: center; }
    .guide-table-label { width: 130px; }
}

/* ═══════════════════════════════════════════════════════════════
   GUÍAS — imágenes, portada, filtro y visor (administrables)
═══════════════════════════════════════════════════════════════ */

/* Botón de admin */
.guide-admin-edit {
    display: inline-block;
    margin: 0 0 18px 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px dashed var(--bdr2, rgba(168,85,247,0.45));
    color: var(--vio2, #a855f7) !important;
    text-decoration: none !important;
}
.guide-detail .guide-admin-edit { margin-left: 12px; }
.guide-admin-edit:hover { background: rgba(168,85,247,0.08); }

/* Filtro por categoría */
.guides-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.guides-filter button {
    background: var(--glass, rgba(255,255,255,0.025));
    border: 1px solid var(--bdr, rgba(124,58,237,0.18));
    color: var(--muted2, #9d99b5);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.guides-filter button:hover { color: #fff; border-color: var(--bdr2, rgba(168,85,247,0.45)); }
.guides-filter button.active { background: var(--violet, #7c3aed); border-color: var(--violet, #7c3aed); color: #fff; }

/* Tarjeta con portada */
.guide-card.has-cover { flex-wrap: wrap; padding-top: 0; overflow: hidden; }
.guide-card-cover {
    flex: 0 0 calc(100% + 40px);
    margin: 0 -20px 4px -20px;
    height: 130px;
    background: #111 center / cover no-repeat;
    border-bottom: 1px solid var(--bdr, rgba(124,58,237,0.18));
}

/* Portada en el detalle */
.guide-cover {
    height: 240px;
    border-radius: 16px 16px 0 0;
    background: #111 center / cover no-repeat;
    border: 1px solid var(--bdr, rgba(124,58,237,0.18));
    border-bottom: none;
}
.guide-hero.guide-hero-with-cover { border-radius: 0 0 16px 16px; }

/* Imágenes dentro de secciones */
.guide-figure { margin: 16px 0 0 0; }
.guide-figure a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--bdr, rgba(124,58,237,0.18)); cursor: zoom-in; }
.guide-figure img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: rgba(0,0,0,0.35); transition: transform 0.25s; }
.guide-figure a:hover img { transform: scale(1.015); }
.guide-figure figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted2, #9d99b5); text-align: center; }
.guide-section-image .guide-figure { margin-top: 0; }

/* Galería */
.guide-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.guide-gallery .guide-figure { margin: 0; }
.guide-gallery .guide-figure img { height: 150px; object-fit: cover; }

/* Visor (lightbox) */
.guide-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(5,3,12,0.92);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px;
}
.guide-lightbox.open { display: flex; }
.guide-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.guide-lightbox-cap { color: #ddd; margin-top: 12px; font-size: 0.9rem; text-align: center; }
.guide-lightbox-close {
    position: absolute; top: 14px; right: 20px;
    background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}

@media (max-width: 768px) {
    .guide-cover { height: 150px; }
    .guide-gallery { grid-template-columns: repeat(2, 1fr); }
    .guide-gallery .guide-figure img { height: 110px; }
}
