/* ============================================================
   Pro Aeropuerto Ñuble — Tema Cielo / Aero
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Cielo */
  --sky-deep:   #0a1628;
  --sky-night:  #0d2b5e;
  --sky-dark:   #1565c0;
  --sky:        #1976d2;
  --sky-mid:    #2196f3;
  --sky-light:  #4fc3f7;
  --sky-pale:   #81d4fa;
  --sky-dawn:   #e1f5fe;
  --cloud:      #f0f7ff;
  --white:      #ffffff;
  /* Accent */
  --gold:       #ffc107;
  --gold-d:     #e6a800;
  --orange:     #ff6f00;
  /* Texto */
  --text:       #1a2744;
  --text2:      #4a5a78;
  --text3:      #8899bb;
  /* UI */
  --border:     #d0e4f7;
  --shadow:     0 4px 24px rgba(13,43,94,.12);
  --shadow-lg:  0 12px 48px rgba(13,43,94,.18);
  --radius:     8px;
  --radius-lg:  16px;
  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Open Sans', sans-serif;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--sky-deep);
  padding: 8px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.55); transition: color .2s; }
.topbar a:hover { color: var(--sky-pale); }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.socio-badge { background: var(--sky-dark); color: var(--sky-pale); padding: 3px 12px; border-radius: 20px; font-weight: 600; }

/* ── HEADER ── */
.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(13,43,94,.08);
}
.header-inner { display: flex; align-items: center; padding: 14px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-night));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.logo-text .org { font-family: var(--font-h); font-size: 1.1rem; font-weight: 900; color: var(--sky-night); letter-spacing: .03em; line-height: 1.2; }
.logo-text .region { font-size: .65rem; color: var(--text3); letter-spacing: .15em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius);
  font-family: var(--font-h); font-size: .82rem; font-weight: 600;
  color: var(--text2); letter-spacing: .02em;
  transition: var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--sky-dark); background: var(--sky-dawn); }
.nav-cta {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-night));
  color: white; padding: 10px 22px; border-radius: 24px;
  font-family: var(--font-h); font-size: .82rem; font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(21,101,192,.35);
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,.45); }
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; transition: var(--transition); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--sky-deep) 0%, var(--sky-night) 40%, #1a3f8f 70%, var(--sky) 100%);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 100px 0 60px;
}
/* Nubes SVG fondo */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 60%, rgba(79,195,247,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(129,212,250,.06) 0%, transparent 50%);
}
/* Estrellas/puntos de luz */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 1px at 15% 25%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(circle 1px at 35% 15%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 60% 20%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(circle 1px at 80% 10%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 35%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 70% 55%, rgba(255,255,255,.25) 0%, transparent 100%),
    radial-gradient(circle 1px at 25% 70%, rgba(255,255,255,.2) 0%, transparent 100%);
  pointer-events: none;
}
/* Avión decorativo */
.hero-plane {
  position: absolute; right: 5%; top: 30%;
  font-size: clamp(80px,15vw,160px);
  opacity: .07; transform: rotate(-15deg);
  pointer-events: none; user-select: none;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:rotate(-15deg) translateY(0)} 50%{transform:rotate(-15deg) translateY(-20px)} }

.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(79,195,247,.15); border: 1px solid rgba(79,195,247,.3);
  color: var(--sky-pale); padding: 6px 16px; border-radius: 24px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.05;
  color: white; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em { font-style: normal; color: var(--sky-pale); }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--sky-light), var(--sky-pale));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 36px; font-weight: 300; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary {
  background: white; color: var(--sky-night);
  padding: 15px 32px; border-radius: 30px;
  font-family: var(--font-h); font-weight: 800; font-size: .9rem; letter-spacing: .05em;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.btn-hero-outlined {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.5);
  padding: 13px 28px; border-radius: 30px;
  font-family: var(--font-h); font-weight: 700; font-size: .9rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-outlined:hover { border-color: white; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 36px; margin-top: 52px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-h); font-size: 2.2rem; font-weight: 900; color: var(--sky-pale); line-height: 1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* ── SECTIONS ── */
section { padding: 80px 0; }
.section-label { font-family: var(--font-h); font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--sky-dark); }
.section-title { font-family: var(--font-h); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 900; color: var(--sky-night); margin-bottom: 16px; line-height: 1.15; }
.section-sub { font-size: 1rem; color: var(--text2); max-width: 580px; line-height: 1.8; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: var(--transition); position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--sky-light),var(--sky-pale)); transform: scaleX(0); transition: transform .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sky-pale); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sky-dawn); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.card h3 { font-family: var(--font-h); font-size: 1.1rem; font-weight: 700; color: var(--sky-night); margin-bottom: 10px; }
.card p { color: var(--text2); font-size: .9rem; line-height: 1.8; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius); font-family: var(--font-h); font-weight: 700; font-size: .85rem; letter-spacing: .04em; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg,var(--sky-dark),var(--sky-night)); color: white; box-shadow: 0 4px 16px rgba(21,101,192,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,.4); }
.btn-outlined { background: transparent; color: var(--sky-dark); border: 2px solid var(--sky-dark); }
.btn-outlined:hover { background: var(--sky-dawn); }
.btn-gold { background: linear-gradient(135deg,var(--gold),var(--gold-d)); color: #1a0800; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-white { background: white; color: var(--sky-night); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-lg { padding: 14px 32px; font-size: .95rem; border-radius: 30px; }
.btn-sm { padding: 7px 14px; font-size: .78rem; }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-family: var(--font-h); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.form-control { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-b); font-size: .95rem; color: var(--text); transition: var(--transition); background: white; }
.form-control:focus { outline: none; border-color: var(--sky-mid); box-shadow: 0 0 0 3px rgba(33,150,243,.1); }
.form-control::placeholder { color: var(--text3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.full-col { grid-column: 1 / -1; }

/* ── ALERT ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; border-left: 4px solid; }
.alert-success { background: #e8f5e9; border-color: #4caf50; color: #1b5e20; }
.alert-error   { background: #ffebee; border-color: #f44336; color: #b71c1c; }
.alert-info    { background: var(--sky-dawn); border-color: var(--sky-mid); color: var(--sky-night); }
.alert-warning { background: #fff8e1; border-color: var(--gold); color: #6d4c00; }

/* ── TABS DIRECTIVA ── */
.directiva-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.directiva-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.directiva-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dir-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,var(--sky-dark),var(--sky-night)); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; color: white; font-family: var(--font-h); font-weight: 700; }
.dir-nombre { font-family: var(--font-h); font-weight: 700; color: var(--sky-night); margin-bottom: 4px; }
.dir-cargo { font-size: .8rem; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 24px; }
.news-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img { height: 180px; background: linear-gradient(135deg,var(--sky-dark),var(--sky-night)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.news-body { padding: 20px 22px; }
.news-cat { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 8px; }
.news-title { font-family: var(--font-h); font-weight: 700; color: var(--sky-night); margin-bottom: 10px; line-height: 1.3; }
.news-summary { font-size: .85rem; color: var(--text2); line-height: 1.7; }
.news-date { font-size: .75rem; color: var(--text3); margin-top: 12px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.badge-blue   { background: var(--sky-dawn); color: var(--sky-dark); }
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-red    { background: #ffebee; color: #c62828; }
.badge-gold   { background: #fff8e1; color: #6d4c00; }
.badge-gray   { background: #f5f5f5; color: #616161; }
.badge-purple { background: #f3e5f5; color: #6a1b9a; }

/* ── CTA BANNER ── */
.cta-section {
  background: linear-gradient(135deg,var(--sky-deep) 0%,var(--sky-night) 50%,#1a3f8f 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content:'✈️'; position:absolute; right:-30px; top:50%; transform:translateY(-50%); font-size:200px; opacity:.04; pointer-events:none; }
.cta-section h2 { font-family:var(--font-h); font-size:clamp(2rem,4vw,3rem); font-weight:900; color:white; margin-bottom:16px; }
.cta-section p { color:rgba(255,255,255,.7); font-size:1.05rem; max-width:540px; margin:0 auto 32px; }
.cta-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ── FOOTER ── */
.site-footer { background: var(--sky-deep); color: rgba(255,255,255,.55); }
.footer-top { padding: 60px 0 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: .85rem; line-height: 1.9; margin-top: 16px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-h); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--sky-pale); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 14px; transition: var(--transition); }
.social-btn:hover { border-color: var(--sky-pale); color: var(--sky-pale); }

/* ── PORTAL / REGISTRO ── */
.portal-wrap { min-height: 100vh; background: linear-gradient(160deg,var(--sky-deep) 0%,var(--sky-night) 40%,#1a4080 100%); display: flex; align-items: center; justify-content: center; padding: 100px 20px 60px; }
.portal-card { background: white; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 680px; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.portal-header { text-align: center; margin-bottom: 32px; }
.portal-header .icon { font-size: 48px; margin-bottom: 12px; }
.portal-header h1 { font-family: var(--font-h); font-size: 1.6rem; font-weight: 900; color: var(--sky-night); }
.portal-header p { color: var(--text2); font-size: .9rem; margin-top: 6px; }

/* ── MOBILE DRAWER ── */
.mobile-nav { display:none; position:fixed; inset:0; z-index:200; }
.mobile-nav.open { display:block; }
.mobile-overlay { position:absolute; inset:0; background:rgba(0,0,0,.6); }
.mobile-drawer { position:absolute; top:0; right:0; bottom:0; width:min(300px,85vw); background:white; padding:24px 20px; overflow-y:auto; display:flex; flex-direction:column; gap:4px; padding-top:60px; }
.mobile-drawer .nav-link { padding:12px 16px; font-size:.95rem; border-radius:var(--radius); }
.mobile-close { position:absolute; top:16px; right:16px; background:none; border:1px solid var(--border); border-radius:var(--radius); padding:8px; cursor:pointer; font-size:18px; }
.mobile-cta { margin-top:12px; }

/* ── RESPONSIVE ── */
@media(max-width:1024px){ .footer-top{grid-template-columns:1fr 1fr;gap:32px} }
@media(max-width:768px){
  .main-nav{display:none} .hamburger{display:block}
  .topbar .topbar-left{display:none}
  .hero{padding:80px 0 40px}
  section{padding:56px 0}
  .form-grid-2,.form-grid-3{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr;gap:28px}
  .footer-bottom{flex-direction:column;text-align:center}
  .cta-actions{flex-direction:column;align-items:center}
}
@media(max-width:480px){
  .container{padding:0 16px}
  .hero h1{font-size:2.2rem}
  .hero-stats{gap:20px}
  .cards-grid{grid-template-columns:1fr}
  .portal-card{padding:24px 20px}
}
