:root {
  --navy: #1B3A6B;
  --blue: #1E4DA1;
  --blue-mid: #2A5FAF;
  --gold: #E8A020;
  --gold-light: #F5C050;
  --cream: #FAFAF7;
  --gray-light: #F0F2F5;
  --gray-mid: #8A93A2;
  --gray-dark: #3D4452;
  --text: #1A1F2E;
  --green: #2D7A4F;
  --red: #C0392B;
  --shadow-sm: 0 2px 8px rgba(27,58,107,0.08);
  --shadow-md: 0 6px 24px rgba(27,58,107,0.12);
  --shadow-lg: 0 16px 48px rgba(27,58,107,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--cream); line-height: 1.6; overflow-x: hidden; }

/* LANG */
body.lang-es .en { display: none !important; }
body.lang-es .es { display: block !important; }
body.lang-es .es-inline { display: inline !important; }
.es { display: none; }
.es-inline { display: none; }

/* LANG BAR */
.lang-bar { background: var(--navy); padding: 6px 0; text-align: right; }
.lang-bar .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); font-family: 'DM Sans',sans-serif; font-size: 12px; font-weight: 500; padding: 3px 12px; border-radius: 20px; cursor: pointer; transition: all 0.2s; margin-left: 6px; }
.lang-btn.active, .lang-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* NOTICE */
.notice-banner { background: linear-gradient(90deg,#C0392B,#E74C3C); color: white; text-align: center; padding: 10px 24px; font-size: 14px; font-weight: 500; }
.notice-banner a { color: #FFD9D9; }

/* HEADER */
header { background: white; box-shadow: 0 2px 12px rgba(27,58,107,0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-wrap img { height: 48px; width: auto; }
.logo-text .org-name { font-family: 'Lora',serif; font-weight: 700; font-size: 17px; color: var(--navy); display: block; }
.logo-text .org-sub { font-size: 11px; color: var(--gray-mid); display: block; letter-spacing: 0.02em; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--gray-dark); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--blue); background: var(--gray-light); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 600 !important; padding: 10px 20px !important; border-radius: 8px !important; margin-left: 8px; }
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; display: block; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: white; z-index: 99; padding: 24px; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--navy); text-decoration: none; font-size: 18px; font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--gray-light); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 60px 0; }
.page-hero .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.4); font-size: 13px; }
.page-hero h1 { font-family: 'Lora',serif; font-size: clamp(28px,4vw,48px); color: white; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 17px; font-weight: 300; max-width: 600px; }
.page-hero .hero-icon { font-size: 48px; margin-bottom: 16px; }

/* SECTION */
section { padding: 72px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-label::before { content: ''; flex: none; width: 28px; height: 2px; background: var(--gold); }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-family: 'Lora',serif; font-size: clamp(24px,3vw,36px); color: var(--navy); font-weight: 700; line-height: 1.2; }
.section-header p { color: var(--gray-mid); font-size: 16px; margin-top: 12px; max-width: 600px; font-weight: 300; }

/* CARDS */
.card { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid rgba(27,58,107,0.06); }
.card h3 { font-family: 'Lora',serif; font-size: 20px; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.card p { font-size: 15px; color: var(--gray-dark); line-height: 1.7; font-weight: 300; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }

/* INFO BOX */
.info-box { background: rgba(30,77,161,0.06); border: 1px solid rgba(30,77,161,0.15); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.info-box h4 { font-family: 'Lora',serif; color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.info-box p, .info-box li { font-size: 14px; color: var(--gray-dark); line-height: 1.7; }
.info-box ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.warn-box { background: #FFF8EC; border: 1px solid #F5C050; border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.warn-box p { font-size: 14px; color: #7A5000; }
.status-closed { background: #FFF5F5; border: 1px solid #FCA5A5; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.status-closed p { font-size: 14px; color: var(--red); font-weight: 500; }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 16px rgba(232,160,32,0.35); display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: 'DM Sans',sans-serif; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 10px; text-decoration: none; border: 2px solid var(--blue); transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: white; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: 'DM Sans',sans-serif; }
.btn-dark:hover { background: #0F2347; transform: translateY(-2px); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }

/* CHECKLIST */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--gray-dark); line-height: 1.6; }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; font-size: 14px; }

/* STATS BAR */
.stats-bar { background: var(--blue); padding: 32px 0; }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num { font-family: 'Lora',serif; font-size: 36px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 60px 0; text-align: center; }
.cta-band h2 { font-family: 'Lora',serif; font-size: clamp(24px,3vw,36px); color: white; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 32px; font-weight: 300; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FORM */
.form-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #E2E6EE; border-radius: 8px; font-size: 14px; font-family: 'DM Sans',sans-serif; color: var(--text); background: var(--cream); transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: white; }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit { width: 100%; background: var(--blue); color: white; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 10px; border: none; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: all 0.2s; margin-top: 8px; }
.btn-submit:hover { background: var(--navy); transform: translateY(-1px); }
.form-success { display: none; background: #F0FDF4; border: 1.5px solid #86EFAC; border-radius: 10px; padding: 16px; color: var(--green); font-size: 14px; font-weight: 500; text-align: center; margin-top: 12px; }
.form-error { display: none; background: #FFF5F5; border: 1.5px solid #FCA5A5; border-radius: 10px; padding: 16px; color: var(--red); font-size: 14px; margin-top: 12px; }

/* FOOTER */
footer { background: #0D1F3C; color: rgba(255,255,255,0.7); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-tagline { font-style: italic; color: rgba(255,255,255,0.35); font-size: 12px; margin-top: 10px; }
footer h4 { color: white; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; transition: color 0.2s; }
footer ul li a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 8px; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 24px; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.csbg-notice { background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 24px; text-align: center; }
.csbg-notice p { font-size: 11px; color: rgba(255,255,255,0.3); max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* FADE ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; padding: 48px 24px !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
