/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0D0D0D;
  color: #E0E0E0;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.8;
  font-size: 15px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

section {
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section#hero {
  opacity: 1;
  transform: none;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.2rem;
}

strong {
  color: #FFFFFF;
  font-weight: 700;
}

a {
  color: #00FF41;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: #1A1A1A;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: #1A1A1A;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #2A2A2A;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.6;
}

.highlight {
  color: #00FF41;
}

.closing-statement {
  font-size: 1.4em;
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shame {
  color: #C0392B;
}

.shame-tier {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid #C0392B;
}

form {
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-wide {
  flex: 2;
}

.form-group-narrow {
  flex: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"] {
  width: 100%;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  color: #E0E0E0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #00FF41;
}

input[readonly] {
  color: #666;
  cursor: not-allowed;
}

input[readonly].filled {
  color: #00FF41;
  cursor: default;
  border-color: #00FF41;
  animation: glow 0.6s ease-out;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px #00FF41, 0 0 15px #00FF41;
    border-color: #00FF41;
  }
  100% {
    box-shadow: none;
    border-color: #00FF41;
  }
}

input.loading {
  background-image: linear-gradient(90deg, #1A1A1A 0%, #2A2A2A 50%, #1A1A1A 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.error-msg {
  display: block;
  color: #C0392B;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

#demo-result {
  display: none;
}

#mapa-container {
  margin: 1.5rem 0;
}

#mapa-container iframe {
  width: 100%;
  height: 300px;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
  border-top: 1px solid #2A2A2A;
}

.share-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.share-links a {
  color: #888;
  transition: color 0.2s;
}

.share-links a:hover {
  color: #00FF41;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  pre {
    padding: 1rem;
    font-size: 0.8em;
  }

  .shame-tier {
    padding-left: 1rem;
  }

  #mapa-container iframe {
    height: 220px;
  }
}
