/* =============================================
   SHARED COMPONENTS (Header, Tabbar, Footer)
   ============================================= */

/* ====== Accessibility ====== */
.skip-to-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* STICKY HEADER (For internal pages) */
.internal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 48, 0.96); /* Solid fallback for Firefox without backdrop-filter */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    /* 3-column grid so the logo strip is truly centered */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .internal-header {
        background: rgba(10, 22, 48, 0.82);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.internal-header .header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    justify-self: start;
}

.internal-header .header-symbol {
    height: 30px;
    width: auto;
}

.internal-header .header-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Centered logo strip */
.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-logo-strip {
    height: 32px;
    width: auto;
    max-width: 460px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.header-logo-strip:hover {
    opacity: 0.9;
}

/* Lang switcher pushed to the right */
.internal-header .lang-switcher {
    justify-self: end;
}

/* SECTION HEADERS */
.page-hero {
    padding: 6rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../img/hero-background.webp');
    background-size: cover;
    background-position: center center;
    background-color: var(--bg-deep);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.page-hero-title, .page-hero-subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.page-hero-title {
    animation-delay: 0.1s;
}
.page-hero-subtitle {
    animation-delay: 0.25s;
}

/* Full-coverage dark overlay + blue glow at the bottom */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 110%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(4, 13, 31, 0.68) 0%, rgba(6, 18, 44, 0.80) 100%);
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    padding-bottom: 0.1em;   /* prevent descender clipping on gradient text */
    color: #fff;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =============================================
   SECONDARY NAV BAR
   ============================================= */
.secondary-nav {
    position: sticky;
    top: 54px; /* sits just below the sticky header */
    z-index: 99;
    background: rgba(10, 18, 40, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.secondary-nav-inner::-webkit-scrollbar { display: none; }

.secondary-nav-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.secondary-nav-item:hover {
    color: #fff;
}

.secondary-nav-item.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    font-weight: 600;
}

/* MOBILE TAB BAR */
.mobile-tab-bar {
    display: none; /* Hidden on desktop */
}

/* Hide logo strip when viewport is too narrow to fit it comfortably */
@media (max-width: 900px) {
    .header-logos {
        display: none;
    }

    /* Collapse to 2-column grid when center slot is hidden */
    .internal-header {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 20px));
    }

    /* Hide the desktop secondary nav — tab bar handles mobile navigation */
    .secondary-nav {
        display: none;
    }

    /* Header: back to flex, brand left, switcher right */
    .internal-header {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
    }

    .internal-header .header-brand {
        justify-content: flex-start;
    }

    .internal-header .lang-switcher {
        position: static;
    }

    /* ── Floating pill tab bar ── */
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 54px;
        background: rgba(10, 15, 30, 0.92); /* Solid fallback */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        z-index: 1000;
        justify-content: center;
        align-items: center;
        padding: 0 0.35rem;
        gap: 0.2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
    @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
        .mobile-tab-bar {
            background: rgba(10, 15, 30, 0.45);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
        }
    }

    .tab-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.45);
        padding: 0 0.85rem;
        height: 40px;
        border-radius: 100px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
    }

    .tab-item:active {
        transform: scale(0.85);
    }

    .tab-item:hover {
        color: rgba(255, 255, 255, 0.75);
        background: rgba(255,255,255,0.05);
    }

    .tab-item i {
        width: 18px;
        height: 18px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tab-label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin-left: 0;
    }
    
    /* Ensure long labels like Emprendemento fit correctly on narrow screens */
    @media (max-width: 400px) {
        .tab-item.active .tab-label {
            font-size: 0.65rem;
        }
    }

    .tab-item.active {
        color: #fff;
        background: rgba(59, 130, 246, 0.15);
        box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.3);
        padding: 0 1.1rem;
    }

    .tab-item.active i {
        color: #fff;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
    }

    .tab-item.active .tab-label {
        max-width: 110px;
        opacity: 1;
        margin-left: 0.35rem;
        color: #fff;
    }
}

/* =============================================
   SIDEBAR HEADERS (Standardized)
   ============================================= */
.sidebar-info-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.sidebar-info-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.sidebar-info-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: #fff;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-info-title i {
  color: var(--accent-blue);
  width: 20px;
  height: 20px;
}

.sidebar-info-subtitle {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.3rem 0.75rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 100px;
}

/* =============================================
   PAGE STATS BANNER
   ============================================= */
.page-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Layout Horizontal Divider Line */
hr.layout-divider-line {
    border: none;
    width: calc(100% + 3rem); /* Extend across gap */
    height: 1px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(
        to right,
        rgba(59, 130, 246, 0.35) 0%,
        rgba(255, 255, 255, 0.10) 25%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 85%
    );
}
@keyframes statFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: statFadeUp 0.5s ease-out forwards;
}

/* Stagger animations automatically */
.stat-card:nth-child(1) { animation-delay: 0.0s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.stat-icon.icon-blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.stat-icon.icon-amber {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.stat-icon.icon-green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.stat-icon.icon-purple {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.stat-icon.icon-pink {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.2);
}
.stat-icon.icon-cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.stat-icon i {
    width: 20px;
    height: 20px;
}
.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.stat-value {
    font-size: 1.25rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 700;
    color: white;
    line-height: 1;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    word-wrap: break-word;
    hyphens: auto;
}

/* Map hover micro-interations */
.sidebar-map-placeholder, .aula-map-placeholder {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.sidebar-map-placeholder:hover, .aula-map-placeholder:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 80px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ── FOOOTER LOGOS CONDITIONAL DISPLAY ── */
.mobile-only-footer-logos {
    display: none;
}
@media (max-width: 992px) {
    .mobile-only-footer-logos {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media(max-width: 1200px) {
    .page-stats { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
    .page-stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .stat-card { padding: 0.8rem; gap: 0.75rem; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.55rem; line-height: 1.2; letter-spacing: 0.02em; }
    .stat-icon { width: 36px; height: 36px; }
    .stat-icon i { width: 18px; height: 18px; }
}

/* add-calendar icon logic */
.add-calendar-btn {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 0.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.add-calendar-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.add-calendar-btn i {
    width: 20px;
    height: 20px;
}
.timeline-item { cursor: pointer; } /* Make the whole card clickable */

/* ── Modal (Glassmorphism) moved from hubs.css ── */
.fp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fp-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.fp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.fp-modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}
.fp-modal-content::-webkit-scrollbar {
    width: 6px;
}
.fp-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.fp-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}
.fp-modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 130, 246, 0.8);
}
.fp-modal.active .fp-modal-content {
    transform: translateY(0) scale(1);
}
.fp-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.fp-modal-close:hover {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.4);
}
.modal-families {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.3;
}
.modal-summary {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}
.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media(max-width: 600px) {
    .modal-info-grid { grid-template-columns: 1fr; }
    .fp-modal-content { padding: 2rem 1.5rem; }
}
.modal-info-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

/* ── NEW FP-MODAL REDESIGN TOKENS ── */
.fp-modal-content {
    position: relative;
    background: rgba(10, 15, 30, 0.85); /* Darker solid base */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 60px rgba(0,0,0,0.6);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0; /* Padding moved to internal blocks */
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

/* Header Banner Graphic */
.fp-modal-hero {
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    overflow: hidden;
}

.fp-modal-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.fp-modal-header-icon i {
    width: 28px;
    height: 28px;
}

.fp-modal-header-title h2 {
    font-family: var(--font-display, sans-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hub-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hub-modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
}

.fp-modal-body-content {
    padding: 0 2.5rem 3rem;
}

.fp-modal-description {
    margin-top: 2rem;
    padding-left: 1.5rem;
}
.fp-modal-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.fp-modal-speakers-section {
    margin-top: 3rem;
}
.speakers-section-title {
    font-family: var(--font-display, sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fp-modal-speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Deep Speaker Cards */
.speaker-deep-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
}
.speaker-deep-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.speaker-deep-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.speaker-deep-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.speaker-deep-avatar-initial {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display, sans-serif);
}

.speaker-deep-info {
    flex: 1;
}
.speaker-deep-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}
.speaker-deep-role {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.speaker-deep-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Modal Footer Neon Calendar Button */
.fp-modal-footer {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}
.add-calendar-btn-neon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.add-calendar-btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.add-calendar-btn-neon:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-color, rgba(255,255,255,0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-color, transparent);
}
.add-calendar-btn-neon:hover::before {
    transform: translateX(100%);
}

@media(max-width: 600px) {
    .fp-modal-hero { padding: 2rem 1.5rem 1.5rem; }
    .fp-modal-body-content { padding: 0 1.5rem 2rem; }
    .fp-modal-header-title h2 { font-size: 1.5rem; }
    .fp-modal-speaker-grid { grid-template-columns: 1fr; }
    .speaker-deep-card { padding: 1.25rem; flex-direction: column; align-items: center; text-align: center; }
}
.modal-info-block h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.modal-info-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal-info-block li, .modal-info-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}
.modal-info-block li:last-child {
    margin-bottom: 0;
}
.modal-awards {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.modal-awards i {
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.modal-awards p {
    font-size: 0.95rem;
    color: #fcd34d;
    line-height: 1.6;
    margin: 0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: pageFadeIn 0.3s ease forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 1024px) { body, html { overflow-x: clip; max-width: 100vw; } .xornadas-layout, .aula-layout, main { overflow-x: clip; } }

/* =============================================
   SWUP.JS PAGE TRANSITIONS
   ============================================= */
html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(15px);
}
.transition-fade {
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

/* ====== PWA & Native App Tweaks ====== */
* {
    -webkit-tap-highlight-color: transparent;
    outline: none; /* Removed default click squares */
}

/* ── Smart Focus outlines for Keyboard only ── */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
    transition: outline-offset 0.15s ease-out;
}

html, body {
    overscroll-behavior-y: none;
}

/* ====== Live Search (Glassmorphism) ====== */
.sidebar-search {
    position: relative;
    width: 100%;
}
.sidebar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
}
.sidebar-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.sidebar-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Micro-animaciones de Touch App */
.project-card:active,
.btn-glass:active,
.section-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

/* Safe areas and Glassmorphism en tab-bar */
.tab-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(6, 18, 44, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Modal Drag Area (Visual hint) */
.modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 0 auto 15px auto;
}

/* ====== PWA Install Banner (A2HS) ====== */
.pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

.pwa-install-banner.active {
    bottom: max(6rem, env(safe-area-inset-bottom, 6rem));
    pointer-events: auto;
    opacity: 1;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-icon i {
    color: white;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-install-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.15rem;
}

.pwa-install-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pwa-btn-install {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pwa-btn-close {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}

/* ====== Shimmer Skeleton Loaders ====== */
.skeleton-card {
    height: 180px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.08), 
        transparent
    );
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ====== Cascade Reveal Styles ====== */
.cascade-reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.cascade-reveal-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Scroll to Top FAB ====== */
.fab-scroll-top {
    position: fixed;
    bottom: -80px; /* Hidden initially */
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
}

.fab-scroll-top.visible {
    bottom: calc(90px + env(safe-area-inset-bottom, 10px));
}

.fab-scroll-top:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.fab-scroll-top:active {
    transform: translateY(0) scale(0.95);
}

@media (min-width: 768px) {
    .fab-scroll-top.visible {
        bottom: 30px;
        right: 30px;
    }
}
