/* =====================================================
   FLISOL Colombia 2026 — Design System
   Paleta institucional extraída de la pieza gráfica
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Colores institucionales FLISOL */
    --primary: #1B2A4A;
    --primary-dark: #0F1B33;
    --primary-light: #2D5F9A;
    --primary-rgb: 27, 42, 74;
    
    --accent: #E8891D;
    --accent-light: #F5A623;
    --accent-dark: #C97316;
    --accent-rgb: 232, 137, 29;
    
    --accent-gold: #D4A843;
    --info: #4A90D9;
    --info-light: #6BA5E7;
    
    /* Semánticos */
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    /* Superficies */
    --surface: #FFFFFF;
    --surface-alt: #F4F6F9;
    --surface-card: #FFFFFF;
    --surface-dark: #1E293B;
    
    /* Texto */
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-inverse: #FFFFFF;
    
    /* Bordes */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(232, 137, 29, 0.3);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Bordes redondeados */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Container */
    --container-max: 1280px;
    --container-narrow: 960px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

/* ---- Container ---- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: var(--container-narrow); }

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 27, 51, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(15, 27, 51, 0.98); box-shadow: var(--shadow-lg); }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 var(--space-lg); height: 70px;
}
.navbar-logo { display: flex; align-items: center; gap: var(--space-sm); }
.navbar-logo img { height: 40px; }
.navbar-logo span {
    font-family: var(--font-heading); font-weight: 800;
    font-size: 1.25rem; color: var(--text-inverse);
    background: linear-gradient(135deg, var(--text-inverse), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.navbar-menu { display: flex; align-items: center; gap: var(--space-xs); list-style: none; }
.navbar-menu a {
    display: block; padding: 8px 14px; color: rgba(255,255,255,0.8);
    font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--text-inverse); background: rgba(255,255,255,0.1);
}
.navbar-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
    color: var(--text-inverse) !important; font-weight: 600 !important;
    padding: 10px 20px !important; border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 10px rgba(232, 137, 29, 0.3);
}
.navbar-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* Mobile menu toggle */
.navbar-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-inverse);
}
.navbar-toggle span {
    display: block; width: 24px; height: 2px; background: currentColor;
    margin: 6px 0; transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a3a6b 100%);
    overflow: hidden; padding-top: 70px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23grid)" width="100" height="100"/></svg>');
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -50%; right: -20%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,137,29,0.08) 0%, transparent 70%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 900px; margin: 0 auto; padding: var(--space-2xl);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    background: rgba(232,137,29,0.15); border: 1px solid rgba(232,137,29,0.3);
    padding: 8px 20px; border-radius: var(--radius-full);
    color: var(--accent-light); font-size: 0.85rem; font-weight: 600;
    margin-bottom: var(--space-lg); letter-spacing: 0.5px; text-transform: uppercase;
    animation: fadeInDown 0.8s ease;
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 900;
    color: var(--text-inverse); margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem); color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-2xl); max-width: 700px; margin-left: auto; margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-actions {
    display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg); margin-top: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat {
    text-align: center; padding: var(--space-md);
    border-top: 2px solid rgba(232,137,29,0.3);
}
.hero-stat-value {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    color: var(--accent); display: block;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 12px 28px; font-size: 0.95rem; font-weight: 600;
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
    text-decoration: none; font-family: var(--font-primary);
    line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-inverse); box-shadow: 0 4px 15px rgba(232,137,29,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: var(--text-inverse); }
.btn-secondary {
    background: transparent; border-color: rgba(255,255,255,0.3);
    color: var(--text-inverse);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); color: var(--text-inverse); }
.btn-outline {
    background: transparent; border-color: var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--text-inverse); }
.btn-dark { background: var(--primary); color: var(--text-inverse); }
.btn-dark:hover { background: var(--primary-dark); color: var(--text-inverse); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* ---- Section ---- */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}
.section-dark {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-inverse);
}
.section-dark h2, .section-dark h3 { color: var(--text-inverse); }
.section-alt { background: var(--surface-alt); }
.section-header {
    text-align: center; margin-bottom: var(--space-3xl);
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header .divider {
    width: 60px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: var(--space-md) auto;
}

/* ---- Cards ---- */
.card {
    background: var(--surface-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: var(--space-xl); }
.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}
.card-footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* Sede Card */
.sede-card {
    position: relative; border-top: 4px solid var(--accent);
}
.sede-card .sede-color-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.sede-card .sede-city {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    color: var(--primary); margin-bottom: var(--space-sm);
}
.sede-card .sede-date {
    display: flex; align-items: center; gap: var(--space-sm);
    color: var(--accent); font-weight: 600; margin-bottom: var(--space-md);
}
.sede-card .sede-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-sm); }
.sede-card .sede-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ---- Grid ---- */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---- Agenda ---- */
.agenda-timeline { position: relative; }
.agenda-item {
    display: grid; grid-template-columns: 100px 1fr auto; gap: var(--space-lg);
    padding: var(--space-lg) 0; border-bottom: 1px solid var(--border);
    transition: var(--transition);
    align-items: center;
}
.agenda-speakers-photos { display: flex; align-items: center; gap: -15px; }
.agenda-speaker-thumb {
    width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--surface);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-fast);
    margin-left: -15px; background: var(--surface);
}
.agenda-speaker-thumb:first-child { margin-left: 0; }
.agenda-speaker-thumb:hover { transform: translateY(-3px) scale(1.1); z-index: 10; border-color: var(--accent); }
.agenda-speaker-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agenda-item:hover { background: var(--surface-alt); padding-left: var(--space-md); border-radius: var(--radius); }
.agenda-time {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
    color: var(--primary); white-space: nowrap; padding-top: 2px;
}
.agenda-content h4 { margin-bottom: var(--space-xs); }
.agenda-meta {
    display: flex; gap: var(--space-md); flex-wrap: wrap;
    font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-xs);
}
.agenda-meta span { display: flex; align-items: center; gap: 4px; }

/* Badge tipos actividad */
.badge {
    display: inline-flex; align-items: center; padding: 4px 12px;
    font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-panel { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.badge-taller { background: rgba(232,137,29,0.1); color: var(--accent); }
.badge-conferencia { background: rgba(74,144,217,0.1); color: var(--info); }
.badge-apertura { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-cierre { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-certificado { background: rgba(212,168,67,0.12); color: var(--accent-gold); }

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
    display: block; font-weight: 600; font-size: 0.9rem;
    color: var(--text); margin-bottom: var(--space-sm);
}
.form-control {
    width: 100%; padding: 12px 16px; font-size: 0.95rem;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font-family: var(--font-primary); transition: var(--transition-fast);
}
.form-control:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 95, 154, 0.15);
}
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer h4 { color: var(--text-inverse); margin-bottom: var(--space-md); font-size: 1.1rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); }
.footer-logo span {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--text-inverse), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { font-size: 0.9rem; }
.footer-bottom {
    margin-top: var(--space-2xl); padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; flex-wrap: wrap; gap: var(--space-md);
}

/* ---- Alerts ---- */
.alert {
    padding: var(--space-md) var(--space-lg); border-radius: var(--radius);
    margin-bottom: var(--space-lg); font-size: 0.9rem;
    border-left: 4px solid transparent; display: flex; align-items: center; gap: var(--space-md);
}
.alert-success { background: rgba(34,197,94,0.08); border-color: var(--success); color: #166534; }
.alert-danger { background: rgba(239,68,68,0.08); border-color: var(--danger); color: #991B1B; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: #92400E; }
.alert-info { background: rgba(74,144,217,0.08); border-color: var(--info); color: #1E40AF; }

/* ---- QR Scanner ---- */
.qr-result {
    padding: var(--space-xl); border-radius: var(--radius-lg);
    text-align: center; font-size: 1.2rem; font-weight: 700;
    animation: fadeIn 0.3s ease;
}
.qr-result.valid { background: rgba(34,197,94,0.1); border: 2px solid var(--success); color: #166534; }
.qr-result.invalid { background: rgba(239,68,68,0.1); border: 2px solid var(--danger); color: #991B1B; }
.qr-result.duplicate { background: rgba(245,158,11,0.1); border: 2px solid var(--warning); color: #92400E; }

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--surface-alt); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
tr:hover td { background: rgba(74,144,217,0.03); }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Floating particles (decorative) */
.floating-dot {
    position: absolute; border-radius: 50%;
    background: rgba(232, 137, 29, 0.15);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.gap-1 { gap: var(--space-md); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-menu { 
        display: none; position: fixed; top: 70px; left: 0; right: 0;
        background: rgba(15, 27, 51, 0.98); flex-direction: column;
        padding: var(--space-lg); gap: var(--space-xs);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-menu.open { display: flex; }
    .navbar-toggle { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-content { padding: var(--space-xl) var(--space-md); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    
    .agenda-item { grid-template-columns: 80px 1fr; gap: var(--space-md); }
    
    .section { padding: var(--space-2xl) 0; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 var(--space-md); }
    .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---- Ponente Cards ---- */
.ponente-card-simple {
    background: var(--surface-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.ponente-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.ponente-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.ponente-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ponente-card-simple h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}
.ponente-entidad {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ponente-bio-short {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
