/* ============================================
   CIVIS360 - Global Styles
   "Tu ciudad, en tus manos"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Exo+2:wght@300;400;500;600;700&display=swap');

:root {
  --teal:        #2ec4a0;
  --teal-dark:   #1a9e7a;
  --teal-glow:   rgba(46,196,160,0.18);
  --bg:          #0a0f0e;
  --bg-card:     #111815;
  --bg-input:    #1a2e28;
  --border:      rgba(46,196,160,0.25);
  --border-hover:rgba(46,196,160,0.6);
  --text:        #e8f0ee;
  --text-muted:  #7a9a94;
  --radius:      14px;
  --radius-pill: 50px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-dark); border-radius: 3px; }

/* ---- BACKGROUND CITY OVERLAY ---- */
.page-bg {
  position: fixed;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1920&q=60');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,15,14,0.82) 0%,
    rgba(10,15,14,0.70) 50%,
    rgba(10,15,14,0.92) 100%
  );
}

/* ---- NAVBAR ---- */
.civis-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,15,14,0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.civis-nav .brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}
.civis-nav .brand span.c { color: var(--teal); }
.civis-nav .brand span.n { color: #fff; }

.civis-nav .nav-links { display: flex; gap: 12px; align-items: center; }
.civis-nav .nav-link-item {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.civis-nav .nav-link-item:hover { color: #fff; background: var(--teal-glow); }
.civis-nav .nav-link-item.active { color: #fff; background: var(--teal-glow); }
.civis-nav .btn-register {
  background: var(--teal-dark);
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.civis-nav .btn-register:hover {
  background: var(--teal);
  box-shadow: 0 0 18px rgba(46,196,160,0.45);
  color: #fff;
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 65px);
}

@media (max-width: 768px) {
  html, body {
    font-size: 14px;
    line-height: 1.45;
  }

  .civis-nav {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .civis-nav .brand {
    font-size: 23px;
  }

  .civis-nav .nav-links {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .civis-nav .nav-link-item,
  .civis-nav .btn-register {
    padding: 8px 14px;
    font-size: 13px;
  }

  .page-wrapper {
    min-height: calc(100vh - 90px);
  }

  .civis-card {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .page-title {
    font-size: 30px;
  }
}

/* ---- CARD ---- */
.civis-card {
  background: rgba(17,24,21,0.80);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}

/* ---- INPUTS ---- */
.civis-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border .25s, box-shadow .25s;
  margin-bottom: 16px;
}
.civis-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.civis-input::placeholder { color: var(--text-muted); }

select.civis-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232ec4a0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}

textarea.civis-input {
  border-radius: var(--radius);
  resize: vertical;
  min-height: 130px;
}

/* ---- LABEL ---- */
.civis-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---- BUTTONS ---- */
.btn-teal {
  display: inline-block;
  background: var(--teal-dark);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  text-align: center;
}
.btn-teal:hover {
  background: var(--teal);
  box-shadow: 0 0 24px rgba(46,196,160,0.5);
  transform: translateY(-1px);
  color: #fff;
}
.btn-teal:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal-dark);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--teal-glow); color: var(--teal); }

/* ---- PAGE TITLE ---- */
.page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.page-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---- ALERT ---- */
.civis-alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.civis-alert.error { background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.4); color: #f88; }
.civis-alert.success { background: rgba(46,196,160,0.12); border: 1px solid var(--border); color: var(--teal); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,196,160,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(46,196,160,0.25); }
}
