:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --orange: #e65100;
  --orange-hover: #ff7043;
  --orange-light: #fff3e0;
  --text-light: #f5f5f5;
  --text-dark: #212121;
  --muted: #757575;
  --line: #e0e0e0;
  --line-dark: #333333;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-dark); font-family: Arial, Helvetica, sans-serif; background: #fff; line-height: 1.55; }
a { text-decoration: none; color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }

/* Header & Topbar */
.topbar { background: var(--bg-dark); color: #ccc; font-size: 12px; border-bottom: 2px solid var(--orange); }
.topbar-inner { height: 34px; display: flex; justify-content: space-between; align-items: center; }
.toplinks { display: flex; gap: 22px; }
.toplinks a:hover { color: var(--orange-hover); }

.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: auto; }
.brand strong { display: block; letter-spacing: 1.5px; font-size: 16px; color: var(--bg-dark); }
.brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 700; }
.main-nav a:hover { color: var(--orange); }
.nav-cta { background: var(--orange); padding: 10px 16px; border-radius: 4px; color: #fff !important; }
.nav-cta:hover { background: var(--orange-hover) !important; }
.menu-toggle { display: none; border: 0; background: none; font-size: 25px; cursor: pointer; }

/* Hero Section */
.hero { position: relative; min-height: 520px; background: var(--bg-dark); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(230,81,0,0.25), transparent 40%), linear-gradient(135deg, #0d0d0d, #242424); }
.hero-content { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 650px; padding: 50px 0; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 2px; font-weight: 800; color: var(--orange); text-transform: uppercase; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -1.5px; margin: 15px 0; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-copy p { color: #ccc; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 25px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 4px; font-weight: 800; font-size: 13px; cursor: pointer; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.hero-card { width: 280px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); padding: 24px; border-radius: 6px; }
.card-label { font-size: 10px; letter-spacing: 2px; color: var(--orange); font-weight: bold; }
.hero-card strong { display: block; font-size: 20px; margin-top: 10px; }
.hero-card p { color: #aaa; font-size: 13px; }
.hero-card a { color: var(--orange); font-weight: 700; font-size: 12px; }

/* Quick Links */
.quick-links { background: var(--orange); color: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-grid a { padding: 20px; border-right: 1px solid rgba(255,255,255,0.2); display: grid; grid-template-columns: 35px 1fr; }
.quick-grid a:last-child { border: 0; }
.quick-grid span { grid-row: 1/3; font-size: 14px; font-weight: 900; opacity: 0.8; }
.quick-grid strong { font-size: 14px; display: block; }
.quick-grid small { font-size: 11px; opacity: 0.9; }

/* Sections */
.section { padding: 80px 0; }
.light { background: #f9f9f9; }
.dark { background: var(--bg-dark); color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.section h2 { font-size: clamp(26px, 3.5vw, 40px); line-height: 1.1; margin: 10px 0 20px; letter-spacing: -1px; }
.section p { color: var(--muted); }
.dark p { color: #aaa; }

.highlight-box { background: #fff; border-left: 4px solid var(--orange); padding: 20px; border-radius: 0 6px 6px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.highlight-box h3 { margin-top: 0; font-size: 18px; color: var(--bg-dark); }
.highlight-box ul { padding-left: 18px; margin-bottom: 0; font-size: 13px; color: #444; }

/* Team Section */
.subsection-title { font-size: 20px; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin: 30px 0 20px; }
.subsection-title.orange { border-color: var(--orange); color: var(--orange); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.team-card { background: #fff; border: 1px solid var(--line); padding: 15px; text-align: center; border-radius: 6px; }
.photo-placeholder { width: 100%; height: 140px; background: #e9e9e9; border: 2px dashed #ccc; display: grid; place-items: center; border-radius: 4px; margin-bottom: 12px; color: #888; font-size: 12px; }
.team-card h4 { font-size: 13px; margin: 5px 0; color: var(--bg-dark); }
.team-card p { font-size: 11px; color: var(--orange); font-weight: bold; margin: 0; }

/* Ramos */
.ramos-detailed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ramo-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 25px; border-radius: 4px; }
.ramo-box h3 { font-size: 22px; margin: 10px 0; color: var(--bg-dark); }
.ramo-box .age { font-size: 11px; font-weight: 800; color: var(--orange); letter-spacing: 1px; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-grid article { background: var(--bg-card); padding: 25px; border-radius: 6px; border: 1px solid var(--line-dark); }
.project-grid article.in-analysis { border-style: dashed; opacity: 0.8; }
.project-grid span { font-size: 12px; color: var(--orange); font-weight: 900; }
.project-grid h3 { font-size: 18px; margin: 10px 0; color: #fff; }

/* Table Transparencia */
.table-responsive { overflow-x: auto; margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.05); }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.data-table th { background: #f0f0f0; font-weight: bold; color: var(--bg-dark); }
.badge { padding: 4px 8px; border-radius: 3px; font-size: 10px; font-weight: bold; background: #eee; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.btn-sm { display: inline-block; padding: 4px 10px; background: var(--orange); color: #fff; font-size: 11px; border-radius: 3px; font-weight: bold; }
.btn-sm.disabled { background: #ccc; cursor: not-allowed; }

/* Downloads */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.docs-grid a { background: #fff; border: 1px solid var(--line); padding: 18px 22px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.docs-grid a:hover { border-color: var(--orange); }
.docs-grid strong { display: block; font-size: 14px; color: var(--bg-dark); }
.docs-grid small { color: var(--muted); font-size: 11px; }

/* CTA & Footer */
.cta { background: var(--orange); color: #fff; padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-size: 32px; margin: 5px 0; }
.cta p { color: #fff3e0; margin: 0; }
.btn-light { background: #fff; color: var(--orange); }
.btn-light:hover { background: #f0f0f0; }

.footer { background: var(--bg-dark); color: #aaa; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; color: #fff; }
.footer-logo { height: 40px; width: auto; }
.footer h4 { color: #fff; margin: 0 0 15px; font-size: 14px; }
.footer p, .footer a { font-size: 12px; color: #aaa; }
.footer a { display: block; margin: 6px 0; }
.footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; display: flex; justify-content: space-between; font-size: 11px; }

/* Responsivo */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 116px; left: 20px; right: 20px; background: #fff; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); flex-direction: column; align-items: stretch; z-index: 10; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .two-col, .ramos-detailed, .project-grid, .docs-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: 1fr; }
}