/* ============================================================
   VARIABLES GLOBALES — modificar colores y fuentes aquí
   ============================================================ */
:root {
  --navy:       #0A2240;
  --navy-mid:   #0F3060;
  --navy-light: #1A4A8A;
  --gold:       #C8A84B;
  --gold-light: #E2C97A;
  --gold-dim:   rgba(200,168,75,0.15);
  --white:      #ffffff;
  --cream:      #F7F5F0;
  --text:       #1C2B3A;
  --text-mid:   #4A5568;
  --text-light: #718096;
  --border:     rgba(10,34,64,0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }
a { color: inherit; }

/* NAV */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--navy); border-bottom: 2px solid var(--gold); }
#nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 70px; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 44px; height: 44px; border-radius: 8px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: -1px; flex-shrink: 0; }
.logo-mark.small { width: 36px; height: 36px; font-size: 12px; }
.logo-mark span { font-size: 11px; }
.logo-text strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.logo-text em { display: block; color: var(--gold); font-size: 11px; font-style: normal; }
.nav-links { display: flex; list-style: none; gap: 1.75rem; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.btn-nav { background: var(--gold); color: var(--navy); padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.btn-nav:hover { background: var(--gold-light); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* HERO */
.hero-wrap { background: var(--navy); min-height: 100vh; display: flex; align-items: center; padding-top: 70px; }
.hero { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 5rem 2rem; width: 100%; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(200,168,75,0.35); border-radius: 24px; padding: 6px 16px; margin-bottom: 2rem; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-eyebrow span:last-child { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1.5rem; }
.hero-title em { color: var(--gold); font-style: normal; display: block; }
.hero-desc { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.8; margin-bottom: 2.5rem; max-width: 480px; }
.hero-desc strong { color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 3.5rem; }
.btn-primary { background: var(--gold); color: var(--navy); padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); padding: 13px 26px; border-radius: 8px; font-size: 14px; text-decoration: none; display: inline-block; transition: border-color 0.2s; }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.hero-stats { display: flex; align-items: center; gap: 2rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.stat-n { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); font-weight: 700; line-height: 1; }
.stat-l { display: block; color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.05em; margin-top: 3px; }
.stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* Portal mockup */
.hero-visual { }
.portal-preview { background: #0F1E33; border-radius: 14px; overflow: hidden; border: 1px solid rgba(200,168,75,0.2); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.pp-header { background: #0A1628; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pp-dots { display: flex; gap: 6px; }
.pp-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.pp-url { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,0.3); }
.pp-body { display: flex; }
.pp-sidebar { width: 130px; background: #0A1628; padding: 16px 0; border-right: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.pp-menu-item { padding: 8px 16px; font-size: 11px; color: rgba(255,255,255,0.3); }
.pp-menu-item.active { color: var(--gold); background: var(--gold-dim); border-left: 2px solid var(--gold); }
.pp-main { flex: 1; padding: 20px; }
.pp-badge { display: inline-block; background: rgba(72,199,142,0.15); color: #48c78e; font-size: 10px; padding: 3px 10px; border-radius: 12px; margin-bottom: 14px; border: 1px solid rgba(72,199,142,0.3); }
.pp-title-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 18px; width: 60%; }
.pp-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 18px; }
.pp-bar { flex: 1; background: linear-gradient(to top, var(--navy-light), var(--gold)); border-radius: 4px 4px 0 0; opacity: 0.7; }
.pp-rows { display: flex; flex-direction: column; gap: 8px; }
.pp-row { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; }

/* FRANJA LEGAL */
.ley-franja { background: #07182E; border-top: 1px solid rgba(200,168,75,0.15); border-bottom: 1px solid rgba(200,168,75,0.15); }
.ley-inner { max-width: 1100px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; gap: 16px; }
.ley-icon { font-size: 22px; flex-shrink: 0; }
.ley-inner p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; }
.ley-inner strong { color: rgba(255,255,255,0.8); }

/* SECCIONES */
.section { padding: 6rem 2rem; }
.section-light { background: var(--cream); }
.section-dark { background: var(--navy); }
.section-navy { background: #07182E; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { margin-bottom: 3.5rem; max-width: 620px; }
.section-head-light { max-width: 100%; text-align: center; }
.section-label { display: inline-block; background: #DDE8F5; color: #185FA5; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 1rem; }
.section-label-gold { background: var(--gold-dim); color: var(--gold-light); }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 0.75rem; }
.section-title-light { color: #fff; }
.section-sub { color: var(--text-mid); font-size: 16px; line-height: 1.75; }
.section-sub-light { color: rgba(255,255,255,0.45); }

/* SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 1.75rem; border-top: 3px solid var(--navy); transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(10,34,64,0.1); }
.sc-icon { font-size: 2rem; margin-bottom: 1.1rem; }
.service-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.service-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 1rem; }
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sc-list li { font-size: 13px; color: var(--text-light); padding-left: 16px; position: relative; }
.sc-list li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* MUNICIPIOS */
.municipios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.municipio-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,168,75,0.2); border-radius: 12px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.municipio-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.mc-header { background: rgba(0,0,0,0.25); padding: 1.5rem; display: flex; align-items: center; gap: 14px; }
.mc-escudo { width: 50px; height: 50px; border-radius: 10px; flex-shrink: 0; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mc-info { flex: 1; }
.mc-info h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.mc-info span { color: rgba(255,255,255,0.4); font-size: 12px; }
.mc-badge { background: rgba(72,199,142,0.15); color: #48c78e; font-size: 11px; padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(72,199,142,0.3); white-space: nowrap; }
.mc-body { padding: 1.5rem; }
.mc-body p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; margin-bottom: 1.1rem; }
.mc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mc-tags span { background: rgba(200,168,75,0.1); color: var(--gold); font-size: 11px; padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(200,168,75,0.2); }
.mc-link { color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(200,168,75,0.4); padding-bottom: 2px; }
.municipios-cta { text-align: center; padding: 2.5rem; border: 1px dashed rgba(200,168,75,0.3); border-radius: 12px; }
.municipios-cta p { color: rgba(255,255,255,0.45); font-size: 15px; margin-bottom: 1.25rem; }

/* VIDEO */
.video-wrapper { max-width: 820px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(10,34,64,0.15); border: 1px solid var(--border); }

/* VALORES */
.valores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.valor-item { border: 1px solid rgba(200,168,75,0.15); border-radius: 12px; padding: 2rem 1.5rem; position: relative; overflow: hidden; transition: border-color 0.2s; }
.valor-item:hover { border-color: rgba(200,168,75,0.4); }
.vi-num { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: rgba(200,168,75,0.08); position: absolute; top: 0.5rem; right: 1rem; line-height: 1; }
.vi-icon { font-size: 2rem; margin-bottom: 1rem; }
.valor-item h3 { color: var(--gold); font-size: 16px; font-weight: 600; margin-bottom: 0.6rem; }
.valor-item p { color: rgba(255,255,255,0.4); font-size: 14px; line-height: 1.7; }

/* DOCUMENTOS */
.docs-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.docs-list-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 2.25rem; }
.docs-list { list-style: none; }
.docs-list li { display: flex; align-items: center; gap: 14px; padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-mid); }
.docs-list li:last-child { border-bottom: none; }
.docs-list li::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.docs-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; margin-bottom: 1rem; }
.dc-icon { font-size: 2rem; margin-bottom: 1rem; }
.docs-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.docs-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* CONTACTO */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contacto-info { display: flex; flex-direction: column; gap: 1.5rem; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 1.5rem; flex-shrink: 0; }
.ci-item strong { display: block; color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.ci-item p { color: rgba(255,255,255,0.55); font-size: 14px; }
.audiencias { margin-top: 0.5rem; }
.aud-label { color: rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.aud-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aud-tags span { background: rgba(200,168,75,0.1); color: var(--gold); font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(200,168,75,0.2); }
.contacto-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; color: rgba(255,255,255,0.45); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 14px; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-send { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background 0.2s; margin-top: 0.5rem; }
.btn-send:hover { background: var(--gold-light); }

/* FOOTER */
.footer { background: #050E1C; border-top: 1px solid rgba(200,168,75,0.12); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo strong { color: #fff; font-size: 15px; display: block; }
.footer-logo em { color: rgba(255,255,255,0.3); font-size: 12px; font-style: normal; display: block; margin-top: 2px; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.3); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.2); font-size: 13px; }
.footer-copy a { color: rgba(200,168,75,0.6); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 1rem 2rem; gap: 1rem; border-bottom: 1px solid rgba(200,168,75,0.2); }
  .services-grid { grid-template-columns: 1fr; }
  .municipios-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 4rem 1.25rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-div { display: none; }
}
@media (max-width: 480px) {
  .valores-grid { grid-template-columns: 1fr; }
}
