* {
  box-sizing: border-box;
}

:root {
  --forest: #1f5f2a;
  --forest-dark: #123b1a;
  --forest-soft: #e9f4e6;
  --gold: #b99a3a;
  --text: #263126;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.95), rgba(250,248,238,0.75) 45%, rgba(236,244,228,0.9)),
    linear-gradient(180deg, #f6f4ea, #eef6ec);
  overflow-x: hidden;
}

.forest-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.9)),
    url("data:image/svg+xml,%3Csvg width='1600' height='420' viewBox='0 0 1600 420' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='420' fill='%23f8f5e9'/%3E%3Cg fill='%23265d32' opacity='0.28'%3E%3Cpath d='M70 340 L130 210 L98 210 L150 115 L125 115 L178 20 L235 115 L210 115 L262 210 L230 210 L290 340 Z'/%3E%3Cpath d='M250 360 L310 225 L278 225 L330 125 L305 125 L358 30 L415 125 L390 125 L442 225 L410 225 L470 360 Z'/%3E%3Cpath d='M1180 350 L1245 210 L1210 210 L1268 115 L1240 115 L1300 12 L1360 115 L1332 115 L1390 210 L1355 210 L1420 350 Z'/%3E%3Cpath d='M1370 365 L1430 230 L1398 230 L1450 130 L1425 130 L1478 35 L1535 130 L1510 130 L1562 230 L1530 230 L1590 365 Z'/%3E%3C/g%3E%3Cg fill='%23265d32' opacity='0.18'%3E%3Cpath d='M0 385 C130 330 220 370 350 320 C500 265 640 350 780 300 C940 245 1050 340 1200 295 C1370 245 1495 300 1600 250 L1600 420 L0 420 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.brand-header {
  text-align: center;
  padding: 28px 15px 18px;
}

.crown svg {
  width: 145px;
  height: auto;
  fill: var(--forest);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.12));
}

.crown .crown-line,
.crown .crown-detail {
  fill: none;
  stroke: #f4f0d8;
  stroke-width: 6;
  stroke-linecap: round;
}

.brand-header h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  color: var(--forest);
  margin: -12px 0 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(255,255,255,0.8);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--forest);
}

.ornament span {
  display: block;
  width: min(160px, 25vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forest), transparent);
}

.ornament strong {
  color: var(--gold);
  font-size: 1.4rem;
}

.form-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31,95,42,0.18);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  backdrop-filter: blur(6px);
}

.section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(31,95,42,0.25);
}

.section-title h2 {
  color: var(--forest);
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-title p {
  margin: 3px 0 0;
  color: #4e5b50;
}

.form-label {
  font-weight: 800;
  color: #263126;
}

.form-label::after {
  color: var(--forest);
}

.form-control {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(31,95,42,0.22);
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--forest);
}

.occupation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.occupation-option {
  border: 1px solid rgba(31,95,42,0.25);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.occupation-option:hover {
  background: var(--forest-soft);
  border-color: var(--forest);
}

.occupation-option input {
  accent-color: var(--forest);
  transform: scale(1.2);
}

.occupation-option span {
  font-weight: 700;
}

.forest-btn {
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: white;
  border: none;
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(31,95,42,0.22);
}

.forest-btn:hover {
  color: white;
  filter: brightness(1.05);
}

.form-text {
  color: #5c665c;
}

.map-panel {
  border: 1px solid rgba(31,95,42,0.20);
  background: rgba(255,255,255,0.82);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.map-panel h3 {
  color: var(--forest);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.map-panel p {
  color: #4e5b50;
}

#mapa,
#mapa-mobile {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  border: 1px solid rgba(31,95,42,0.22);
  overflow: hidden;
}

.coords-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: linear-gradient(135deg, rgba(233,244,230,0.9), rgba(255,255,255,0.95));
  border: 1px solid rgba(31,95,42,0.18);
  border-radius: 13px;
  padding: 14px;
}

.coords-box small {
  display: block;
  color: #4e5b50;
  font-weight: 700;
}

.coords-box strong {
  display: block;
  color: var(--forest);
  font-size: 1.05rem;
  margin-top: 4px;
}

.submit-box {
  margin-top: 18px;
  text-align: center;
  border: 1px solid rgba(31,95,42,0.15);
  border-radius: 15px;
  padding: 14px;
  background: rgba(255,255,255,0.78);
}

.submit-btn {
  width: min(420px, 100%);
}

.submit-box p {
  margin: 9px 0 0;
  color: #5c665c;
  font-size: 0.95rem;
}

.https-note {
  text-align: center;
  color: #5c665c;
  margin: 18px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .brand-header {
    padding-top: 22px;
  }

  .crown svg {
    width: 110px;
  }

  .occupation-grid {
    grid-template-columns: 1fr;
  }

  #mapa-mobile {
    height: 310px;
  }
}

@media (max-width: 575px) {
  .form-card {
    border-radius: 18px;
  }

  .section-title {
    align-items: flex-start;
  }

  .icon-circle {
    width: 44px;
    height: 44px;
  }
}
