/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Entropía Socialnetwork
   Stack: Tailwind v3 + Custom CSS · Inter font
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
    --accent:       #e43c25;
    --accent-dark:  #c43318;
    --accent-light: rgba(228, 60, 37, 0.08);
    --brand:        #12163b;
    --brand-light:  #1a2246;
    --surface:      #f5f7fa;
    --card:         #ffffff;
    --border:       #e2e8f0;
    --text:         #1e293b;
    --text-2:       #64748b;
    --text-3:       #94a3b8;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md:    0 4px 16px rgba(0,0,0,.07);
    --transition:   all .18s ease;
}

/* ── Reset base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Títulos y marca en Outfit, igual que nuevoEntropiaMVC, Aletheia y la revista */
h1, h2, h3, .font-heading { font-family: 'Outfit', 'Inter', system-ui, sans-serif; letter-spacing: -.01em; }

/* Foco visible y consistente para teclado (las cajas de texto usan su propio anillo) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Salto al contenido (lectores de pantalla y teclado) */
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
    font-weight: 600; font-size: .875rem; transition: top .15s;
}
.skip-link:focus { top: 12px; }

body {
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

a { text-decoration: none; color: var(--accent); transition: var(--transition); }
a:hover { color: var(--accent-dark); }

p { margin: .5rem 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
ol, ul { padding-left: 1.4rem; }
li { margin-left: 0 !important; }

/* Listas dentro de contenido de publicaciones (Quill / rich text) */
.post-content ul,
.post-content ol,
.ql-editor ul,
.ql-editor ol { padding-left: 1.5em; margin: .4em 0; }
.post-content ul li { list-style-type: disc; }
.post-content ol li { list-style-type: decimal; }
.post-content ul ul li { list-style-type: circle; }
.post-content strong, .post-content b { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content p { margin: .3em 0; }
textarea { font-family: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
.main-container {
    max-width: 1380px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: 268px 1fr 300px;
    gap: 20px;
    padding: 0 20px;
}

.main-container1 {
    max-width: 1380px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 20px;
    padding: 0 20px;
}

.main-container2 {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 20px;
}

.main-container3 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding: 32px 20px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow .2s ease;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.card h1 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

/* ── Navbar icons (supplement Tailwind) ──────────────────── */
.nav-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-icon:hover { background: rgba(255,255,255,.12); color: #fff; }

.badge-nav {
    position: absolute;
    top: 0; right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #fff;
    color: var(--accent);
    font-size: .65rem;
    font-weight: 800;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: .875rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover { background: var(--surface); color: var(--accent); }

/* ── Side Navigation ─────────────────────────────────────── */
.side-nav {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav li { margin: 0 !important; }

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: .875rem;
    font-weight: 500;
    transition: var(--transition);
}

.side-nav a:hover,
.side-nav a.active {
    background: var(--accent-light);
    color: var(--accent-dark);   /* #e43c25 sobre su propia tinta daba 3,8:1; #c43318 da 4,9:1 */
}

.side-nav i {
    width: 18px;
    text-align: center;
    font-size: .9rem;
    color: inherit;
    flex-shrink: 0;
}

/* ── Profile Card ────────────────────────────────────────── */
.profile-card { text-align: center; overflow: hidden; }

.user-avatar {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}

.profile-img,
.profile-img1 {
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 3px solid var(--border);
}

.profile-img  { width: 80px;  height: 80px; }
.profile-img1 { width: 120px; height: 120px; margin: 0 auto 16px; }
.profile-img2 { width: 56px;  height: 56px;  border-radius: 50%; display: inline-block; }
.profile-img3 { width: 40px;  height: 40px;  border-radius: 50%; }

.profile-img i,
.profile-img1 i { font-size: 2rem; color: var(--text-3); }

.nombreUsuario { justify-content: center; }

.profile-name,
.profile-name h2 {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--brand) !important;
    margin-bottom: 2px;
}

.profile-title {
    font-size: .8rem;
    color: var(--text-2);
    margin-bottom: 10px;
}

.user-data {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .78rem;
    color: var(--text-2);
    margin: 4px 0;
}

/* Profile page header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: var(--text-2);
    margin-top: 6px;
}

/* Stats */
.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 14px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.stat-item { text-align: center; flex: 1; }

.stat-number {
    display: block;
    font-size: 1.1rem !important;
    font-weight: 800;
    color: var(--brand) !important;
    line-height: 1.2;
}

.stat-label {
    font-size: .7rem !important;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-box {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Profile nav tabs */
.profile-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    gap: 4px;
}

.profile-nav-item {
    padding: 8px 18px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    transition: var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.profile-nav-item.active,
.profile-nav-item:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-tercery {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tercery:hover { background: var(--brand-light); }

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}

.profile-btn:hover { border-color: var(--accent); color: var(--accent); }
.profile-btn i { font-size: .85rem; }

.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Connect buttons */
.connect-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.connect-btn:hover { background: var(--accent-dark); }

.connect-btn-lg {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    margin: 6px auto;
}

.connect-btn-lg:hover { background: var(--accent-dark); color: #fff; }

.connect-btn-lg2 {
    display: block;
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    margin: 6px auto;
}

.connect-btn-lg2:hover { background: var(--brand-light); color: #fff; }

/* Publish / action buttons */
.publish-btn,
a.publish-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.publish-btn:hover,
a.publish-btn:hover { background: var(--accent-dark); }

.new-publication-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.new-publication-btn:hover { background: var(--brand-light); }
.new-publication-btn i { font-size: .85rem; }

/* ── Forms ───────────────────────────────────────────────── */
form {
    width: 100%;
    padding: 0;
    border-radius: 0;
}

form.estudyF { width: 100%; }

.post-input,
.post-input1,
input[type="text"]:not([class*="tailwind"]):not([class*="tw-"]),
input[type="email"]:not([class*="tailwind"]):not([class*="tw-"]),
input[type="password"]:not([class*="tailwind"]):not([class*="tw-"]),
select.post-input,
select.post-input1 {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text);
    background: var(--card);
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
    margin-bottom: 10px;
}

.post-input:focus,
.post-input1:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,30,36,.1); }

select.post-input1 { width: 47% !important; margin: 6px 1%; cursor: pointer; }
input.post-input1  { width: 47% !important; margin: 6px 1%; }

textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    resize: vertical;
    outline: none;
    background: var(--card);
    transition: border-color .15s ease;
    margin-bottom: 10px;
}

textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,30,36,.1); }

/* ── Feed / Post ─────────────────────────────────────────── */
.post-form { margin-bottom: 16px; }

.new_pub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.new_pub img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-attachments { display: flex; gap: 4px; }

.attachment-btn {
    background: none;
    border: none;
    color: var(--text-2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.attachment-btn:hover { color: var(--accent); background: var(--accent-light); }

/* Feed items */
.feed-item {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.feed-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-avatar img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.post-avatar i { font-size: 1.1rem; color: var(--text-3); }

.post-author { font-size: .9rem; font-weight: 700; color: var(--brand); }
.post-meta   { font-size: .75rem; color: var(--text-3); margin-top: 1px; }

.post-content { margin-bottom: 12px; }
.post-content p { text-align: left; color: var(--text); line-height: 1.65; }

.post-footer { display: flex; justify-content: flex-start; gap: 4px; }

.post-actions-buttons { display: flex; gap: 4px; flex-wrap: wrap; }

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-2);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover { background: var(--accent-light); color: var(--accent); }
.action-btn i { font-size: .85rem; }

/* ── Publications ────────────────────────────────────────── */
.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.publication-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-2);
}

.filter-btn:hover,
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.publication-item {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.publication-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.publication-header { display: flex; margin-bottom: 12px; }
.publication { align-items: center; }

.publication-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
    line-height: 1.4;
}

.publication-authors { font-size: .85rem; color: var(--text-2); margin-bottom: 8px; }

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .78rem;
    color: var(--text-2);
    margin-bottom: 10px;
    align-items: center;
}

.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item i { color: var(--accent); font-size: .8rem; }

.publication-abstract { color: var(--text); font-size: .875rem; line-height: 1.65; margin-bottom: 12px; }

.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 !important; }

.keyword {
    background: var(--accent-light);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    margin: 0 !important;
    border: 1px solid rgba(227,30,36,.15);
}

/* ── Events ──────────────────────────────────────────────── */
.event-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.event-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.event-date {
    background: var(--accent);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-day   { font-weight: 800; font-size: 1rem; line-height: 1; }
.event-month { font-size: .6rem; text-transform: uppercase; opacity: .85; }

.event-info { flex: 1; min-width: 0; }
.event-title { font-size: .875rem; font-weight: 700; margin-bottom: 3px; color: var(--brand); }
.event-details { font-size: .78rem; color: var(--text-2); }

/* ── Connections / Contacts ──────────────────────────────── */
.connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.connection-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-info { flex: 1; min-width: 0; }
.connection-name  { font-size: .875rem; font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.connection-title { font-size: .75rem; color: var(--text-2); }

/* ── About / Interests ───────────────────────────────────── */
.profile-about { margin-bottom: 16px; }
.about-title { font-size: .875rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.about-text  { font-size: .875rem; color: var(--text); line-height: 1.65; }

.interests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.interest-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid rgba(227,30,36,.15);
}

/* ── Milestone / Headings ────────────────────────────────── */
p.milestone-title,
h2.milestone-title,
h3.milestone-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

p.milestone-title  { font-size: .9rem; }
h2.milestone-title { font-size: 1.3rem; }
h3.milestone-title { font-size: 1.1rem; }

i.myBtn2, i.myBtn3 {
    font-size: 1.1rem !important;
    color: var(--accent);
    cursor: pointer;
}

.center { text-align: center !important; }

/* ── Messages / Chat ─────────────────────────────────────── */
.mensajes-sidebar {
    border-right: 1px solid var(--border);
    height: 100%;
    overflow-y: auto;
}

.mensaje-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mensaje-item:hover,
.mensaje-item.active { background: var(--accent-light); }

.mensaje-nombre { font-size: .875rem; font-weight: 700; color: var(--brand); }
.mensaje-preview { font-size: .78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #0f1530;
    color: #fff;
    margin-top: 48px;
    padding: 0 0 24px;
}
/* Hero de login directamente encima del footer: sin margen */
.login-hero + .site-footer,
.login-hero ~ .site-footer { margin-top: 0; }

.footer-column-title {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: .875rem;
    color: rgba(255,255,255,.75);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-link:hover { color: #fff; }
@media (max-width: 640px) { .footer-link { padding: 12px 0; } }   /* objetivo táctil ≥ 44 px */

.footer-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    font-size: .85rem;
    transition: var(--transition);
}

.footer-social-icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom-text { color: rgba(255,255,255,.62); }
.footer-qa-box { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }
.footer-qa-text { color: rgba(255,255,255,.4) !important; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.badge-q1 { background: #16a34a; color: #fff; }
.badge-q2 { background: #2563eb; color: #fff; }
.badge-q3 { background: #d97706; color: #fff; }

/* ── Misc utilities ──────────────────────────────────────── */
.btn.acceder {
    background: var(--brand);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .main-container { grid-template-columns: 240px 1fr 280px; }
}

@media (max-width: 992px) {
    .main-container  { grid-template-columns: 220px 1fr; }
    .main-container .right-sidebar { display: none; }
}

@media (max-width: 720px) {
    .main-container,
    .main-container1 { grid-template-columns: 1fr; padding: 0 12px; gap: 12px; }
    .main-container .left-sidebar { display: none; }
    select.post-input1,
    input.post-input1 { width: 100% !important; margin: 6px 0; }
}

/* ==========================================================================
   PREMIUM UX/UI ENHANCEMENTS — Entropía Socialnetwork
   Vibrant colors, micro-animations, glassmorphism, and responsive fixes.
   ========================================================================== */

/* 1. Card lift — solo sombra, SIN transform (transform rompe position:fixed en hijos) */
.card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    border-color: rgba(228, 60, 37, 0.18);
}

/* 2. Interactive elements scale-up on hover */
.profile-img, .profile-img1, .profile-img2, .profile-img3 {
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.profile-img:hover, .profile-img1:hover, .profile-img2:hover, .profile-img3:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* 3. Smooth side-nav slide effect */
.side-nav a {
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.side-nav a:hover {
    padding-left: 18px;
    background: var(--accent-light);
    color: var(--accent);
}
.side-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: transform 0.25s ease;
}
.side-nav a:hover::before,
.side-nav a.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* 4. Glassmorphism Panels */
#avatar-panel, #notif-panel, #search-results {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(227, 30, 36, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* 5. Button Ripple & Hover Effects */
.btn-primary, .publish-btn, .connect-btn-lg, .connect-btn-lg2 {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(227, 30, 36, 0.15);
}
.btn-primary:hover, .publish-btn:hover, .connect-btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}
.btn-primary:active, .publish-btn:active, .connect-btn-lg:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(227, 30, 36, 0.1);
}

.btn-secondary {
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   TARJETAS DE EVENTOS — estilo nuevoEntropiaMVC
   ══════════════════════════════════════════════════════════ */
.ee-event-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all .18s ease;
    margin-bottom: 8px;
}
.ee-event-card:last-child { margin-bottom: 0; }
.ee-event-card:hover {
    border-color: rgba(228,60,37,.25);
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transform: translateY(-1px);
    color: inherit;
}
.ee-event-date {
    min-width: 42px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand) 0%, #1a2246 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 6px;
}
.ee-event-date--soon {
    background: rgba(228,60,37,.1);
    color: var(--accent);
    font-size: .7rem;
    gap: 3px;
}
.ee-event-day   { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1; }
.ee-event-month { font-size: .58rem; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .08em; line-height: 1; margin-top: 2px; }
.ee-event-year  { font-size: .52rem; color: rgba(255,255,255,.45); line-height: 1; }
.ee-event-body  { flex: 1; min-width: 0; }
.ee-event-title {
    font-size: .8rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ee-event-card:hover .ee-event-title { color: var(--accent); }
.ee-event-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: .7rem; color: var(--text-2); margin-bottom: 5px;
}
.ee-event-meta span { display: flex; align-items: center; gap: 3px; }
.ee-event-meta i    { color: var(--accent); font-size: .62rem; }
.ee-event-price {
    display: inline-flex; align-items: center; padding: 2px 8px;
    border-radius: 999px; font-size: .65rem; font-weight: 700;
    background: rgba(228,60,37,.08); color: var(--accent); border: 1px solid rgba(228,60,37,.15);
}
.ee-event-price--free { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.ee-event-empty {
    text-align: center; padding: 20px 16px; color: var(--text-3); font-size: .82rem;
}
.ee-event-empty i { font-size: 1.6rem; display: block; margin-bottom: 8px; opacity: .4; }
.ee-event-empty a { color: var(--accent); font-weight: 600; }

/* ── Separadores de sección ──────────────────────────── */
.ee-section-sep {
    height: 1px; background: var(--border); margin: 10px 0;
}
.ee-section-header {
    font-size: .62rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-3);
    margin: 8px 0 6px; display: flex; align-items: center; gap: 5px;
}
.ee-section-header i { color: var(--accent); font-size: .65rem; }

/* ── Tarjeta CONGRESO ────────────────────────────────── */
.ee-congreso-card {
    display: block; text-decoration: none; color: inherit;
    margin-bottom: 8px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border);
    transition: all .18s ease;
}
.ee-congreso-card:last-child { margin-bottom: 0; }
.ee-congreso-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    transform: translateY(-1px);
    border-color: rgba(228,60,37,.3);
    color: inherit;
}
.ee-congreso-inner {
    background: linear-gradient(135deg, var(--brand) 0%, #1e2a54 100%);
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}
.ee-congreso-inner::before {
    content: '';
    position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.ee-congreso-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(228,60,37,.25); border: 1px solid rgba(228,60,37,.4);
    color: #fca5a5; padding: 2px 8px; border-radius: 999px;
    font-size: .6rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 7px;
}
.ee-congreso-title {
    font-size: .82rem; font-weight: 800; color: #fff; line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ee-congreso-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: .68rem; color: rgba(255,255,255,.55);
}
.ee-congreso-meta span { display: flex; align-items: center; gap: 4px; }
.ee-congreso-meta i    { color: rgba(255,255,255,.4); font-size: .6rem; }

/* ── Widget CONVOCATORIAS ────────────────────────────── */
.ee-cv-card {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 10px; border-radius: 10px;
    border: 1px solid var(--border); background: #fff;
    text-decoration: none; color: inherit; margin-bottom: 6px;
    transition: all .18s ease;
}
.ee-cv-card:last-child { margin-bottom: 0; }
.ee-cv-card:hover {
    border-color: rgba(228,60,37,.25);
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    transform: translateY(-1px); color: inherit;
}
.ee-cv-icon-wrap {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand) 0%, #1e2a54 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85); font-size: .75rem;
}
.ee-cv-body { flex: 1; min-width: 0; }
.ee-cv-title {
    font-size: .78rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ee-cv-card:hover .ee-cv-title { color: var(--accent); }
.ee-cv-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ee-cv-cat {
    font-size: .62rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-3);
}
.ee-cv-deadline {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800;
}
.ee-cv-urgent { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ee-cv-soon   { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.ee-cv-open   { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* 6. Action Buttons (Like / Comment / Share) Animation */
.action-btn {
    transition: all 0.2s ease;
}
.action-btn:hover {
    transform: scale(1.06);
}
.action-btn:active {
    transform: scale(0.95);
}

/* ══════════════════════════════════════════════════════════
   LOGIN HERO — Página de bienvenida / inicio-login
   ══════════════════════════════════════════════════════════ */
.login-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.login-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--brand);
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18,22,59,.96) 0%, rgba(18,22,59,.80) 50%, rgba(228,60,37,.12) 100%);
}

.login-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    width: 100%;
}

/* ── Hero izquierda ──────────────────────────────────────── */
.login-hero-left { color: #fff; }

.login-network-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 28px;
}

.login-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}
.login-hero-title span { color: var(--accent); }

.login-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 40px;
}

.login-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}
.login-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 !important;
}
.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(228,60,37,.18);
    border: 1px solid rgba(228,60,37,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: .85rem;
    flex-shrink: 0;
}
.login-features strong {
    display: block;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px;
}
.login-features span {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}

.login-ecosystem { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }
.login-ecosystem-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    display: block;
    margin-bottom: 10px;
}
.login-ecosystem-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.login-ecosystem-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    transition: all .18s ease;
}
.login-ecosystem-links a:hover {
    border-color: rgba(228,60,37,.4);
    background: rgba(228,60,37,.1);
    color: #fff;
}

/* ── Hero derecha ────────────────────────────────────────── */
.login-hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.1);
    border: 1px solid rgba(255,255,255,.8);
}

.login-card-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-card-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 4px;
}
.login-card-header p {
    font-size: .75rem;
    color: var(--text-2);
    margin: 0;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .825rem;
    margin-bottom: 18px;
}
/* Alertas semánticas: misma familia que el resto del ecosistema (rojo/ámbar/esmeralda de Tailwind), contraste AA */
.login-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.login-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.login-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.login-form { display: flex; flex-direction: column; gap: 0; }

.login-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.login-field label { font-size: .78rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-wrap > i:first-child {
    position: absolute;
    left: 13px;
    color: var(--text-3);
    font-size: .8rem;
    pointer-events: none;
}
.login-input-wrap input {
    width: 100%;
    padding: 10px 40px 10px 36px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .875rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fafafa;
    transition: all .18s ease;
}
.login-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(228,60,37,.1);
    background: #fff;
    outline: none;
}
.login-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: .8rem;
    padding: 4px;
}
.login-toggle-pass:hover { color: var(--text-2); }

.login-forgot { font-size: .75rem; color: var(--accent); font-weight: 600; }
.login-forgot:hover { text-decoration: underline; }

.login-btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(228,60,37,.3);
}
.login-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(228,60,37,.4);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-3);
    font-size: .75rem;
}
.login-divider::before,
.login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.login-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border: 2px solid var(--brand);
    border-radius: 10px;
    color: var(--brand);
    font-size: .875rem;
    font-weight: 700;
    transition: all .2s ease;
}
.login-btn-register:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}

.login-terms {
    text-align: center;
    font-size: .68rem;
    color: var(--text-3);
    margin-top: 14px;
}
.login-terms a { color: var(--accent); font-weight: 600; }

.login-events-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 18px 20px;
    color: #fff;
}
.login-events-title {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .login-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .login-hero-left { order: 2; }
    .login-hero-right { order: 1; }
    .login-hero-title { font-size: 1.9rem; }
}
@media (max-width: 540px) {
    .login-card { padding: 28px 20px; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER ECOSYSTEM BAND
   ══════════════════════════════════════════════════════════ */
.ee-ecosystem-band {
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 16px 0;
    margin-bottom: 44px;
}
.ee-ecosystem-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.ee-ecosystem-band-label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    flex-shrink: 0;
}
.ee-ecosystem-band-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.ee-ecosystem-band-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    transition: all .18s ease;
}
.ee-ecosystem-band-links a:hover {
    border-color: var(--accent);
    background: rgba(228,60,37,.1);
    color: #fff;
}

/* 7. Keyframes for notifications and counts badge pulse */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.badge-nav {
    animation: badgePulse 2s infinite ease-in-out;
}

/* 8. Scrollbar Optimization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 30, 36, 0.4);
}

/* 9. Mobile responsiveness improvements for navigation */
@media (max-width: 640px) {
    #main-navbar .max-w-screen-xl {
        padding-left: 8px;
        padding-right: 8px;
    }
    .nav-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}


/* ── Accesibilidad de color ─────────────────────────────────
   El rojo de marca (#e43c25) da 4,2:1 sobre blanco: sirve para botones y texto grande,
   pero los enlaces pequeños usan la variante oscura (#c43318, 5,5:1). */
main a.text-accent, main button.text-accent,
.card a.text-accent, .card button.text-accent { color: var(--accent-dark); }
