/* ==========================================================================
   Dr. Geovanni Cassali - Design System & Custom Stylesheet
   Academic Luxury, Glassmorphism, Micro-Animations & Responsive Grid
   Integrated with Multi-Level Dropdown Submenus & Logo Size Control
   ========================================================================== */

:root {
    --primary: #00161d;
    --primary-container: #0c2b35;
    --secondary: #006a63;
    --secondary-accent: #43dccf;
    --secondary-light: #eaf8f6;
    --bg-surface: #f6faff;
    --surface-card: #ffffff;
    --surface-container: #eaeef4;
    --surface-high: #e4e8ee;
    --text-main: #171c20;
    --text-muted: #42484a;
    --text-light: #72787b;
    --border-color: #e2e8f0;
    --font-headline: 'Source Serif 4', serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    --container-max: 1280px;
    --header-height: 80px;
    --shadow-sm: 0 2px 8px rgba(0,22,29,0.04);
    --shadow-md: 0 8px 24px rgba(0,22,29,0.08);
    --shadow-lg: 0 16px 40px rgba(0,22,29,0.12);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-surface);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Ultra-Premium Scrollbar Engine */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(67, 220, 207, 0.4) rgba(0, 22, 29, 0.6);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 22, 29, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(67, 220, 207, 0.45) 0%, rgba(0, 106, 99, 0.75) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 22, 29, 0.8);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #43dccf 0%, #00a89c 100%);
    box-shadow: 0 0 12px rgba(67, 220, 207, 0.7);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Glassmorphism Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(246, 250, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.main-header .container {
    max-width: 1480px;
    width: 100%;
    padding: 0 clamp(12px, 1.8vw, 28px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    display: block;
    object-fit: contain;
    transition: all 0.2s ease;
    max-height: 52px;
    width: auto;
}

.brand-title {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 2px;
}

/* Navigation & Submenu Dropdowns */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.9vw, 14px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item-wrapper {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    font-size: clamp(12.5px, 0.88vw, 13.5px);
    font-weight: 600;
    color: var(--text-muted);
    padding: 7px clamp(4px, 0.48vw, 8px);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    position: relative;
    white-space: nowrap !important;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.nav-link-text {
    white-space: nowrap !important;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Dropdown Arrow Indicator on Desktop */
.dropdown-arrow,
.dropdown-arrow-btn {
    font-size: 9px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    color: var(--text-light);
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.75;
    pointer-events: none;
}

.nav-item-wrapper:hover .dropdown-arrow,
.nav-item-wrapper:hover .dropdown-arrow-btn {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--secondary);
}

/* Dropdown Submenu Box */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Align dropdowns near the right edge to open inwards, preventing horizontal viewport overflow */
.nav-item-wrapper:nth-last-child(2) .dropdown-menu,
.nav-item-wrapper:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 16px);
    flex-shrink: 0;
}

/* User Auth Header Action Styles */
.header-auth-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 22, 29, 0.05);
    border: 1px solid rgba(0, 22, 29, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header-login:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-header-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary), #004d48);
    border: 1px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header-register:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* User Logged Pill Dropdown */
.header-user-pill-container {
    position: relative;
    flex-shrink: 0;
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    background: rgba(0, 22, 29, 0.04);
    border: 1px solid rgba(0, 22, 29, 0.12);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-user-pill:hover {
    background: rgba(0, 106, 99, 0.08);
    border-color: var(--secondary-accent);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary);
    border: 1.5px solid var(--secondary-accent);
    flex-shrink: 0;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
}

.header-user-pill-container:hover .header-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.header-user-dropdown-item:hover {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

/* Language Toggle Buttons */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    border-right: 1px solid var(--border-color);
    padding-right: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.lang-btn {
    color: var(--text-light);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--primary);
    background-color: var(--surface-container);
}

.lang-btn-es:hover {
    color: var(--secondary) !important;
}

/* ==========================================================================
   Full-Page Spanish Site Loading Screen & Transition Engine
   ========================================================================== */
.site-lang-loader {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-lang-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.site-lang-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(12, 43, 53, 0.94) 0%, rgba(0, 22, 29, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-lang-modal {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 440px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(67, 220, 207, 0.3);
    border-radius: 24px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 106, 99, 0.3);
    transform: translateY(16px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.site-lang-loader.active .site-lang-modal {
    transform: translateY(0) scale(1);
}

.site-lang-badge {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 106, 99, 0.7), rgba(67, 220, 207, 0.25));
    border: 1.5px solid rgba(67, 220, 207, 0.6);
    box-shadow: 0 0 25px rgba(67, 220, 207, 0.3);
}

.site-lang-icon {
    font-size: 38px !important;
    color: #43dccf !important;
    z-index: 2;
    animation: langIconPulse 2s ease-in-out infinite alternate;
}

.site-lang-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(67, 220, 207, 0.4);
    animation: langRingPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes langIconPulse {
    0% { transform: scale(0.96); filter: drop-shadow(0 0 4px rgba(67, 220, 207, 0.4)); }
    100% { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(67, 220, 207, 0.8)); }
}

@keyframes langRingPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.5); opacity: 0; }
}

.site-lang-title {
    font-family: var(--font-headline, 'Source Serif 4', serif);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 4px;
}

.site-lang-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.site-lang-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 220, 207, 0.25);
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.site-lang-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(67, 220, 207, 0.25);
    border-top-color: #43dccf;
    border-radius: 50%;
    animation: langSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes langSpin {
    to { transform: rotate(360deg); }
}

.site-lang-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 0.02em;
}

.site-lang-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.site-lang-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #006a63, #43dccf, #2dd4bf);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(67, 220, 207, 0.8);
}

.site-lang-loader.active .site-lang-bar-fill {
    animation: langBarFill 1.2s cubic-bezier(0.12, 0.8, 0.3, 1) forwards;
}

@keyframes langBarFill {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}

.site-lang-destination {
    display: inline-block;
    font-size: 12px;
    font-family: monospace;
    color: rgba(67, 220, 207, 0.8);
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--surface-container);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--surface-high);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

/* Page Layout Wrappers */
.page-wrapper {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 100px 0;
    overflow: hidden;
}

.hero-backdrop-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 220, 207, 0.15) 0%, rgba(246, 250, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    margin-bottom: 16px;
}

.hero-tag-line {
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 680px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.hero-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Hero Portrait Frame */
.portrait-card {
    position: relative;
}

.portrait-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface-card);
    background-color: var(--primary-container);
}

.portrait-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-frame:hover .portrait-img {
    transform: scale(1.04);
}

.portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,22,29,0.95), transparent);
    color: #ffffff;
}

.portrait-name {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
}

.portrait-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-accent);
}

.stat-floating-card {
    position: absolute;
    top: 40px;
    left: -30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Authority Bar - Full Width & Centered Items (Matching es.drcassali.com)
   ========================================================================== */
.authority-bar {
    background-color: #00161d;
    background: linear-gradient(90deg, #001217 0%, #001b22 50%, #001217 100%);
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.authority-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 36px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.authority-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.authority-item:hover {
    transform: translateY(-1px);
}

.authority-icon {
    font-size: 24px;
    color: #43dccf;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(67, 220, 207, 0.3));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.authority-item:hover .authority-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(67, 220, 207, 0.6));
}

.authority-text {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    white-space: normal;
    max-width: 250px;
    text-align: left;
}

@media (max-width: 1200px) {
    .authority-grid {
        gap: 16px 28px;
        padding: 0 20px;
    }
    .authority-text {
        font-size: 10.5px;
        max-width: 230px;
    }
}

@media (max-width: 768px) {
    .authority-bar {
        padding: 16px 0;
    }
    .authority-grid {
        justify-content: center;
        gap: 14px 20px;
        padding: 0 16px;
    }
    .authority-item {
        gap: 8px;
    }
    .authority-icon {
        font-size: 22px;
    }
    .authority-text {
        font-size: 10px;
        max-width: 210px;
    }
}

/* Scientific Manifesto Section */
.manifesto-section {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.manifesto-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.manifesto-quote-box {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background-color: var(--surface-card);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    border-left: 4px solid var(--secondary);
}

.quote-text {
    font-family: var(--font-headline);
    font-size: 15px;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-body {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Grid Cards (Research lines, areas, visitor routes) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-accent);
}

.card-code-badge {
    align-self: flex-start;
    background-color: var(--secondary-light);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================================================
   PUBLICATIONS & SCIENTIFIC OBSERVATORY — ULTRA-PREMIUM ATRIUM
   Dr. Geovanni Cassali • Brand Adapted
   ========================================================================== */

.pub-hero-wrapper {
    position: relative;
    background: radial-gradient(120% 120% at 50% 0%, #0c202d 0%, #061219 55%, #02070b 100%);
    color: #ffffff;
    padding: 75px 0 85px 0;
    border-bottom: 1px solid rgba(67, 220, 207, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.pub-hero-glow-1 {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 220, 207, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: pubPulse 10s ease-in-out infinite alternate;
}

.pub-hero-glow-2 {
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 106, 99, 0.35) 0%, transparent 70%);
    filter: blur(95px);
    pointer-events: none;
}

.pub-hero-glow-3 {
    position: absolute;
    top: 30%;
    left: 45%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

@keyframes pubPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.18) translate(-20px, 30px); opacity: 0.95; }
}

.pub-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(67, 220, 207, 0.1);
    border: 1px solid rgba(67, 220, 207, 0.35);
    color: #43dccf;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 0 20px rgba(67, 220, 207, 0.2);
    margin-bottom: 20px;
}

.pub-hero-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #b8f2eb 70%, #43dccf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.pub-hero-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: #a0aec0;
    max-width: 840px;
    margin-bottom: 30px;
}

/* Hero Stats Ribbon */
.pub-stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 10px;
}

.pub-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.pub-stat-chip:hover {
    background: rgba(67, 220, 207, 0.1);
    border-color: rgba(67, 220, 207, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pub-stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-stat-icon-wrap .material-symbols-outlined {
    font-size: 20px;
}

.pub-stat-number {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pub-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Publication Catalog & Live Search Component */
.pub-search-bar {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 22, 29, 0.05);
    border: 1px solid rgba(0, 22, 29, 0.08);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 13px 40px 13px 46px;
    border-radius: 50px;
    border: 1px solid rgba(0, 22, 29, 0.12);
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 14.5px;
    outline: none;
    transition: all 0.25s ease;
    color: var(--text-main);
}

.search-input:focus {
    background: #ffffff;
    border-color: #006a63;
    box-shadow: 0 0 0 4px rgba(67, 220, 207, 0.25);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 20px;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: none;
    font-size: 18px;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.search-clear-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    background-color: var(--surface-container);
    color: var(--text-muted);
    border: 1px solid rgba(0, 22, 29, 0.06);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-btn:hover {
    background-color: var(--primary-container);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 22, 29, 0.12);
}

.pill-btn.active {
    background: linear-gradient(135deg, #00161d 0%, #0c2b35 100%);
    color: #43dccf !important;
    border-color: rgba(67, 220, 207, 0.4);
    box-shadow: 0 4px 14px rgba(0, 22, 29, 0.25);
}

.pub-cat-counter {
    background: rgba(0, 0, 0, 0.07);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 4px;
}

.pill-btn:hover .pub-cat-counter,
.pill-btn.active .pub-cat-counter {
    background: rgba(67, 220, 207, 0.2);
    color: #43dccf;
    border: 1px solid rgba(67, 220, 207, 0.3);
}

.pub-view-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid rgba(0, 22, 29, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pub-view-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.pub-view-btn.active {
    background: #00161d;
    color: #43dccf;
    border-color: #00161d;
    box-shadow: 0 2px 8px rgba(0, 22, 29, 0.2);
}

/* ==========================================================================
   Ultra High-End Publications & Consensuses Catalog System
   3-Column Year Grouped Responsive Grid + Dynamic Micro-Interactions
   ========================================================================== */

/* Results Overview Bar */
.pub-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 22, 29, 0.08);
    border-radius: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    box-shadow: 0 4px 14px rgba(0, 22, 29, 0.03);
}

.pub-results-bar strong {
    color: var(--primary);
    font-weight: 800;
}

/* Quick Year Timeline Navigator & Slider */
.pub-year-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    width: 100%;
}

.pub-year-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 22, 29, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00161d;
    box-shadow: 0 4px 12px rgba(0, 22, 29, 0.06);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pub-year-arrow:hover {
    background: #006a63;
    color: #ffffff;
    border-color: #006a63;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 106, 99, 0.3);
}

.pub-year-navigator {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 22, 29, 0.08);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 22, 29, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 106, 99, 0.2) transparent;
    cursor: grab;
    user-select: none;
    flex: 1;
    scroll-behavior: smooth;
}

.pub-year-navigator.grabbing {
    cursor: grabbing;
}

.pub-year-navigator::-webkit-scrollbar {
    height: 4px;
}

.pub-year-navigator::-webkit-scrollbar-thumb {
    background: rgba(0, 106, 99, 0.25);
    border-radius: 4px;
}

.pub-year-nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #006a63;
    padding-right: 12px;
    border-right: 1px solid rgba(0, 22, 29, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.pub-year-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.pub-year-chip:hover {
    background: #e2e8f0;
    color: #00161d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 22, 29, 0.1);
}

.pub-year-chip.active {
    background: linear-gradient(135deg, #00161d 0%, #0c2b35 100%);
    color: #43dccf !important;
    border-color: rgba(67, 220, 207, 0.5);
    box-shadow: 0 4px 14px rgba(0, 22, 29, 0.35);
}

.pub-year-chip.active .pub-year-chip-count {
    background: rgba(67, 220, 207, 0.2);
    color: #43dccf;
    border: 1px solid rgba(67, 220, 207, 0.3);
}

.pub-year-dropdown-wrap {
    flex-shrink: 0;
}

.pub-year-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0, 22, 29, 0.1);
    color: #00161d;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 22, 29, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-year-dropdown:focus, .pub-year-dropdown:hover {
    border-color: #006a63;
    box-shadow: 0 0 0 3px rgba(67, 220, 207, 0.2);
}

.pub-year-chip-count {
    font-size: 11px;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 800;
}

/* Year Section & Header */
.pub-year-section {
    margin-bottom: 56px;
    scroll-margin-top: 110px;
}

.pub-year-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pub-year-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pub-year-count-badge {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid rgba(0, 22, 29, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 22, 29, 0.02);
}

.pub-year-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 106, 99, 0.35) 0%, rgba(226, 232, 240, 0.9) 60%, transparent 100%);
}

/* 3-Column Responsive Grid */
.pub-grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .pub-grid-three-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 680px) {
    .pub-grid-three-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Ultra High-End Publication & Consensus Card */
.pub-ultra-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 22, 29, 0.09);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 22, 29, 0.04), 0 1px 3px rgba(0, 22, 29, 0.02);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    animation: pubCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Top Accent Dynamic Indicator */
.pub-ultra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent-from, #006a63), var(--card-accent-to, #43dccf));
    transition: height 0.2s ease;
}

.pub-ultra-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px -10px rgba(0, 22, 29, 0.14), 0 8px 20px -4px var(--card-glow, rgba(67, 220, 207, 0.2));
    border-color: var(--card-accent-from, #006a63);
}

.pub-ultra-card:hover::before {
    height: 5px;
}

/* Category Specific Color Schemes */
.pub-ultra-card.cat-consenso {
    --card-accent-from: #d97706;
    --card-accent-to: #f59e0b;
    --card-glow: rgba(245, 158, 11, 0.25);
}
.pub-ultra-card.cat-consenso .pub-card-cat-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}

.pub-ultra-card.cat-artigo {
    --card-accent-from: #0284c7;
    --card-accent-to: #38bdf8;
    --card-glow: rgba(56, 189, 248, 0.25);
}
.pub-ultra-card.cat-artigo .pub-card-cat-badge {
    background: rgba(2, 132, 199, 0.1);
    color: #0369a1;
    border-color: rgba(2, 132, 199, 0.25);
}

.pub-ultra-card.cat-revisao {
    --card-accent-from: #059669;
    --card-accent-to: #34d399;
    --card-glow: rgba(52, 211, 153, 0.25);
}
.pub-ultra-card.cat-revisao .pub-card-cat-badge {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.25);
}

.pub-ultra-card.cat-livro {
    --card-accent-from: #7c3aed;
    --card-accent-to: #a78bfa;
    --card-glow: rgba(167, 139, 250, 0.25);
}
.pub-ultra-card.cat-livro .pub-card-cat-badge {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.25);
}

.pub-ultra-card.cat-default {
    --card-accent-from: #006a63;
    --card-accent-to: #43dccf;
    --card-glow: rgba(67, 220, 207, 0.25);
}
.pub-ultra-card.cat-default .pub-card-cat-badge {
    background: rgba(0, 106, 99, 0.1);
    color: #006a63;
    border-color: rgba(67, 220, 207, 0.3);
}

/* Card Header Meta Row */
.pub-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pub-card-meta-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pub-card-cat-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pub-card-cat-badge .material-symbols-outlined {
    font-size: 14px;
}

.pub-destaque-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border: 1px solid #fcd34d;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.pub-card-year {
    font-size: 12.5px;
    font-weight: 800;
    color: #00161d;
    background: #f1f5f9;
    border: 1px solid rgba(0, 22, 29, 0.08);
    padding: 3px 9px;
    border-radius: 20px;
}

/* Card Title */
.pub-card-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #00161d;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.pub-ultra-card:hover .pub-card-title {
    color: #006a63;
}

/* Authors */
.pub-card-authors {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-cassali {
    color: #006a63;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(67, 220, 207, 0.6);
    text-underline-offset: 2px;
}

/* Journal / Periodical Box */
.pub-card-journal {
    background: #f8fafc;
    border: 1px solid rgba(0, 22, 29, 0.06);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pub-card-journal-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.pub-card-doi-pill {
    font-size: 11px;
    font-weight: 800;
    color: #006a63;
    background: #ffffff;
    border: 1px solid rgba(0, 106, 99, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pub-card-doi-pill:hover {
    background: #006a63;
    color: #ffffff;
    border-color: #006a63;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 106, 99, 0.3);
}

/* Description / Ementa (for Consensuses) */
.pub-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subcategory tag */
.pub-card-subcat {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Card Actions pinned to bottom */
.pub-card-actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 22, 29, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pub-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.pub-btn-action.btn-subtle {
    background: #f1f5f9;
    color: #00161d;
    border: 1px solid rgba(0, 22, 29, 0.08);
}

.pub-btn-action.btn-subtle:hover {
    background: #e2e8f0;
    color: #006a63;
    border-color: rgba(0, 106, 99, 0.25);
    transform: translateY(-1px);
}

.pub-btn-action.btn-accent {
    background: linear-gradient(135deg, #00161d 0%, #0c2b35 100%);
    color: #43dccf;
    border: 1px solid rgba(67, 220, 207, 0.4);
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 22, 29, 0.15);
}

.pub-btn-action.btn-accent:hover {
    background: #006a63;
    color: #ffffff;
    border-color: #006a63;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 106, 99, 0.35);
}

.pub-btn-action.btn-icon-only {
    padding: 8px 10px;
}

.pub-btn-action .arrow-icon {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.pub-btn-action:hover .arrow-icon {
    transform: translate(2px, -2px);
}

/* List View Mode Layout */
.pub-list-mode .pub-grid-three-col {
    grid-template-columns: 1fr;
    gap: 16px;
}

.pub-list-mode .pub-ultra-card {
    display: grid;
    grid-template-columns: 180px 1fr 220px;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
}

.pub-list-mode .pub-ultra-card .pub-card-top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
}

.pub-list-mode .pub-ultra-card .pub-card-title {
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
}

.pub-list-mode .pub-ultra-card .pub-card-authors {
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
}

.pub-list-mode .pub-ultra-card .pub-card-journal {
    margin-bottom: 0;
}

.pub-list-mode .pub-ultra-card .pub-card-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .pub-list-mode .pub-ultra-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Bibliographic Inquiries Concierge Card */
.pub-inquiries-card {
    position: relative;
    margin-top: 60px;
    background: radial-gradient(120% 120% at 50% 0%, #0c202d 0%, #061219 70%, #02070b 100%);
    border-radius: 24px;
    border: 1px solid rgba(67, 220, 207, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding: 36px 40px;
    color: #ffffff;
}

.pub-inquiries-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 220, 207, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.pub-inquiries-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.pub-inquiries-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(67, 220, 207, 0.1);
    border: 1px solid rgba(67, 220, 207, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(67, 220, 207, 0.2);
    flex-shrink: 0;
}

.pub-inquiries-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 21px;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
}

.pub-inquiries-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}

.pub-inquiries-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #006a63 0%, #43dccf 100%);
    color: #00161d;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(67, 220, 207, 0.35);
    transition: all 0.25s ease;
}

.pub-inquiries-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(67, 220, 207, 0.5);
    color: #000000;
}

/* Copy Citation Button Micro-Interaction */
.pub-copy-btn {
    position: relative;
}

.pub-copy-btn:active {
    transform: scale(0.95);
}

/* Floating Toast Notification */
.pub-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #00161d;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 22, 29, 0.35);
    border: 1px solid rgba(67, 220, 207, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-toast.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pub-toast .toast-icon {
    color: #43dccf;
    font-size: 20px;
}

/* Legacy Fallbacks for Other Parts of the Site */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pub-item-card {
    background-color: var(--surface-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.pub-item-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pub-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
}

.pub-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.pub-item-title {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.pub-authors {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.pub-journal {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-container);
    margin-bottom: 12px;
}

.pub-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}


/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,22,29,0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    max-width: 680px;
    width: 100%;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary-accent);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease;
}

.form-control:focus {
    border-color: var(--secondary);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.mobile-only-actions {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--surface-container);
    border: 1px solid var(--border-color);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle.active {
    background: var(--secondary-light);
    color: var(--secondary);
    border-color: var(--secondary);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 24px;
}

.admin-link-mobile {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-weight: 700;
    font-size: 13px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Page Layout Wrappers */
.page-wrapper {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Mobile Actions Desktop Hide Rule */
.mobile-only-actions {
    display: none !important;
}

/* Responsive Rules for Intermediate Desktop Screens (1041px - 1340px) */
@media (max-width: 1340px) {
    .main-header .container {
        padding: 0 16px;
    }
    .header-inner {
        gap: 12px;
    }
    .brand-logo-img {
        max-width: 180px !important;
    }
    .nav-menu {
        gap: clamp(5px, 0.75vw, 10px);
    }
    .nav-link {
        font-size: 12.8px;
        padding: 6px 5px;
    }
    .header-actions {
        gap: 10px;
    }
    .lang-toggle {
        padding-right: 10px;
        font-size: 12px;
        gap: 3px;
    }
    .btn-header-login,
    .btn-header-register {
        padding: 6px 12px;
        font-size: 12.5px;
    }
}

@media (max-width: 1180px) {
    .header-inner {
        gap: 8px;
    }
    .brand-logo-img {
        max-width: 155px !important;
    }
    .nav-menu {
        gap: 5px;
    }
    .nav-link {
        font-size: 12px;
        padding: 5px 3.5px;
        gap: 2px;
    }
    .header-actions {
        gap: 6px;
    }
    .lang-toggle {
        padding-right: 6px;
        font-size: 11.5px;
        gap: 2px;
    }
    .header-auth-group {
        gap: 4px;
    }
    .btn-header-login,
    .btn-header-register {
        padding: 5px 8px;
        font-size: 11.5px;
        gap: 3px;
    }
    .btn-header-login .btn-header-icon,
    .btn-header-register .btn-header-icon {
        font-size: 13px !important;
    }
}

/* Responsive Rules — Switch to Mobile Drawer at 1040px for Luxury UX */
@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 36px; }
    .stat-floating-card { display: none; }

    .desktop-only-btn, .admin-link-desktop {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-only-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-only-actions .btn-primary,
    .mobile-only-actions .admin-link-mobile {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        font-weight: 800 !important;
        font-size: 13px !important;
        text-decoration: none !important;
        margin: 0 !important;
    }

    .mobile-only-actions .admin-link-mobile {
        background: rgba(0, 106, 99, 0.1) !important;
        color: var(--secondary) !important;
        border: 1px solid rgba(0, 106, 99, 0.3) !important;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height, 70px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height, 70px));
        background: linear-gradient(180deg, rgba(8, 13, 26, 0.98) 0%, rgba(13, 21, 39, 0.99) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px 40px 20px;
        overflow-y: auto;
        gap: 8px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 15px;
        font-weight: 700;
        color: #f1f5f9 !important;
        padding: 14px 16px;
        border-radius: 12px;
        width: 100%;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.2s ease;
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(20, 184, 166, 0.15) !important;
        color: #14b8a6 !important;
        border-color: rgba(20, 184, 166, 0.4) !important;
    }

    .nav-link.active::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 12px;
        margin-top: 4px;
        padding: 8px 12px;
        display: none;
    }

    .dropdown-link {
        color: #cbd5e1 !important;
        font-size: 14px;
        font-weight: 600;
        padding: 10px 14px;
        display: block;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .dropdown-link:hover {
        color: #14b8a6 !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown-arrow-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        margin-left: 8px;
        border-radius: 8px;
        background: rgba(20, 184, 166, 0.15);
        color: #14b8a6;
        border: 1px solid rgba(20, 184, 166, 0.3);
        font-size: 10px;
        cursor: pointer;
        transition: transform 0.25s ease, background 0.2s ease;
        pointer-events: auto !important;
    }

    .dropdown-arrow-btn:hover {
        background: rgba(20, 184, 166, 0.3);
        color: #ffffff;
    }

    .nav-item-wrapper.dropdown-open .dropdown-arrow-btn {
        transform: rotate(180deg);
        background: rgba(20, 184, 166, 0.35);
        color: #ffffff;
    }

    .nav-item-wrapper.dropdown-open .dropdown-menu {
        display: block;
    }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { justify-content: center; }
    
    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .header-actions {
        gap: 8px;
    }
}

/* Mobile Menu Toggle Clean Icon Handlers */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    background: rgba(0, 34, 29, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
}

.mobile-menu-toggle .icon-menu {
    display: block !important;
}

.mobile-menu-toggle .icon-close {
    display: none !important;
}

.mobile-menu-toggle.active .icon-menu {
    display: none !important;
}

.mobile-menu-toggle.active .icon-close {
    display: block !important;
}

/* ==========================================================================
   Dr. Cassali nas Redes — Ultra-Luxury Multimedia & YouTube Hub Styles
   ========================================================================== */

.redes-hero-section {
    position: relative;
    padding: 70px 0 60px 0;
    background: linear-gradient(180deg, #00161d 0%, #06242c 60%, var(--bg-surface) 100%);
    overflow: hidden;
    color: #fff;
}

.redes-hero-ambient-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.18) 0%, rgba(67, 220, 207, 0.12) 50%, transparent 80%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.redes-hero-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 40px auto;
}

.redes-hero-title {
    font-family: var(--font-headline);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 16px 0 14px 0;
}

.redes-hero-subtitle {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

/* Official Channels Bar */
.redes-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 50px;
}

.redes-channel-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.redes-channel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.redes-channel-card:hover::before {
    transform: translateX(100%);
}

.redes-channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(67, 220, 207, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.redes-channel-card.yt-channel:hover {
    border-color: rgba(255, 71, 87, 0.6);
    box-shadow: 0 12px 30px rgba(255, 71, 87, 0.2);
}

.redes-channel-card.ig-channel:hover {
    border-color: rgba(225, 48, 108, 0.6);
    box-shadow: 0 12px 30px rgba(225, 48, 108, 0.2);
}

.redes-channel-card.sp-channel:hover {
    border-color: rgba(29, 185, 84, 0.6);
    box-shadow: 0 12px 30px rgba(29, 185, 84, 0.2);
}

.channel-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.redes-channel-card:hover .channel-icon-wrap {
    transform: scale(1.08);
}

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

.channel-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-desc {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.channel-action-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-accent, #43dccf);
    white-space: nowrap;
    opacity: 0.95;
    margin-top: 5px;
    display: block;
}

/* Spotlight Masterclass Hero Card */
.redes-spotlight-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: rgba(12, 43, 53, 0.6);
    border: 1px solid rgba(67, 220, 207, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 22, 29, 0.4);
    transition: all 0.3s ease;
}

.redes-spotlight-card:hover {
    border-color: rgba(67, 220, 207, 0.6);
    box-shadow: 0 25px 60px rgba(67, 220, 207, 0.15);
}

.spotlight-media-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    min-height: 320px;
}

.spotlight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-media-wrap:hover .spotlight-thumb {
    transform: scale(1.05);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 22, 29, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spotlight-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.9);
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-media-wrap:hover .spotlight-play-btn {
    transform: scale(1.15);
    background: #ff4757;
    box-shadow: 0 0 45px rgba(255, 71, 87, 1);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.pulse-glow {
    animation: pulseGlow 2.2s infinite;
}

.spotlight-duration-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spotlight-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.spotlight-tag {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
}

.spotlight-event-tag {
    background: rgba(67, 220, 207, 0.15);
    color: #43dccf;
    border: 1px solid rgba(67, 220, 207, 0.3);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.spotlight-title {
    font-family: var(--font-headline);
    font-size: 26px;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.spotlight-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #43dccf;
    margin-bottom: 14px;
}

.spotlight-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.spotlight-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.spotlight-tag-item {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.spotlight-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cinema-trigger-btn {
    background: linear-gradient(135deg, #ff4757 0%, #d63031 100%) !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(255, 71, 87, 0.4);
}

.cinema-trigger-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
    transform: translateY(-2px);
}

/* Explorer & Media Grid Section */
.redes-explorer-section {
    padding: 60px 0 90px 0;
    background: var(--bg-surface);
}

.redes-toolbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.redes-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.category-tab .tab-icon {
    font-size: 18px;
}

.category-tab:hover {
    border-color: var(--secondary);
    color: var(--primary);
    background: var(--secondary-light);
}

.category-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.category-tab.active .tab-icon {
    color: var(--secondary-accent);
}

.redes-search-box {
    position: relative;
    min-width: 320px;
    flex: 1;
    max-width: 440px;
}

.redes-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 20px;
}

.redes-search-box input {
    width: 100%;
    padding: 10px 40px 10px 42px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--surface-card);
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
}

.redes-search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 106, 99, 0.15);
}

#clearSearchBtn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

/* Topic Pills */
.redes-topic-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.topic-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
}

.topic-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-pill:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.topic-pill.active {
    background: var(--secondary-light);
    color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 700;
}

.redes-counter-row {
    margin-bottom: 24px;
}

.counter-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Media Cards Grid */
.redes-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.media-card-ultra {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.media-card-ultra:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 106, 99, 0.3);
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #00161d;
    cursor: pointer;
    overflow: hidden;
}

.card-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-thumb-wrap:hover .card-thumb-img {
    transform: scale(1.06);
}

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 22, 29, 0.1) 0%, rgba(0, 22, 29, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.card-thumb-wrap:hover .card-thumb-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 22, 29, 0.2) 0%, rgba(0, 22, 29, 0.85) 100%);
}

.card-play-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.9);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-thumb-wrap:hover .card-play-icon {
    transform: scale(1.15);
    background: #ff4757;
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.9);
}

.card-thumb-top-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.platform-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

.platform-badge.youtube {
    background: rgba(255, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
}

.platform-badge.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.featured-badge {
    background: rgba(255, 215, 0, 0.95);
    color: #00161d;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.card-duration-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.card-body-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-institution-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.card-media-title {
    font-family: var(--font-headline);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.card-media-title:hover {
    color: var(--secondary);
}

.card-media-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-media-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.card-tag-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--surface-container);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-footer-actions {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-action-btn {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-action-btn.primary-action {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 16px;
    flex: 1;
    justify-content: center;
}

.card-action-btn.primary-action:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.card-action-btn.icon-only-action {
    background: var(--surface-container);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 8px;
}

.card-action-btn.icon-only-action:hover {
    background: var(--secondary-light);
    color: var(--secondary);
}

/* ==========================================================================
   Cinema Lightbox Modal Styles
   ========================================================================== */

.cinema-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 15, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: cinemaEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cinemaEntrance {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.cinema-modal-container {
    background: #081d24;
    border: 1px solid rgba(67, 220, 207, 0.35);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
}

.cinema-modal-topbar {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #081d24;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cinema-title-wrap {
    flex: 1;
    min-width: 0;
}

.cinema-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary-accent);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}

.cinema-modal-title {
    font-family: var(--font-headline);
    font-size: 20px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.cinema-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cinema-close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: rotate(90deg);
}

.cinema-screen-wrap {
    background: #000;
    width: 100%;
}

.cinema-player-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect */
}

.cinema-player-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cinema-context-panel {
    padding: 28px;
    color: #fff;
    background: #081d24;
}

.cinema-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.cinema-meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--secondary-accent);
}

.cinema-description-text {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 20px;
}

.cinema-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cinema-tag-pill {
    background: rgba(67, 220, 207, 0.12);
    color: var(--secondary-accent);
    border: 1px solid rgba(67, 220, 207, 0.25);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.cinema-bottom-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .redes-spotlight-card {
        grid-template-columns: 1fr;
    }
    .spotlight-media-wrap {
        min-height: 240px;
    }
    .redes-hero-title {
        font-size: 32px;
    }
    .redes-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .redes-hero-section {
        padding: 40px 0;
    }
    .redes-hero-title {
        font-size: 26px;
    }
    .redes-search-box {
        min-width: 100%;
        max-width: 100%;
    }
    .redes-toolbar-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .spotlight-content {
        padding: 24px 20px;
    }
    .cinema-lightbox-overlay {
        padding: 10px;
    }
    .cinema-context-panel {
        padding: 18px;
    }
}

/* ==========================================================================
   COMPREHENSIVE FRONTEND MOBILE RESPONSIVENESS (PHONES & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Typography Adjustments for Mobile */
    .hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .section-title {
        font-size: 22px !important;
    }

    /* Grids & Columns */
    .hero-grid,
    .manifesto-grid,
    .cursos-grid,
    .publications-grid,
    .news-grid,
    .redes-media-grid,
    .ensino-grid,
    .contato-grid,
    .form-row-2col {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .ensino-form-card,
    .contato-form-card {
        padding: 20px 16px !important;
    }

    /* Header Logo Sizing */
    .brand-logo-img {
        max-width: 160px !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* Responsive Tables */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Horizontal Scroll Filters & Badges */
    .filter-tabs,
    .pills-wrapper,
    .filter-pills-scroll {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px !important;
    }
    .btn-primary, .btn-secondary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 16px !important;
    }
}

/* Academic Profile External Buttons (Official Brand Button System) */
.academic-profile-btn {
    background-color: var(--primary, #00161d) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-sm, 6px) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 22, 29, 0.15)) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

.academic-profile-btn:hover {
    background-color: var(--primary-container, #0c2b35) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md, 0 8px 20px rgba(0, 22, 29, 0.25)) !important;
}

@media (max-width: 768px) {
    .academic-profiles-bar {
        flex-direction: column !important;
        width: 100% !important;
    }
    .academic-profile-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}
