:root {
  --bg-dark: linear-gradient(135deg, #0c1a2d, #1a2a4a, #0f1b30);
  --bg-light: linear-gradient(135deg, #f0f5ff, #e0eaff, #d0dfff);
  --card-dark: rgba(15, 25, 45, .7);
  --card-light: rgba(255, 255, 255, .8);
  --text-dark: #e0f0ff;
  --text-light: #1a2a4a;
  --border-dark: rgba(100, 180, 255, .15);
  --border-light: rgba(0, 50, 120, .1);
  --footer-dark: rgba(200, 220, 255, .7);
  --footer-light: rgba(30, 50, 90, .7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .5s ease, color .3s ease;
  position: relative;
}

.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.light-mode {
  background: var(--bg-light);
  color: var(--text-light);
}

.dark-mode::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(100, 180, 255, .04) 0%, transparent 20%),
                    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, .02) 0%, transparent 25%);
  z-index: -1;
}

.a1 {
  text-align: center;
  margin-bottom: 25px;
  opacity: 0;
  animation: b 1s forwards .2s;
}

.a2 {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  animation: c 10s linear infinite;
  display: block;
}

.a3 {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 4;
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
  animation: d 4s ease-in-out infinite alternate;
}

.a4 {
  animation: e .8s ease .6s both;
}

.a5 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.a5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 1px;
  animation: f 1.2s forwards .8s;
}

.light-mode .a5 {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.light-mode .a5::after {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
}

.a6 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

.a7 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 20px 0 20px;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: b 1s forwards .4s;
  position: relative;
  display: inline-block;
}

.a7::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 2px;
  animation: g 1.2s forwards .9s;
}

.light-mode .a7 {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.light-mode .a7::after {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
}

.intro-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 800px;
  margin: 10px auto 50px;
  padding: 0 20px;
  color: #d0e0ff;
  text-align: center;
}

.light-mode .intro-description {
  color: #2c3e50;
}

.intro-description strong {
  font-weight: 600;
  color: #4facfe;
}

.light-mode .intro-description strong {
  color: #0d47a1;
}

.theme-toggle {
  position: fixed;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, .1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all .3s ease;
}

.light-mode .theme-toggle {
  background: rgba(0, 0, 0, .08);
  color: #1a2a4a;
}

.theme-toggle:hover {
  transform: rotate(25deg) scale(1.15);
}

.a8 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.a9 {
  background: var(--card-dark);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 40px 30px;
  width: 340px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .5s cubic-bezier(.175, .885, .32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  position: relative;
  overflow: hidden;
}

.light-mode .a9 {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

.a9:hover {
  transform: translateY(-10px);
}

.a10 {
  position: relative;
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .4);
  transition: all .4s ease;
  margin-bottom: 22px;
  letter-spacing: .5px;
  overflow: hidden;
  cursor: pointer;
}

.a10::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transition: .7s;
}

.a10:hover::before {
  left: 100%;
}

.a11 {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  box-shadow: 0 6px 20px rgba(183, 28, 28, .4);
}

.a12 {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  box-shadow: 0 6px 20px rgba(56, 142, 60, .4);
}

.a13 {
  background: linear-gradient(135deg, #0277bd, #01579b);
  box-shadow: 0 6px 20px rgba(1, 87, 155, .4);
}

.light-mode .a10 {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.a14 {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  position: relative;
  background: rgba(0, 0, 0, .03);
}

.dark-mode .a14 {
  background: rgba(0, 0, 0, .15);
  border-image: linear-gradient(90deg, rgba(100, 180, 255, .3), rgba(255, 100, 100, .2)) 1;
  border-width: 1px;
  border-style: solid;
  color: #d0e0ff;
}

.light-mode .a14 {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(0, 50, 120, .12);
  color: #2c3e50;
}

.a14 strong {
  font-weight: 600;
  color: #4facfe;
}

.light-mode .a14 strong {
  color: #0d47a1;
}

.a14::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 1.1rem;
  color: #4facfe;
  background: var(--card-dark);
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 2;
}

.light-mode .a14::before {
  background: white;
  color: #0d47a1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.desc-calendario::before {
  content: "\f073";
}

.desc-extractos::before {
  content: "\f15c";
}

.desc-mapa::before {
  content: "\f59f";
}

.a17 {
  background: linear-gradient(135deg, #512da8, #311b92);
  box-shadow: 0 6px 20px rgba(81, 45, 168, .4);
}

.light-mode .a17 {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.desc-puesto::before {
  content: "\f0c5";
}

footer {
  text-align: center;
  padding: 30px 0 20px;
  font-size: 1rem;
  letter-spacing: .5px;
  opacity: 0;
  animation: h 1.2s forwards .8s;
}

.dark-mode footer {
  color: var(--footer-dark);
}

.light-mode footer {
  color: var(--footer-light);
}

@keyframes h {
  to {
    opacity: 1;
  }
}

@keyframes b {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes c {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes d {
  0% {
    stroke-dashoffset: 120;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes e {
  0%, 20%, 40%, 60%, 80%, 100% {
    transition-timing-function: cubic-bezier(.215, .61, .355, 1);
  }
  0% {
    transform: scale3d(.3, .3, .3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(.9, .9, .9);
  }
  60% {
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(.97, .97, .97);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes f {
  to {
    width: 100%;
  }
}

@keyframes g {
  to {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .a7 {
    font-size: 2.2rem;
  }
  .a7::after {
    height: 2.5px;
  }
  .a5 {
    font-size: 1.3rem;
  }
  .a5::after {
    height: 1.5px;
    bottom: -6px;
  }
  .intro-description {
    font-size: 1.15rem;
  }
  .a8 {
    flex-direction: column;
    align-items: center;
  }
  .a9 {
    width: 90%;
    max-width: 400px;
  }
  .a2 {
    width: 60px;
    height: 60px;
  }
  .a14 {
    font-size: 1.05rem;
    padding: 14px;
  }
}

#premiumLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, .92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

#premiumLoader.active {
  opacity: 1;
  visibility: visible;
}

.a15 {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 25px;
}

.a15::before,
.a15::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  box-sizing: border-box;
}

.a15::before {
  border-top-color: #d32f2f;
  border-right-color: #0277bd;
  animation: i 1.8s cubic-bezier(.68, -.55, .27, 1.55) infinite;
}

.a15::after {
  border-bottom-color: #0277bd;
  border-left-color: #d32f2f;
  animation: i 1.8s cubic-bezier(.68, -.55, .27, 1.55) infinite reverse;
}

@keyframes i {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.a16 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
  background: linear-gradient(90deg, #4facfe, #d32f2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-docs-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-dark);
}

.light-mode .legal-docs-section {
  border-top-color: var(--border-light);
}

.legal-docs-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUpTitle 0.8s forwards 0.3s;
}

.legal-docs-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 1px;
  animation: animateUnderline 1.2s forwards 0.6s;
  transition: width 0.4s ease;
}

.legal-docs-title:hover::after {
  width: 100% !important;
}

.light-mode .legal-docs-title {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.light-mode .legal-docs-title::after {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
}

@keyframes fadeInUpTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animateUnderline {
  to {
    width: 100%;
  }
}

.legal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.legal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 16px;
  color: white;
  transition: all 0.35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  min-width: 220px;
  justify-content: center;
  letter-spacing: 0.3px;
}

.legal-btn i {
  font-size: 1.4rem;
}

.legal-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.ley-btn {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
}
.decreto-btn {
  background: linear-gradient(135deg, #0277bd, #01579b);
}
.constitucion-btn {
  background: linear-gradient(135deg, #512da8, #311b92);
}

.light-mode .legal-btn {
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.light-mode .legal-btn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .legal-docs-title {
    font-size: 1.5rem;
  }
  .legal-btn {
    padding: 14px 24px;
    font-size: 1.05rem;
    min-width: 180px;
  }
}