/* ═══════════════════════════════════════
   LANDING — Municipalidad de Perito Moreno
   municipalidadpm.com
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800;9..40,900&family=IBM+Plex+Mono:wght@400;600;700&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #050D0B;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── SCENE ─── */
.scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 24px;
}

/* Background grid */
.bg-grid {
  position: fixed; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(26,138,125,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,138,125,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Ambient glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 {
  width: 500px; height: 500px;
  background: rgba(26,138,125,.12);
  top: -10%; left: -5%;
  animation: driftA 12s ease-in-out infinite;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  background: rgba(20,184,166,.08);
  bottom: -10%; right: -5%;
  animation: driftB 15s ease-in-out infinite;
}
@keyframes driftA {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes driftB {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-30px, -40px); }
}

/* Particles */
#particles {
  position: fixed; inset:0; z-index:0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleUp linear infinite;
}
@keyframes particleUp {
  0%   { transform: translateY(0) scale(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:.8; }
  100% { transform: translateY(-100vh) scale(1); opacity:0; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: heroIn 1.2s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(40px) scale(.96); }
  to { opacity:1; transform: translateY(0) scale(1); }
}

/* ─── LOGO ─── */
.logo-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-core {
  width: 110px; height: 110px;
  border-radius: 50%;
  position: relative;
  z-index: 10;
  background: linear-gradient(145deg, #1A8A7D 0%, #0FA693 40%, #14B8A6 100%);
  box-shadow:
    0 0 30px rgba(26,138,125,.5),
    0 0 60px rgba(26,138,125,.25),
    0 0 100px rgba(26,138,125,.1),
    inset 0 -4px 12px rgba(0,0,0,.2),
    inset 0 4px 12px rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-inner {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-inner span {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,.4), 0 2px 4px rgba(0,0,0,.3);
}

/* Glow behind logo */
.ring-glow {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,138,125,.35) 0%, rgba(20,184,166,.1) 50%, transparent 70%);
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: scale(1); opacity:.7; }
  50% { transform: scale(1.2); opacity:1; }
}

.ring-pulse {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(26,138,125,.3);
  z-index: 2;
  animation: ringExpand 3s ease-out infinite;
}
@keyframes ringExpand {
  0% { transform: scale(1); opacity:.6; }
  100% { transform: scale(2.2); opacity:0; }
}

/* Orbiting rings with dots */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  z-index: 3;
}
.orbit .dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 8px rgba(20,184,166,.8), 0 0 16px rgba(20,184,166,.4);
  top: -3px;
  left: 50%;
  margin-left: -3px;
}
.orbit .dot.d2 {
  top: auto; bottom: -3px;
}

.orbit-1 {
  width: 150px; height: 150px;
  border-top-color: rgba(26,138,125,.5);
  border-right-color: rgba(26,138,125,.2);
  animation: spin 5s linear infinite;
}
.orbit-2 {
  width: 185px; height: 185px;
  border-bottom-color: rgba(20,184,166,.4);
  border-left-color: rgba(20,184,166,.15);
  animation: spinR 7s linear infinite;
}
.orbit-3 {
  width: 220px; height: 220px;
  border-top-color: rgba(26,138,125,.25);
  border-right-color: rgba(20,184,166,.1);
  border-left-color: rgba(26,138,125,.15);
  animation: spin 10s linear infinite;
}
.orbit-1 .dot { background: #1A8A7D; box-shadow: 0 0 10px rgba(26,138,125,.9); }
.orbit-3 .dot { width:4px; height:4px; top:-2px; margin-left:-2px; opacity:.7; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }

/* ─── TEXT ─── */
.hero-text {
  margin-bottom: 48px;
  animation: textIn 1s .3s cubic-bezier(.16,1,.3,1) both;
}
@keyframes textIn {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

.hero-title .line1 {
  display: block;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 900;
  letter-spacing: clamp(4px, 1vw, 10px);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #B2DFD8 50%, #5EBFB5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line2 {
  display: block;
  font-size: clamp(15px, 2.8vw, 26px);
  font-weight: 300;
  letter-spacing: clamp(4px, 1.2vw, 12px);
  color: #5EBFB5;
  margin-top: 6px;
}

.hero-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
  animation: barIn 1s .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes barIn {
  from { opacity:0; transform: scaleX(0); }
  to { opacity:1; transform: scaleX(1); }
}
.hero-bar span {
  display: block; height: 3px; border-radius: 2px;
}
.hero-bar span:nth-child(1) { width: 40px; background: #1A8A7D; }
.hero-bar span:nth-child(2) { width: 60px; background: linear-gradient(90deg, #1A8A7D, #14B8A6); }
.hero-bar span:nth-child(3) { width: 40px; background: #14B8A6; }

.hero-sub {
  font-size: clamp(12px, 1.8vw, 15px);
  color: rgba(255,255,255,.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}

/* ─── NAV CARDS ─── */
.hero-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: navIn 1s .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes navIn {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(26,138,125,.08);
  border: 1px solid rgba(26,138,125,.2);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 300px;
}
.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,138,125,.15), rgba(20,184,166,.05));
  opacity: 0;
  transition: opacity .35s;
}
.nav-card:hover {
  border-color: rgba(26,138,125,.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,138,125,.25), 0 0 60px rgba(26,138,125,.1);
}
.nav-card:hover::before { opacity:1; }

.nav-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1A8A7D, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(26,138,125,.3);
}
.nav-label {
  font-size: 16px;
  font-weight: 700;
  position: relative; z-index:1;
}
.nav-desc {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  position: relative; z-index:1;
}
.nav-arrow {
  margin-left: auto;
  font-size: 20px;
  color: rgba(255,255,255,.25);
  transition: all .3s;
  position: relative; z-index:1;
}
.nav-card:hover .nav-arrow {
  color: #14B8A6;
  transform: translateX(4px);
}

/* ─── FOOTER ─── */
.foot {
  position: absolute;
  bottom: 24px; left:0; right:0;
  text-align: center;
  z-index: 1;
}
.foot p { font-size: 11px; color: rgba(255,255,255,.2); }
.foot-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px !important;
  color: rgba(26,138,125,.4) !important;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .scene { padding: 30px 16px; }
  .logo-container { width: 180px; height: 180px; margin-bottom: 36px; }
  .logo-core { width: 85px; height: 85px; }
  .logo-inner { width: 74px; height: 74px; }
  .logo-inner span { font-size: 22px; letter-spacing: 2px; }
  .ring-glow { width: 110px; height: 110px; }
  .ring-pulse { width: 95px; height: 95px; }
  .orbit-1 { width: 115px; height: 115px; }
  .orbit-2 { width: 142px; height: 142px; }
  .orbit-3 { width: 170px; height: 170px; }
  .nav-card { min-width: 0; width: 100%; max-width: 340px; padding: 16px 20px; }
  .hero-text { margin-bottom: 36px; }
}

@media (max-width: 400px) {
  .logo-container { width: 150px; height: 150px; margin-bottom: 28px; }
  .logo-core { width: 72px; height: 72px; }
  .logo-inner { width: 62px; height: 62px; }
  .logo-inner span { font-size: 18px; }
  .orbit-1 { width: 100px; height: 100px; }
  .orbit-2 { width: 120px; height: 120px; }
  .orbit-3 { width: 145px; height: 145px; }
}
