/* ========== TOKENS ========== */
:root {
  --ecu-black: #000000;
  --ecu-dark: #0a0c10;
  --ecu-teal: #65B3A6;
  --cssl-blue: #367BB8;
  --cssl-dark-blue: #25348B;
  
  --bg-base: var(--ecu-dark);
  --bg-surface: #12151c;
  --bg-surface-hover: #181d27;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-teal: rgba(101, 179, 166, 0.3);
  
  --radius: 16px;
  --radius-sm: 10px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  
  --shadow-glow: 0 0 30px rgba(101, 179, 166, 0.15);
  --shadow-blue: 0 0 30px rgba(54, 123, 184, 0.15);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-muted);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cssl-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ecu-teal); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { max-width: 840px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ecu-teal); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ecu-teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--text-main); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }

.textlink { color: var(--ecu-teal); text-underline-offset: 3px; font-weight: 600; }
.grad { background: linear-gradient(90deg, var(--ecu-teal), var(--cssl-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ========== BACKGROUND CANVAS ========== */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; pointer-events: none; }

/* ========== NEW: LOADER ========== */
#loader { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity 0.6s, visibility 0.6s; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-badge { display: flex; align-items: center; gap: 5px; padding: 10px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; animation: ld-pop 0.5s ease both; }
@keyframes ld-pop { from { opacity: 0; transform: scale(0.88) translateY(12px); } to { opacity: 1; transform: none; } }
.ld-badge .cssl { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; }
.ld-badge .gz { font-family: var(--display); font-weight: 700; font-size: 22px; background: linear-gradient(135deg, var(--ecu-teal), var(--cssl-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ld-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 1.8px; }
.ld-bar { width: 180px; height: 2px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.ld-prog { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ecu-teal), var(--cssl-blue)); border-radius: 2px; animation: ld-fill 1.4s ease forwards; }
@keyframes ld-fill { 0% { width: 0%; } 35% { width: 45%; } 70% { width: 80%; } 100% { width: 100%; } }

/* ========== NAV ========== */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(10, 12, 16, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-light); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-logo { height: 32px; width: auto; object-fit: contain; filter: brightness(1.1); }
.brand-logo-square { height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-strong); }
.brand-divider { color: var(--border-strong); font-size: 1.2rem; font-weight: 400; }
.brand-name { font-family: var(--display); font-size: 1.1rem; color: var(--text-main); letter-spacing: -0.01em; margin-left: 4px; }
.brand-name em { color: var(--ecu-teal); font-style: normal; }

.menu { display: flex; align-items: center; gap: 8px; }
.menu a:not(.btn) { padding: 0.5em 0.9em; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.menu a:not(.btn):hover { color: var(--text-main); background: rgba(255,255,255,0.05); }

/* Updated Hamburger Button */
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text-main); border-radius: 2px; transition: all 0.28s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; font-family: var(--body); font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 0.85em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: all 0.25s; line-height: 1.1; }
.btn-primary { background: var(--ecu-teal); color: #000; box-shadow: 0 4px 20px rgba(101, 179, 166, 0.3); }
.btn-primary:hover { background: #75c7b9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(101, 179, 166, 0.5); }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--ecu-teal); color: var(--ecu-teal); }
.btn-small { padding: 0.6em 1.2em; font-size: 0.88rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ========== HERO ========== */
.hero { position: relative; padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 10vw, 120px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 70% 20%, rgba(101, 179, 166, 0.15), transparent 60%), radial-gradient(40% 40% at 10% 100%, rgba(54, 123, 184, 0.15), transparent 60%); pointer-events: none; }
.hero-copy { max-width: 780px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 1em; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.85rem; color: var(--text-muted); background: rgba(255,255,255,0.03); margin-bottom: 1.5em; font-weight: 500; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ecu-teal); box-shadow: 0 0 10px var(--ecu-teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 0.3em; letter-spacing: -0.03em; line-height: 1.05; }
.hero-lead { color: var(--text-muted); font-size: 1.2rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2.5rem; }
.hero-stats { list-style: none; padding: 0; margin: 3.5rem 0 0; display: flex; flex-wrap: wrap; gap: 40px; padding-top: 2em; border-top: 1px solid var(--border-light); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-size: 1.6rem; color: var(--text-main); font-weight: 700; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ========== SECTIONS ========== */
.sec { padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.sec-alt { background-color: var(--bg-surface); }
.sec-featured { background: linear-gradient(180deg, var(--bg-base) 0%, rgba(101, 179, 166, 0.03) 100%); }
.sec-title { margin-bottom: 0.6em; }

/* Mission & Vision Grid */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3rem; }
.glass-card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 40px; transition: all 0.3s; }
.glass-card:hover { transform: translateY(-4px); border-color: var(--ecu-teal); box-shadow: var(--shadow-glow); }
.glass-card .icon-glow { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 24px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-light); display: grid; place-items: center; font-size: 1.5rem; }
.glass-card .icon-glow.cyan { color: var(--ecu-teal); border-color: var(--ecu-teal); box-shadow: 0 0 15px rgba(101, 179, 166, 0.2); }
.glass-card .icon-glow.purple { color: var(--cssl-blue); border-color: var(--cssl-blue); box-shadow: 0 0 15px rgba(54, 123, 184, 0.2); }
.glass-card h3 { margin: 0 0 0.8em; font-size: 1.4rem; }
.glass-card p { margin: 0; font-size: 1rem; color: var(--text-muted); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 2rem; }
.stat-box { background: rgba(255,255,255,0.02); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 30px; text-align: center; transition: all 0.3s; }
.stat-box:hover { background: rgba(255,255,255,0.04); border-color: var(--border-teal); transform: translateY(-2px); }
.stat-box .stat-value { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 8px; }
.stat-box .stat-value span { color: var(--ecu-teal); }
.stat-box .stat-label { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ========== FEATURED EVENT ========== */
.featured-banner { background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(37, 52, 139, 0.1) 100%); border: 1px solid var(--border-strong); border-radius: 24px; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.featured-banner::before { content: ""; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(101, 179, 166, 0.15), transparent 70%); pointer-events: none; }
.featured-tag { display: inline-flex; align-items: center; gap: 8px; padding: 0.4em 1em; border-radius: 999px; background: rgba(101, 179, 166, 0.1); border: 1px solid var(--border-teal); color: var(--ecu-teal); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5em; position: relative; z-index: 1; }
.featured-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ecu-teal); box-shadow: 0 0 10px var(--ecu-teal); animation: pulse 1.6s infinite; }
.featured-name { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin: 0.1em 0 0.2em; letter-spacing: -0.03em; line-height: 1; position: relative; z-index: 1; }
.featured-tagline { color: var(--ecu-teal); font-weight: 700; font-size: 1.15rem; margin-bottom: 1.5em; position: relative; z-index: 1; }

/* Countdown */
.countdown-wrapper { margin: 2rem 0; position: relative; z-index: 1; }
.countdown { display: flex; gap: 15px; }
.time-box { background: rgba(0,0,0,0.4); border: 1px solid var(--border-strong); border-radius: 12px; padding: 15px 20px; text-align: center; min-width: 80px; backdrop-filter: blur(5px); }
.time-box span { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.time-box small { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--ecu-teal); margin-top: 5px; font-weight: 600; letter-spacing: 0.05em; }

.featured-intro { color: var(--text-muted); font-size: 1.05rem; max-width: 65ch; position: relative; z-index: 1; }
.featured-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; position: relative; z-index: 1; }
.featured-stats { display: flex; gap: 40px; margin-top: 2.5em; flex-wrap: wrap; padding-top: 1.8em; border-top: 1px solid var(--border-light); position: relative; z-index: 1; }
.featured-stats > div { display: flex; flex-direction: column; }
.featured-stats b { font-family: var(--display); font-size: 1.6rem; color: var(--text-main); font-weight: 800; line-height: 1; }
.featured-stats span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4em; font-weight: 600; }

/* Event Detail Grid */
.event-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.event-detail-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 18px; padding: 30px; }
.event-detail-card h3 { margin-top: 0; margin-bottom: 1.2em; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.mini-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-timeline li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-light); border-radius: 12px; font-size: 0.92rem; color: var(--text-main); font-weight: 500; transition: all 0.2s; }
.mini-timeline li:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.mini-timeline li span { font-family: var(--display); font-weight: 800; color: var(--cssl-blue); font-size: 0.8rem; min-width: 1.5em; }
.mini-timeline li b { margin-left: auto; color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.mini-timeline li.highlight { background: rgba(101, 179, 166, 0.08); border-color: var(--border-teal); }
.mini-timeline li.highlight span { color: var(--ecu-teal); }

.bank-details p { margin: 0 0 10px; font-size: 0.95rem; display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 5px; }
.bank-details p:last-child { border-bottom: none; }
.bank-details strong { color: var(--text-main); font-weight: 600; }
.bank-details span { color: var(--ecu-teal); font-weight: 500; }

/* ========== NEW: CALENDAR ========== */
.calendar-wrapper { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 30px; max-width: 800px; margin: 2rem auto 0; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header h3 { font-family: var(--display); font-size: 24px; color: var(--text-main); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 30px; }
.cal-day-name { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding-bottom: 10px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.02); border: 1px solid var(--border-light); border-radius: 8px; font-size: 14px; color: var(--text-main); position: relative; }
.cal-day.empty { background: transparent; border: none; }
.cal-day.has-event { background: rgba(101, 179, 166, 0.1); border-color: var(--border-teal); color: #fff; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.cal-day.has-event:hover { background: rgba(101, 179, 166, 0.2); }
.event-dot { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--ecu-teal); }
.calendar-events-list { display: flex; flex-direction: column; gap: 12px; }
.cal-event-item { display: flex; gap: 20px; padding: 15px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-light); border-radius: 10px; }
.cal-event-date { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ecu-teal); white-space: nowrap; }
.cal-event-info { display: flex; flex-direction: column; }
.cal-event-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.cal-event-desc { font-size: 12px; color: var(--text-muted); }

/* ========== TEAM ========== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 3rem; }
.team-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 30px 20px; text-align: center; transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); border-color: var(--ecu-teal); box-shadow: var(--shadow-glow); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; font-weight: 700; font-family: var(--display); border: 2px solid rgba(255,255,255,0.1); overflow: hidden; background: linear-gradient(135deg, var(--cssl-dark-blue), var(--cssl-blue)); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin: 0 0 5px; font-size: 1.1rem; color: var(--text-main); }
.team-card p { margin: 0; font-size: 0.85rem; color: var(--ecu-teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card[data-tier="patron"] { border-color: var(--cssl-blue); }
.team-card[data-tier="patron"] .team-avatar { background: linear-gradient(135deg, var(--cssl-dark-blue), var(--ecu-teal)); }
.team-card[data-tier="patron"] p { color: var(--cssl-blue); }

/* ========== TESTIMONIALS ========== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 3rem; }
.testimonial-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 30px; position: relative; }
.testimonial-card::before { content: "“"; position: absolute; top: 10px; left: 20px; font-family: var(--display); font-size: 4rem; color: rgba(101, 179, 166, 0.2); line-height: 1; }
.testimonial-card p { font-size: 1rem; color: var(--text-main); font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .author-info strong { display: block; font-size: 0.95rem; color: var(--text-main); }
.testimonial-author .author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ========== FORMS ========== */
.glass-form { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: clamp(24px, 4vw, 40px); margin-top: 2rem; }
.field { margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5em; color: var(--text-main); }
.req { color: var(--ecu-teal); }
.opt { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85em 1em; background: rgba(0,0,0,0.2); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-main); font: inherit; font-size: 0.95rem; transition: all 0.2s; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ecu-teal); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(101, 179, 166, 0.15); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2365B3A6' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2em center; padding-right: 2.5em; }
.field .hint { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.4em; }
.field .err { display: none; color: #F87171; font-size: 0.82rem; margin-top: 0.4em; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.field.has-error .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 2rem; }
.form-note { color: var(--text-muted); font-size: 0.85rem; margin: 0; flex: 1; min-width: 220px; }
.form-status { margin-top: 1.5rem; padding: 16px 20px; border-radius: 12px; font-size: 0.95rem; border: 1px solid transparent; font-weight: 500; }
.form-status.ok { background: rgba(101, 179, 166, 0.1); border-color: var(--border-teal); color: var(--ecu-teal); }
.form-status.err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: #F87171; }
.form-status.info { background: rgba(54, 123, 184, 0.1); border-color: rgba(54, 123, 184, 0.3); color: var(--cssl-blue); }

/* File drop */
.file-drop { position: relative; border: 2px dashed var(--border-strong); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s; background: rgba(0,0,0,0.1); }
.file-drop:hover { border-color: var(--ecu-teal); background: rgba(101, 179, 166, 0.05); }
.file-drop-inner { display: flex; flex-direction: column; gap: 8px; }
.file-drop strong { color: var(--text-main); }
.file-drop small { color: var(--text-muted); font-size: 0.88rem; }
.file-name { color: var(--ecu-teal); font-size: 0.9rem; font-weight: 600; margin-top: 8px; }

/* ========== FAQ ========== */
.faq { margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--border-light); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; position: relative; color: var(--text-main); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--ecu-teal); font-size: 1.6rem; font-weight: 400; transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--text-muted); padding-bottom: 24px; margin: 0; font-size: 0.98rem; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
.contact-list li { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; }
.contact-list b { display: block; font-family: var(--display); margin-bottom: 0.3em; color: var(--text-main); font-size: 1.05rem; }
.contact-list span { color: var(--text-muted); font-size: 0.9rem; }
.contact-card { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 36px; }
.contact-card h3 { margin-top: 0; }

.social-links-footer { display: flex; gap: 16px; margin-top: 2rem; }
.social-links-footer a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); color: var(--text-main); transition: all 0.2s; }
.social-links-footer a:hover { background: var(--ecu-teal); color: #000; border-color: var(--ecu-teal); transform: translateY(-3px); }

/* ========== FOOTER ========== */
.footer { background-color: var(--bg-surface); border-top: 1px solid var(--border-light); padding: 60px 0 30px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-grid p { color: var(--text-muted); margin: 0.7em 0 0; font-size: 0.92rem; }
.foot-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.foot-links a { color: var(--text-muted); font-size: 0.92rem; }
.foot-links a:hover { color: var(--ecu-teal); }
.foot-note { margin-top: 40px; border-top: 1px solid var(--border-light); padding-top: 24px; font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-note p { margin: 0; }

/* ========== ASSISTANT ========== */
.assistant-toggle { position: fixed; bottom: 24px; right: 24px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; background: var(--ecu-teal); border: none; color: #000; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(101, 179, 166, 0.4); transition: transform 0.2s, background 0.2s; }
.assistant-toggle:hover { transform: scale(1.05); background: #75c7b9; }
.assistant-toggle[aria-expanded="true"] { transform: rotate(45deg); }
.assistant { position: fixed; bottom: 96px; right: 24px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); display: flex; flex-direction: column; z-index: 79; overflow: hidden; }
.assistant-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-light); background: rgba(255,255,255,0.02); }
.assistant-head strong { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--text-main); }
.assistant-head small { color: var(--text-muted); font-size: 0.8rem; }
.assistant-close { background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.assistant-close:hover { color: var(--text-main); }
.assistant-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; }
.msg.bot { background: rgba(255,255,255,0.04); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text-main); }
.msg.user { background: var(--cssl-dark-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.msg.typing { padding: 16px; }
.msg.typing span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ecu-teal); margin-right: 5px; animation: typing 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.assistant-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-light); max-height: 110px; overflow-y: auto; }
.assistant-chips button { background: rgba(255,255,255,0.04); border: 1px solid var(--border-light); color: var(--text-muted); padding: 0.4em 0.9em; border-radius: 999px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.assistant-chips button:hover { color: var(--ecu-teal); border-color: var(--ecu-teal); background: rgba(101, 179, 166, 0.1); }
.assistant-form { display: flex; border-top: 1px solid var(--border-light); padding: 12px; background: rgba(255,255,255,0.02); }
.assistant-form input { flex: 1; background: rgba(0,0,0,0.2); border: 1px solid var(--border-strong); color: var(--text-main); padding: 0.8em 1.1em; border-radius: 999px; font: inherit; font-size: 0.92rem; outline: none; }
.assistant-form input:focus { border-color: var(--ecu-teal); }
.assistant-send { background: var(--ecu-teal); color: #000; border: none; width: 42px; height: 42px; border-radius: 50%; margin-left: 10px; font-size: 1.2rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .mission-grid, .event-detail-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  
  /* Updated Mobile Drawer */
  .menu-btn { display: flex; }
  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 40px 24px;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
  }
  .menu.open { transform: translateX(0); }
  .menu a:not(.btn) { padding: 1em; font-size: 1.2rem; border-bottom: 1px solid var(--border-light); }
  
  .foot-links { align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .featured-stats { gap: 24px; }
  .brand-name { display: none; }
  .countdown { flex-wrap: wrap; }
  .time-box { flex: 1; min-width: 60px; padding: 10px; }
  .time-box span { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .assistant { width: calc(100vw - 24px); right: 12px; bottom: 84px; height: calc(100vh - 100px); }
  .assistant-toggle { right: 16px; bottom: 16px; }
  .featured-stats { gap: 20px; }
  .event-detail-grid { gap: 16px; }
  .calendar-grid { gap: 4px; }
  .cal-day { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}