/* Modern Tech Design System */
:root {
    /* Colors */
    --bg-dark: #070c14;
    --bg-card: #0f1724;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --brand-blue: #0958d9;
    --brand-blue-hover: #003eb3;
    --brand-cyan: #06b6d4;
    --nav-bg: #ffffff;
    --nav-text: #0f172a;
    --border-light: rgba(255, 255, 255, 0.1);
    --mesh-color: rgba(6, 182, 212, 0.05);
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Light Mode Variables */
body.light-mode {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-primary: #020617;
    --text-secondary: #334155;
    --border-light: rgba(15, 23, 42, 0.08);
    --mesh-color: rgba(9, 88, 217, 0.05);
    background-image: url('assets/netweb_lm2.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

body.light-mode #network-bg {
    opacity: 0.25;
}

body.light-mode .hero-bg img {
    display: none;
}

body.light-mode .hero-overlay {
    background: transparent;
}



body.light-mode .arch-center-box {
    box-shadow: 0 10px 30px rgba(9, 88, 217, 0.1);
}

body.light-mode .reg-card {
    box-shadow: 0 0 30px rgba(9, 88, 217, 0.1);
    background: #ffffff;
}

body.light-mode .footer {
    background-color: #f1f5f9;
}

body.light-mode .footer-brand h3 {
    color: var(--brand-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(7, 12, 20, 0.7), rgba(7, 12, 20, 0.7)),
        url('assets/hero_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--bg-dark);
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 88, 217, 0.3);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 1rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-text);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.moon-icon { display: none; }
body.light-mode .sun-icon { display: none; }
body.light-mode .moon-icon { display: block; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--nav-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--brand-cyan);
}

.nav-menu a.active::after, .nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-cyan);
    border-radius: 2px;
}

.btn-nav {
    background-color: var(--brand-blue);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: var(--brand-blue-hover);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    display: none;
}

.hero-overlay {
    background: transparent;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    color: var(--brand-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

body.light-mode .hero-badge {
    background-color: rgba(9, 88, 217, 0.1);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

body.light-mode .hero-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    color: #020617;
    font-weight: 800;
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: textGlowIn 900ms cubic-bezier(0.2, 0, 0, 1) both;
    animation-delay: calc(var(--i) * 150ms);
}

@keyframes textGlowIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
        text-shadow: 0 0 0 rgba(6, 182, 212, 0); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.4); 
    }
}

body.light-mode .animated-text {
    animation-name: textInLight;
}

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

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 1.5rem 2.5rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 0.8s both;
}

body.light-mode .countdown-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(9, 88, 217, 0.1);
    box-shadow: 0 10px 25px rgba(9, 88, 217, 0.05);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-cyan);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

body.light-mode .countdown-number {
    color: var(--brand-blue);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-divider {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

body.light-mode .countdown-divider {
    color: rgba(9, 88, 217, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 3rem;
}

body.light-mode .hero-subtitle {
    color: #1e293b;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Sections Global */
section:not(.hero) {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    color: var(--brand-cyan);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

body.light-mode .section-tag {
    color: var(--brand-blue);
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Arquitectura 4.0 */
.architecture {
    background-color: transparent;
}

body.light-mode .architecture {
    background-color: transparent;
}

.arch-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.arch-center-box {
    background: linear-gradient(135deg, #1e3a8a, var(--brand-blue));
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(9, 88, 217, 0.2);
    border: 1px solid var(--brand-cyan);
}

.arch-center-box p {
    font-size: 1.25rem;
    line-height: 1.8;
}

.arch-center-box strong {
    color: #fff;
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.arch-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    max-height: 380px; /* Base height when closed */
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.arch-card.expanded {
    max-height: 800px; /* Safe limit to fit expanded accordion content */
}

body.light-mode .arch-card {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(5px);
}

.arch-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.arch-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.arch-icon svg {
    width: 30px;
    height: 30px;
}

.arch-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.arch-card .arch-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Close Card Button */
.close-card-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 10;
}

.arch-card.expanded .close-card-btn {
    opacity: 1;
    pointer-events: auto;
}

.close-card-btn:hover {
    color: var(--brand-cyan);
}

/* Slide Down vertical transition */
.slide-down-container {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    width: 100%;
    overflow: hidden;
}

.arch-card.expanded .slide-down-container {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1rem;
}

.slide-inner {
    min-height: 0;
}

/* Infographic design styling */
.infographic-container-wrapper {
    background: rgba(7, 12, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

body.light-mode .infographic-container-wrapper {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.05);
}

.infographic-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 90%;
    text-align: center;
}

.info-bubble.highlighted {
    border-color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.08);
    color: var(--brand-cyan);
    font-weight: 700;
}

.info-flow-line {
    color: var(--brand-cyan);
    font-size: 1.2rem;
    line-height: 1;
}

.infographic-caption {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Expand Trigger Button */
.expand-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--brand-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.trigger-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.arch-card.expanded .trigger-arrow {
    transform: rotate(180deg);
}

/* Make sure cards keep centered layout when expanded */
.arch-card.expanded {
    grid-column: span 1; /* Force vertical stretch only, no layout breaking grid span changes */
    border-color: var(--brand-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}




/* Evento Central */
.evento {
    background-color: var(--bg-dark);
}

.event-days {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-day-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.2);
}

.event-day-card.reverse .day-image {
    order: 2;
}

.event-day-card.reverse .day-content {
    order: 1;
}

.day-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-day-card:hover .day-image img {
    transform: scale(1.05);
}

.day-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.day-content h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--brand-cyan);
    font-weight: 700;
    background: linear-gradient(to right, #06b6d4, #0958d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .day-content h3 {
    background: linear-gradient(to right, #0958d9, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.day-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* Ubicacion */
.location {
    background-color: transparent;
}

body.light-mode .location {
    background-color: transparent;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.location-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-image:hover img {
    transform: scale(1.05);
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-weight: 600;
    font-size: 1.25rem;
}

/* Registration / Waitlist */
.waitlist {
    background-color: transparent;
}

body.light-mode .waitlist {
    background-color: transparent;
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-card);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.reg-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.reg-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefits-list svg {
    color: var(--brand-cyan);
    width: 20px;
    height: 20px;
}

.reg-card {
    background: #0b111a;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--brand-blue);
    box-shadow: 0 0 30px rgba(9, 88, 217, 0.15);
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.badge-early {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--brand-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.price-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reg-form input, .reg-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.reg-form input:focus, .reg-form select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background-color: transparent;
}

body.light-mode .footer {
    background-color: transparent;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
    color: var(--brand-cyan);
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links a, .footer-links p {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.socials {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .registration-wrapper,
    .location-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .event-day-card {
        grid-template-columns: 1fr;
    }
    .arch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
}

/* Premium UI Enhancement Classes */
.premium-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Spinner Animation for Button */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Shimmer Button Effect overlay */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shimmer-btn 4s infinite linear;
}

@keyframes shimmer-btn {
    0% { left: -60%; }
    15% { left: 120%; }
    100% { left: 120%; }
}

/* Pilar Modal and Premium Infographic Styles */
.pilar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 12, 20, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.pilar-modal.show {
    display: flex;
}

.pilar-modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
    padding: 2.5rem;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.light-mode .pilar-modal-content {
    background: #ffffff;
    border-color: rgba(9, 88, 217, 0.2);
    box-shadow: 0 20px 40px rgba(9, 88, 217, 0.1);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--brand-cyan);
}

.modal-body-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .modal-body-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.modal-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-badge {
    align-self: flex-start;
    background: rgba(6, 182, 212, 0.1);
    color: var(--brand-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-highlights {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--brand-cyan);
    padding: 1rem;
    border-radius: 4px;
}

body.light-mode .modal-highlights {
    background: rgba(9, 88, 217, 0.02);
}

.modal-highlights h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modal-highlights ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-highlights li::before {
    content: "•";
    color: var(--brand-cyan);
    font-weight: bold;
}

/* Premium Infographic Container Mockup */
.modal-infographic-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-infographic {
    background: rgba(7, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

body.light-mode .premium-infographic {
    background: #f8fafc;
    border-color: rgba(9, 88, 217, 0.08);
}

.premium-infographic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.info-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-cyan);
    letter-spacing: 2px;
    z-index: 2;
}

.info-graphic-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
    z-index: 2;
}

.graphic-node {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    width: 85%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

body.light-mode .graphic-node {
    background: #ffffff;
    border-color: rgba(9, 88, 217, 0.15);
}

.graphic-node.active {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.node-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.node-sub {
    font-size: 0.75rem;
    color: var(--brand-cyan);
    margin-top: 0.25rem;
    display: block;
}

.graphic-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--brand-cyan), rgba(255,255,255,0.1));
}

.info-footer {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
    z-index: 2;
}

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


