﻿/* Styles specific to /reportar. Keep global layout, header, footer and shared components in styles.css. */

/* --- Report header --- */
/* Report creation form */
.report-page { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 0; }
.report-header {
  display: grid;
  gap: .32rem;
  margin: .25rem 0 1rem;
}
.report-header__title-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.report-header h1 { font-size: 1.75rem; margin: 0; }
.report-header p { margin: 0; opacity: .8; }
.report-header__intro {
  color: var(--muted);
  font-size: .95rem;
}
.report-header .report-locality-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .22rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .25);
  background: rgba(37, 99, 235, .08);
  color: #1e3a8a;
  font-size: .8rem;
  font-weight: 600;
  opacity: 1;
}
[data-theme="dark"] .report-header .report-locality-badge {
  background: rgba(96, 165, 250, .18);
  border-color: rgba(96, 165, 250, .35);
  color: #bfdbfe;
}


/* --- Report section headings --- */
.report-observation-point-card > h2,
.report-data-card > h2,
.report-credit-card > h2 {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: .72rem 1rem;
  border-radius: 8px 8px 0 0;
  background: var(--color-primary, #1976d2);
  color: #fff;
  opacity: 1;
  letter-spacing: 0;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(25, 118, 210, .22);
}
.report-observation-point-card:hover > h2::after,
.report-observation-point-card:focus-within > h2::after,
.report-data-card:hover > h2::after,
.report-data-card:focus-within > h2::after,
.report-credit-card:hover > h2::after,
.report-credit-card:focus-within > h2::after {
  content: none;
}

/* --- Report confirmation and review modals --- */
body.report-modal-open { overflow: hidden; }
body.report-mobile-review-open { overflow: hidden; }
body.report-submitting { overflow: hidden; }
.report-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  padding: 1rem;
  display: grid;
  place-items: center;
}
.report-confirm-modal[hidden] {
  display: none !important;
}
.report-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.72);
  cursor: pointer;
}
.report-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.42);
  display: grid;
  gap: 0.8rem;
}
.report-confirm-modal__close {
  position: sticky;
  top: 0;
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  line-height: 1;
  font-size: 1.2rem;
  cursor: pointer;
}
.report-confirm-modal h2 {
  margin: 0;
  font-size: 1.2rem;
}
.report-confirm-modal p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.5;
}
.report-confirm-summary {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.report-confirm-summary__row {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(150px, 40%) 1fr;
  align-items: start;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(37, 99, 235, 0.05);
}
.report-confirm-summary__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted, #64748b);
}
.report-confirm-summary__row dd {
  margin: 0;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.report-confirm-summary__multiline {
  white-space: pre-wrap;
}
.report-confirm-media {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(37, 99, 235, 0.04);
}
.report-confirm-media__title {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}
.report-confirm-media__preview {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  width: min(100%, 240px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.report-confirm-media__preview img,
.report-confirm-media__preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.report-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.report-mobile-review {
  display: none;
}
.report-mobile-review[hidden] {
  display: none !important;
}
.report-mobile-review__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.64);
}
.report-mobile-review__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(82vh, 720px);
  overflow: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 0;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 -22px 48px rgba(2, 6, 23, 0.36);
  padding: .75rem .9rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: .75rem;
}
.report-mobile-review__handle {
  justify-self: center;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .55);
}
.report-mobile-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.report-mobile-review__header h2 {
  margin: 0;
  font-size: 1.05rem;
}
.report-mobile-review__close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  line-height: 1;
  font-size: 1.2rem;
}
.report-mobile-review__summary .report-confirm-summary__row {
  grid-template-columns: 1fr;
  gap: .2rem;
}
.report-mobile-review__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.report-mobile-review__actions .btn {
  justify-content: center;
}
#report-mobile-review-open {
  display: none;
}
.report-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1750;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.66);
}
.report-submit-overlay[hidden] {
  display: none !important;
}
.report-submit-overlay__card {
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.42);
  padding: 1rem 1.1rem;
  text-align: center;
}
.report-submit-overlay__spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--color-primary, #1976d2);
  animation: report-submit-spin 0.8s linear infinite;
}
.report-submit-overlay__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.report-submit-overlay__copy {
  margin: 0.4rem 0 0;
  color: var(--muted, #64748b);
  line-height: 1.5;
}
@keyframes report-submit-spin {
  to { transform: rotate(360deg); }
}
[data-theme="dark"] .report-confirm-modal__dialog {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.62);
}
[data-theme="dark"] .report-submit-overlay__card {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.62);
}
[data-theme="dark"] .report-confirm-summary__row {
  background: rgba(59, 130, 246, 0.14);
}
[data-theme="dark"] .report-confirm-media {
  background: rgba(59, 130, 246, 0.14);
}
@media (max-width: 640px) {
  #report-mobile-review-open {
    display: inline-flex;
  }
  .report-mobile-review {
    position: fixed;
    inset: 0;
    z-index: 1720;
    display: block;
  }
  .report-confirm-modal {
    padding: 0.55rem;
  }
  .report-confirm-modal__dialog {
    padding: 0.85rem;
  }
  .report-confirm-summary__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .report-confirm-modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Report form modules --- */
.report-data-grid {
  grid-template-columns: 1fr;
  align-items: start;
}
.report-data-grid__full,
.report-data-grid__half {
  grid-column: 1 / -1;
}
.report-data-grid .field-label-row {
  align-items: baseline;
}
.report-data-grid .field-required-badge,
.report-data-grid .field-optional-badge {
  display: none;
}
@media (min-width: 760px) {
  .report-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
  }
  .report-data-grid > .field {
    grid-column: 1 / -1;
  }
  .report-data-grid > .report-data-grid__half {
    grid-column: span 1;
  }
  .report-data-grid > .report-data-grid__full {
    grid-column: 1 / -1;
  }
}
.report-data-card label::before {
  content: none !important;
}
.report-page .field--checkbox .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  margin: .25rem 0 .35rem;
}
.report-page .field--checkbox input[type="checkbox"] { width: 16px; height: 16px; }
.report-danger-field {
  align-self: stretch;
}
.report-danger-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 100%;
  margin: 0;
  padding: .78rem .82rem;
  border: 1px solid rgba(244, 63, 94, .32);
  border-radius: 10px;
  background: rgba(244, 63, 94, .06);
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.report-danger-card:hover {
  border-color: rgba(244, 63, 94, .48);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.report-danger-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e11d48;
}
.report-danger-card:focus-within {
  outline: 2px solid rgba(225, 29, 72, .45);
  outline-offset: 2px;
}
.report-danger-card__body {
  display: grid;
  gap: .22rem;
  min-width: 0;
}
.report-danger-card__title {
  font-weight: 850;
  line-height: 1.2;
}
.report-danger-card__copy {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.32;
}
.report-danger-card__state {
  align-self: start;
  border-radius: 999px;
  padding: .18rem .5rem;
  border: 1px solid rgba(244, 63, 94, .28);
  background: rgba(255, 255, 255, .55);
  color: #9f1239;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.report-danger-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(225, 29, 72, .68);
  background: rgba(225, 29, 72, .14);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .18);
}
.report-danger-card:has(input[type="checkbox"]:checked) .report-danger-card__state {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}
.report-capture-card {
  border-color: rgba(37,99,235,.28);
  background: linear-gradient(135deg, rgba(219,234,254,.72), var(--card));
}
.report-capture-card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.report-capture-card h2 {
  margin: 0 0 .25rem;
}
.report-capture-card__step {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}
.report-capture-card .body {
  display: grid;
  gap: .7rem;
}
.report-capture-card__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.report-capture-card__media {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
}
.report-capture-card__camera {
  width: 30px;
  height: 30px;
  color: inherit;
}
.report-capture-card__actions {
  min-width: 180px;
}
.report-capture-card__actions .btn {
  width: 100%;
  justify-content: center;
}
.report-capture-card__manual {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  padding: .35rem .25rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-capture-card__message {
  min-height: 1.2em;
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
}
.report-capture-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.report-capture-card__note {
  font-size: .9rem;
}
.report-capture-card__return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.report-capture-card__orientation {
  display: none;
}
.report-capture-card__rotate {
  width: 42px;
  height: 28px;
}
.report-page--capture-mode.report-page--capture-pending .report-capture-form-step {
  display: none;
}
.report-page--capture-mode.report-page--capture-pending {
  visibility: hidden;
}
body:has(.report-page--capture-mode.report-page--capture-pending) .site-header,
body:has(.report-page--capture-mode.report-page--capture-pending) .site-footer {
  visibility: hidden;
}
.report-page--capture-mode:not(.report-page--capture-pending) .report-capture-card {
  display: none;
}
.report-page--capture-mode.report-page--capture-pending .report-header {
  display: none;
}
.report-page--capture-mode.report-page--capture-pending {
  max-width: none;
}
.report-page--capture-mode.report-page--capture-pending .report-capture-card {
  max-width: none;
}
[data-theme="dark"] .report-capture-card {
  background: linear-gradient(135deg, rgba(30,58,138,.35), var(--card));
  border-color: rgba(96,165,250,.28);
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 980px) and (pointer: coarse) {
  body:has(.report-page--capture-mode.report-page--capture-pending) {
    overflow: hidden;
    background: rgba(15, 23, 42, .62);
  }
  body:has(.report-page--capture-mode.report-page--capture-pending) .site-header,
  body:has(.report-page--capture-mode.report-page--capture-pending) .site-footer,
  body:has(.report-page--capture-mode.report-page--capture-pending) #offline-banner {
    display: none !important;
  }
  main:has(.report-page--capture-mode.report-page--capture-pending) {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    padding: 0;
    background: rgba(15, 23, 42, .62);
  }
  .report-page--capture-mode.report-page--capture-pending {
    visibility: visible;
    height: 100svh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    align-items: center;
    overflow: hidden;
  }
  .report-page--capture-mode.report-page--capture-pending form {
    height: 100%;
    margin: 0;
    position: relative;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-form-step {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: transparent;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-form-step > * {
    display: none !important;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-form-step > #map-container {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }
  .report-page--capture-mode.report-page--capture-pending #map-container h2,
  .report-page--capture-mode.report-page--capture-pending #map-container .body > p,
  .report-page--capture-mode.report-page--capture-pending #location-validation-msg,
  .report-page--capture-mode.report-page--capture-pending #map .maplibregl-control-container {
    display: none !important;
  }
  .report-page--capture-mode.report-page--capture-pending #map-container .body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  .report-page--capture-mode.report-page--capture-pending #map {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    border-radius: 0;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card {
    position: fixed;
    inset: 0;
    z-index: 1800;
    height: 100%;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(15, 23, 42, .66);
    color: #f8fafc;
    display: grid;
    place-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 40px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  @supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .report-page--capture-mode.report-page--capture-pending .report-capture-card {
      background: rgba(15, 23, 42, .62);
      backdrop-filter: blur(7px);
      -webkit-backdrop-filter: blur(7px);
    }
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__layout {
    width: min(500px, 100%);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transform: translateY(-8px);
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__copy {
    display: grid;
    gap: 7px;
    justify-items: center;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    max-width: 100%;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__media {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.16);
    color: rgba(255,255,255,.9);
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__camera {
    width: 24px;
    height: 24px;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card h2 {
    margin: 0;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
    text-shadow: none;
    filter: none;
    font-size: clamp(1.16rem, 5.1vh, 1.5rem);
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__step {
    display: none;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card p,
  .report-page--capture-mode.report-page--capture-pending .report-capture-card .report-page .help {
    color: rgba(248,250,252,.9);
    font-size: clamp(.84rem, 3vh, .95rem);
    line-height: 1.35;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card p.report-capture-card__note {
    color: rgba(191,219,254,.92);
    margin-top: 0;
    font-weight: 700;
    font-size: clamp(.76rem, 2.6vh, .84rem);
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__orientation {
    width: 24px;
    height: 16px;
    margin-top: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: rgba(147,197,253,.72);
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__rotate {
    width: 24px;
    height: 16px;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__actions {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 56vw);
    max-width: 100%;
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(96,165,250,.72);
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15,23,42,.22);
    font-size: .88rem;
    font-weight: 800;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__manual {
    display: inline-flex;
    justify-content: center;
    width: min(230px, 56vw);
    max-width: 100%;
    color: rgba(191,219,254,.92);
    font-size: clamp(.74rem, 2.5vh, .82rem);
    padding-top: 2px;
    text-align: center;
  }
  .report-page--capture-mode.report-page--capture-pending .report-capture-card__message {
    width: min(330px, 82vw);
    color: rgba(248,250,252,.82);
    font-size: clamp(.72rem, 2.4vh, .8rem);
    line-height: 1.3;
  }
}
.report-page .field input[type="text"], .report-page .field input[type="number"], .report-page .field input[type="datetime-local"], .report-page .field select, .report-page .field textarea {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.15); background: transparent; color: inherit;
  border-radius: 10px; padding: .65rem .75rem; font: inherit; outline: none;
}
.report-page .help, .report-page .error { font-size: .85rem; margin-top: .35rem; }
.report-page .help { opacity: .7; }
.report-page .error { color: #c62828; }

/* Emoji helpers for labels (scoped) */
.report-page label[for="id_especie"]::before { content: "Ã°Å¸Ââ€¹ "; }
.report-page label[for="id_cantidad_individuos"]::before { content: "Ã°Å¸â€œË† "; }
.report-page label[for="id_comportamiento"]::before { content: "Ã°Å¸Å½Â¬ "; }
.report-page label[for="id_distancia_estimada"]::before { content: "Ã°Å¸â€œÂ "; }
.report-page label[for="id_estado_mar"]::before { content: "Ã°Å¸Å’Å  "; }
.report-page label[for="id_condicion_cielo"]::before { content: "Ã¢ËœÂÃ¯Â¸Â "; }
.report-page label[for="id_direccion_movimiento"]::before { content: "Ã°Å¸Â§Â­ "; }
.report-page label[for="id_comentario"]::before { content: "Ã°Å¸â€œÂ "; }
.report-page label[for="id_foto"]::before { content: "Ã°Å¸â€œÅ½ "; }
.report-page label::before { opacity: .9; }

.report-page .radio-cards { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 520px) { .report-page .radio-cards { grid-template-columns: 1fr 1fr; } }
.report-location-method-field { grid-column: 1 / -1; margin-top: .35rem; }
.report-observation-point-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.observation-point-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: .65rem;
}
@media (min-width: 760px) {
  .observation-point-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.observation-point-choice {
  appearance: none;
  position: relative;
  display: grid;
  gap: .28rem;
  min-height: 88px;
  padding: .78rem .82rem .78rem 2.45rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--silk-surface);
  color: var(--silk-text);
  box-shadow: var(--silk-inset);
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.observation-point-choice::before {
  content: "";
  position: absolute;
  left: .78rem;
  top: .9rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--silk-muted);
  background: var(--silk-surface);
  box-shadow: inset 2px 2px 4px var(--silk-shadow-dark), inset -2px -2px 4px var(--silk-highlight);
  box-sizing: border-box;
}
.observation-point-choice::after {
  content: "";
  position: absolute;
  left: calc(.78rem + 5px);
  top: calc(.9rem + 5px);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.observation-point-choice:hover {
  border-color: transparent;
  box-shadow:
    inset 9px 9px 18px var(--silk-shadow-dark),
    inset -9px -9px 18px var(--silk-highlight);
}
.observation-point-choice:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .6);
  outline-offset: 2px;
}
.observation-point-choice[aria-pressed="true"] {
  border-color: transparent;
  background: radial-gradient(circle at 28% 16%, #4fa3ff, #2563eb 52%, #174fb7 100%);
  color: #fff;
  box-shadow: 7px 8px 17px rgba(20, 98, 210, .36), inset 0 0 0 1px rgba(255, 255, 255, .3), inset 1px 1px 0 rgba(255, 255, 255, .35);
}
.observation-point-choice[aria-pressed="true"]::before {
  border-color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 2px 2px 4px rgba(20, 98, 210, .4);
}
.observation-point-choice[aria-pressed="true"]::after {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}
.observation-point-choice__title {
  font-weight: 850;
  line-height: 1.2;
}
.observation-point-choice__copy {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}
.observation-point-choice[aria-pressed="true"] .observation-point-choice__copy { color: rgba(255, 255, 255, .94); }
.report-page .radio-card { display: flex; gap: .75rem; align-items: center; min-height: 68px; cursor: pointer;
  border: 1px solid transparent; border-radius: 16px; padding: .8rem .9rem; background: var(--silk-surface); box-shadow: var(--silk-inset); transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.report-page .radio-card:hover { box-shadow: inset 9px 9px 18px var(--silk-shadow-dark), inset -9px -9px 18px var(--silk-highlight); }
.report-page .radio-card:has(input[type="radio"]:checked) { color: var(--silk-blue); box-shadow: var(--silk-raised-sm); }
.report-page .radio-card input[type="radio"] { accent-color: var(--color-primary, #1976d2); }

.report-page .actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1rem; }
.report-source-fields {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 10px;
  padding: .7rem .75rem .2rem;
  background: rgba(37, 99, 235, .03);
}
.report-source-fields[hidden] { display: none !important; }
.report-location-subcards {
  display: grid;
  gap: .85rem;
  margin-top: .95rem;
}
.report-location-subcard {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(148, 163, 184, .04);
  overflow: hidden;
}
.report-location-subcard h3 {
  margin: 0;
  padding: .72rem .82rem;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.report-location-subcard > .body {
  padding: .82rem;
}
#gps-container > .body {
  display: grid;
  justify-items: center;
  gap: .7rem;
  text-align: center;
}
#gps-container > .body p {
  margin: 0;
  max-width: 36rem;
}
.report-coordinates-card {
  padding: .7rem;
}
.report-coordinates-accordion {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 10px;
  padding: .3rem .75rem .2rem;
  background: rgba(71, 85, 105, .03);
}
.report-coordinates-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  margin: 0;
  padding: .25rem 0;
}
.report-coordinates-accordion__summary::-webkit-details-marker {
  display: none;
}
.report-coordinates-accordion__summary::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background:
    linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 8px no-repeat;
}
.report-coordinates-accordion[open] .report-coordinates-accordion__summary::before {
  background: linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat;
}
.report-coordinates-accordion__help {
  margin: .3rem 0 .55rem;
}
.report-coordinates-accordion__grid {
  gap: .6rem;
}
.report-context-accordion-wrap {
  margin: 0;
}
.report-context-accordion {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 10px;
  padding: .3rem .75rem .65rem;
  background: rgba(15, 118, 110, .04);
}
.report-context-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  margin: 0;
  padding: .25rem 0;
}
.report-context-accordion__summary::-webkit-details-marker {
  display: none;
}
.report-context-accordion__summary::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background:
    linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 8px no-repeat;
}
.report-context-accordion[open] .report-context-accordion__summary::before {
  background: linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat;
}
.report-context-accordion__help {
  margin: .3rem 0 .55rem;
}
.report-context-accordion__grid {
  gap: .6rem;
}
.report-credit-accordion-wrap {
  margin: 0;
}
.report-credit-accordion {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 10px;
  padding: .3rem .75rem .65rem;
  background: rgba(37, 99, 235, .04);
}
.report-credit-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  margin: 0;
  padding: .25rem 0;
}
.report-credit-accordion__summary::-webkit-details-marker {
  display: none;
}
.report-credit-accordion__summary::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background:
    linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 8px no-repeat;
}
.report-credit-accordion[open] .report-credit-accordion__summary::before {
  background: linear-gradient(currentColor,currentColor) center / 8px 1.5px no-repeat;
}
.report-credit-accordion__help {
  margin: .3rem 0 .55rem;
}
.report-credit-accordion__grid {
  display: grid;
  gap: .65rem;
}
.report-page .gps-status { min-height: 1.25rem; }

/* Photo upload module */
.report-photo-module {
  display: grid;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(148, 163, 184, .035);
}
.report-photo-subcard {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(15, 23, 42, .025);
}
.report-photo-subcard--upload {
  padding: .55rem;
}
.report-photo-subcard--preview {
  display: none;
  padding: .75rem;
}
.report-photo-subcard--current {
  display: grid;
  gap: .65rem;
  padding: .75rem;
}
.report-page .report-photo-subcard--preview:has(.upload-preview:not(:empty)) {
  display: grid;
  gap: .65rem;
}
.report-photo-subcard__title {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.report-photo-module__status:empty {
  display: none;
}
.report-photo-module__help {
  margin: 0;
}
.report-photo-current__meta {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.report-photo-current__link {
  color: inherit;
  font-size: .86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.report-photo-current__clear {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}
.report-photo-current__clear input {
  width: 16px;
  height: 16px;
  accent-color: #e11d48;
}
.report-page .upload-tile { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.25rem;
  border: 2px dashed rgba(0,0,0,.2); border-radius: 12px; padding: 1rem; cursor: pointer; text-align:center; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.report-page .upload-tile .icon { font-size: 1.6rem; }
.report-page .upload-tile .sub { font-size: .85rem; opacity: .7; }
.report-page .upload-tile:hover, .report-page .upload-tile.is-drag { background: rgba(25,118,210,.06); border-color: rgba(25,118,210,.5); transform: translateY(-1px); }
.report-page .upload-tile--has-file {
  border-style: solid;
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .05);
}
.report-page .upload-selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .72rem;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 10px;
  background: rgba(148, 163, 184, .06);
}
.report-page .upload-selected-file[hidden] {
  display: none !important;
}
.report-page .upload-selected-file__meta {
  display: grid;
  gap: .14rem;
  min-width: 0;
}
.report-page .upload-selected-file__label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.report-page .upload-selected-file__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .88rem;
  font-weight: 750;
}
.report-page .upload-selected-file__actions {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
}
.report-page .upload-selected-file__button {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: inherit;
  padding: .35rem .62rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}
.report-page .upload-selected-file__button:hover,
.report-page .upload-selected-file__button:focus-visible {
  border-color: rgba(37, 99, 235, .5);
  background: rgba(37, 99, 235, .14);
}
.report-page .upload-selected-file__button--danger {
  border-color: rgba(244, 63, 94, .3);
  background: rgba(244, 63, 94, .08);
  color: #be123c;
}
.report-page .upload-selected-file__button--danger:hover,
.report-page .upload-selected-file__button--danger:focus-visible {
  border-color: rgba(244, 63, 94, .55);
  background: rgba(244, 63, 94, .14);
}
@media (max-width: 520px) {
  .report-page .upload-selected-file {
    align-items: stretch;
    flex-direction: column;
  }
  .report-page .upload-selected-file__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.report-page .upload-preview { margin-top: 0; display: none; }
.report-page .upload-preview img, .report-page .upload-preview video { max-width: 100%; border-radius: 10px; display: block; }
.report-page .upload-preview-fallback {
  border: 1px dashed rgba(0,0,0,.22);
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: .84rem;
  line-height: 1.35;
  opacity: .9;
  background: rgba(148,163,184,.08);
}
.report-page .upload-cropper {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: center;
}
.report-page .upload-cropper__viewport {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  overflow: hidden;
  background: #000;
  cursor: grab;
  touch-action: none;
  align-self: center;
}
.report-page .upload-cropper__viewport:active {
  cursor: grabbing;
}
.report-page .upload-cropper__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.report-page .upload-cropper__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  width: min(100%, 360px);
  text-align: center;
}
.report-page .upload-cropper__hint {
  font-size: .82rem;
  opacity: .75;
}
.report-page .upload-cropper__reset {
  appearance: none;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: .35rem .75rem;
  font-size: .82rem;
  cursor: pointer;
}
.report-page .upload-cropper__reset:hover {
  background: rgba(25,118,210,.06);
  border-color: rgba(25,118,210,.45);
}
.report-page .upload-cropper__reset:focus-visible {
  outline: 2px solid rgba(25,118,210,.45);
  outline-offset: 2px;
}
/* Remove duplicated emoji/paperclip on upload label tile */
.report-page #upload-tile::before { content: none !important; }

/* Hide native file input but keep accessible via label */
.report-page .field input[type="file"]{ position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* Dark mode for report */
[data-theme="dark"] .report-page .card { background: #121417; border-color: rgba(255,255,255,.09); box-shadow: none; }
[data-theme="dark"] .report-page .btn.secondary { border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .report-page .error { color: #ef5350; }
[data-theme="dark"] .report-page .field-required-badge { border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.2); color: #bfdbfe; }
[data-theme="dark"] .report-page .field-optional-badge { border-color: rgba(148,163,184,.45); background: rgba(148,163,184,.2); color: #cbd5e1; }
[data-theme="dark"] .report-page .field--required input[type="text"],
[data-theme="dark"] .report-page .field--required input[type="number"],
[data-theme="dark"] .report-page .field--required input[type="datetime-local"],
[data-theme="dark"] .report-page .field--required select,
[data-theme="dark"] .report-page .field--required textarea {
  border-color: rgba(96,165,250,.45);
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.12);
}
[data-theme="dark"] .report-page .field--required:focus-within input[type="text"],
[data-theme="dark"] .report-page .field--required:focus-within input[type="number"],
[data-theme="dark"] .report-page .field--required:focus-within input[type="datetime-local"],
[data-theme="dark"] .report-page .field--required:focus-within select,
[data-theme="dark"] .report-page .field--required:focus-within textarea {
  border-color: rgba(147,197,253,.8);
  box-shadow: 0 0 0 2px rgba(96,165,250,.2);
}
[data-theme="dark"] .report-required-intro { border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.14); }
[data-theme="dark"] .report-required-intro--header {
  border-color: transparent;
  background: transparent;
}
[data-theme="dark"] .report-page .upload-tile { border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .report-page .upload-tile:hover, [data-theme="dark"] .report-page .upload-tile.is-drag { background: rgba(255,255,255,.06); border-color: rgba(100,181,246,.6); }
[data-theme="dark"] .report-source-fields { background: rgba(59, 130, 246, .10); border-color: rgba(148,163,184,.35); }
[data-theme="dark"] .report-coordinates-accordion { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.35); }
[data-theme="dark"] .report-coordinates-accordion__summary::before { border-color: rgba(148,163,184,.5); }
[data-theme="dark"] .report-context-accordion { background: rgba(20, 184, 166, .14); border-color: rgba(148,163,184,.35); }
[data-theme="dark"] .report-context-accordion__summary::before { border-color: rgba(148,163,184,.5); }
[data-theme="dark"] .report-credit-accordion { background: rgba(59, 130, 246, .14); border-color: rgba(148,163,184,.35); }
[data-theme="dark"] .report-credit-accordion__summary::before { border-color: rgba(148,163,184,.5); }
[data-theme="dark"] .report-page .upload-cropper__viewport { border-color: rgba(255,255,255,.22); }
[data-theme="dark"] .report-page .upload-preview-fallback {
  border-color: rgba(255,255,255,.24);
  background: rgba(148,163,184,.1);
}
[data-theme="dark"] .report-page .upload-cropper__reset {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.03);
}
[data-theme="dark"] .report-page .upload-cropper__reset:hover {
  border-color: rgba(100,181,246,.55);
  background: rgba(100,181,246,.1);
}

/* --- Report layout and preview --- */
/* --- Estilos para el nuevo formulario --- */

/* --- Material Design Mobile-First Adaptado --- */
body:has(.report-page) > header {
    position: sticky;
    top: 0;
    z-index: 1200;
}

body:has(.report-page) main {
    padding-top: 1.2rem;
    padding-bottom: 0;
}

body:has(.report-page) .site-footer {
    margin-top: var(--content-footer-gap);
}

.report-page {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    --radius: 8px;
    margin-bottom: 0;
}
.report-page .report-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}
.report-page .report-form-column {
    min-width: 0;
}
.report-page .report-preview-panel {
    display: none;
}
.report-preview-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--card) 94%, transparent);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .12);
    overflow: hidden;
}
.report-preview-card__status {
    display: grid;
    gap: .55rem;
    padding: .85rem 1rem 0;
}
.report-preview-card__eyebrow {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.report-preview-card__media {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(15, 23, 42, .08));
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.report-preview-card__media img,
.report-preview-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.report-preview-card__media-placeholder {
    display: grid;
    gap: .35rem;
    justify-items: center;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
}
.report-preview-card__media-placeholder span:first-child {
    font-size: 2rem;
}
.report-preview-card__body {
    padding: .95rem 1rem 1rem;
}
.report-preview-card__species {
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
}
.report-preview-card__location {
    color: var(--muted);
    font-weight: 800;
    font-size: .92rem;
    margin: .28rem 0 .9rem;
    overflow-wrap: anywhere;
}
.report-preview-card__policy {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    max-width: 100%;
    border-radius: 999px;
    padding: .38rem .6rem;
    border: 1px solid rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .12);
    color: #166534;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}
.report-preview-card__policy[data-policy="sensible"] {
    border-color: rgba(245, 158, 11, .38);
    background: rgba(245, 158, 11, .14);
    color: #92400e;
}
.report-preview-card__policy[data-policy="pendiente"] {
    border-color: rgba(148, 163, 184, .36);
    background: rgba(148, 163, 184, .12);
    color: #475569;
}
.report-preview-card__policy[data-policy="en_peligro"] {
    border-color: rgba(239, 68, 68, .42);
    background: rgba(239, 68, 68, .14);
    color: #991b1b;
}
.report-preview-card__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin: 0;
}
.report-preview-card__facts div {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: 10px;
    padding: .62rem .68rem;
    background: rgba(148, 163, 184, .06);
}
.report-preview-card__facts dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .22rem;
}
.report-preview-card__facts dd {
    margin: 0;
    min-width: 0;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.report-preview-card__comment,
.report-preview-card__credit {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
}
.report-preview-card__comment {
    color: var(--fg);
    white-space: pre-wrap;
    line-height: 1.45;
}
.report-preview-card__environment {
    border-top: 1px solid var(--border);
    padding: .9rem 1rem;
    background: rgba(14, 165, 233, .08);
}
.report-preview-card__environment strong {
    display: block;
    font-size: .9rem;
    margin-bottom: .3rem;
}
.report-preview-card__environment p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}
@media (max-width: 1140px) and (min-width: 1024px) {
    .report-preview-card__facts {
        grid-template-columns: 1fr;
    }
}
[data-theme="dark"] .report-preview-card__policy {
    color: #bbf7d0;
}
[data-theme="dark"] .report-preview-card__policy[data-policy="sensible"] {
    color: #fde68a;
}
[data-theme="dark"] .report-preview-card__policy[data-policy="pendiente"] {
    color: #cbd5e1;
}
[data-theme="dark"] .report-preview-card__policy[data-policy="en_peligro"] {
    color: #fecaca;
}
@media (min-width: 1024px) {
    .report-page {
        max-width: 1240px;
    }
    .report-page .report-form-layout {
        grid-template-columns: minmax(0, 780px) minmax(340px, 380px);
        gap: 28px;
        align-items: start;
    }
    .report-page .report-preview-panel {
        display: block;
        position: sticky;
        top: 86px;
        min-width: 0;
    }
    .report-page--capture-mode.report-page--capture-pending .report-form-layout {
        display: block;
    }
    .report-page--capture-mode.report-page--capture-pending .report-preview-panel {
        display: none;
    }
}

@media (max-width: 640px) {
    body:has(.report-page) main {
        padding-top: .95rem;
        padding-bottom: 0;
    }

    .report-page {
        margin-bottom: 0;
    }

    body:has(.report-page) .site-footer {
        margin-top: var(--content-footer-gap);
    }
}

/* Header */
.report-page .form-header h1 {
    color: var(--color-primary-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.report-page .form-header p {
    font-size: 0.95rem;
    color: #616161;
}

/* Tarjetas */
.report-page .form-card {
    background-color: var(--color-light);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px var(--color-shadow);
    margin-bottom: 1rem;
    padding: 1rem;
}
.report-page .card-header {
    background-color: #E3F2FD;
    color: var(--color-primary-dark);
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #BBDEFB;
}
.report-page .card-body {
    padding: 1rem;
}

/* Radio buttons */
.report-page .radio-option {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}
.report-page .radio-option:hover {
    background-color: #F5F9FF;
    border-color: var(--color-primary);
}
.report-page .radio-option input[type="radio"] {
    accent-color: var(--color-primary);
    margin-top: 0.25rem;
    margin-right: 0.75rem;
}

/* Labels fijos */
.report-page .field-group label,
.report-page .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #616161;
    margin-bottom: 0.25rem;
}

/* Inputs */
.report-page input[type="text"],
.report-page input[type="number"],
.report-page input[type="datetime-local"],
.report-page input[type="email"],
.report-page input[type="tel"],
.report-page input[type="url"],
.report-page select,
.report-page textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background-color: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.report-page #id_fecha_hora {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background-color: transparent;
}
.report-page .report-datetime-control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.65rem 0.75rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    line-height: 1.2;
    color: inherit;
    background-color: transparent;
}
.report-page .report-datetime-control:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    background-color: #FAFAFA;
    box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
[data-theme="dark"] .report-page .report-datetime-control:focus {
    background-color: #111827;
}
[data-theme="dark"] .report-page .report-datetime-control::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
}
.report-page input:focus,
.report-page select:focus,
.report-page textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #FAFAFA;
    box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
.report-page input:disabled,
.report-page select:disabled,
.report-page textarea:disabled {
    background-color: #F5F5F5;
    border-color: #E0E0E0;
    cursor: not-allowed;
}
[data-theme="dark"] .report-page input:disabled,
[data-theme="dark"] .report-page select:disabled,
[data-theme="dark"] .report-page textarea:disabled {
    background-color: #1a1f26;
    border-color: #2c3340;
    color: #b8c1d1;
    opacity: 1;
}

/* Select flecha */
.report-page select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg fill='%23757575' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 1rem;
    padding-right: 2rem;
}
.report-page select:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg fill='%23111827' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}
.report-page select:disabled {
    background: #F5F5F5 url("data:image/svg+xml,%3Csvg fill='%236b7280' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 1rem;
}
[data-theme="dark"] .report-page select {
    color-scheme: dark;
    color: var(--fg);
    border-color: var(--border);
    background: transparent url("data:image/svg+xml,%3Csvg fill='%23cbd5f5' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 1rem;
}
[data-theme="dark"] .report-page select option,
[data-theme="dark"] .report-page select optgroup {
    background-color: #0f172a;
    color: #e5e7eb;
}
[data-theme="dark"] .report-page select option:checked {
    background-color: #1f2937;
    color: #e5e7eb;
}
[data-theme="dark"] .report-page select:disabled {
    background: #1a1f26 url("data:image/svg+xml,%3Csvg fill='%23cbd5f5' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 1rem;
    border-color: #2c3340;
    color: #d7dde7;
    -webkit-text-fill-color: #d7dde7;
    opacity: 1;
}
[data-theme="dark"] .report-page input:focus,
[data-theme="dark"] .report-page select:focus,
[data-theme="dark"] .report-page textarea:focus {
    background-color: rgba(255,255,255,.04);
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

/* Textareas */
.report-page textarea {
    min-height: 80px;
    resize: vertical;
}

/* Botones principales */
.report-page .btn-primary,
.report-page .btn-secondary {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.report-page .btn-primary {
    background-color: var(--color-primary) !important;
    border: none !important;
    color: white !important;
}
.report-page .btn-primary:hover {
    background-color: var(--color-primary-dark) !important;
}
/* BotÃ¯Â¿Â½n cancelar outline azul */
.report-page .btn-secondary {
    background-color: #fff !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    text-decoration: none !important;
    font-weight: 500;
}
.report-page .btn-secondary:hover {
    background-color: #f5f9ff !important;
}

/* Ripple effect */
.report-page .btn-primary::after, .report-page .btn-secondary::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.4);
    transition: transform 0.5s, opacity 1s;
    pointer-events: none;
}
.report-page .btn-primary:active::after, .report-page .btn-secondary:active::after {
    transform: scale(4);
    opacity: 0;
    transition: 0s;
}

/* BotÃ¯Â¿Â½n GPS */
.report-page .btn-gps {
    background-color: var(--color-primary);
    border: none;
    color: white;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 0.5rem;
}
.report-page .btn-gps:hover {
    background-color: var(--color-primary-dark);
}

.report-page .gps-status:empty {
    display: none;
}

/* Input file oculto + botÃ¯Â¿Â½n custom */
.report-page input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.report-page .file-upload-label {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff !important; ; /* Texto blanco */
    padding: 0.65rem 1.2rem;
    font-size: 1rem !important;
    border-radius: var(--radius);
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.report-page .file-upload-label:hover {
    background-color: var(--color-primary-dark);
}

/* GPS info */
.report-page #coordenadas-section {
    border-radius: var(--radius);
    background-color: #FAFAFA;
    border: 1px solid #E0E0E0;
    padding: 0.75rem;
}
.report-page .gps-status {
    margin-top: 0.7rem;
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, .28);
    background: rgba(37, 99, 235, .1);
    color: #0f172a;
    padding: 0.75rem;
    font-weight: 700;
}
[data-theme="dark"] .report-page .gps-status {
    border-color: rgba(96, 165, 250, .45);
    background: rgba(96, 165, 250, .16);
    color: #dbeafe;
}

/* Mapa */
.report-page #map {
    border-radius: var(--radius);
    border: 1px solid #E0E0E0;
    height: clamp(320px, 60vh, 520px);
}
.report-page #location-validation-msg {
    margin-top: 0.6rem;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.7rem 0.8rem;
    line-height: 1.45;
    font-size: 0.9rem;
    display: none;
}
.report-page #location-validation-msg:not(:empty) {
    display: block;
}
.report-page #location-validation-msg::before {
    margin-right: 0.45rem;
}
.report-page .map-fullscreen-alert {
    position: absolute;
    top: auto;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 560px);
    z-index: 1200;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.7rem 0.8rem;
    line-height: 1.45;
    font-size: 0.95rem;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    pointer-events: none;
}
@media (max-width: 640px) {
    .report-page .map-fullscreen-alert {
        bottom: 76px;
        width: calc(100% - 20px);
    }
}
.report-page .map-fullscreen-alert[hidden] {
    display: none !important;
}
.report-page .map-fullscreen-alert::before {
    margin-right: 0.45rem;
}
.report-page #location-validation-msg.report-alert--error,
.report-page .map-fullscreen-alert.report-alert--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}
.report-page #location-validation-msg.report-alert--error::before,
.report-page .map-fullscreen-alert.report-alert--error::before {
    content: "Ã¢Å¡Â Ã¯Â¸Â";
}
.report-page #location-validation-msg.report-alert--warning,
.report-page .map-fullscreen-alert.report-alert--warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.report-page #location-validation-msg.report-alert--warning::before,
.report-page .map-fullscreen-alert.report-alert--warning::before {
    content: "Ã°Å¸â€œÂ";
}
.report-page #location-validation-msg.report-alert--success,
.report-page .map-fullscreen-alert.report-alert--success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}
.report-page #location-validation-msg.report-alert--success::before,
.report-page .map-fullscreen-alert.report-alert--success::before {
    content: "Ã¢Å“â€¦";
}
.report-page #location-validation-msg.report-alert--info,
.report-page .map-fullscreen-alert.report-alert--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.report-page #location-validation-msg.report-alert--info::before,
.report-page .map-fullscreen-alert.report-alert--info::before {
    content: "Ã¢â€žÂ¹Ã¯Â¸Â";
}
[data-theme="dark"] .report-page #location-validation-msg.report-alert--error,
[data-theme="dark"] .report-page .map-fullscreen-alert.report-alert--error {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}
[data-theme="dark"] .report-page #location-validation-msg.report-alert--warning,
[data-theme="dark"] .report-page .map-fullscreen-alert.report-alert--warning {
    background: rgba(120, 53, 15, 0.35);
    border-color: rgba(251, 146, 60, 0.5);
    color: #fed7aa;
}
[data-theme="dark"] .report-page #location-validation-msg.report-alert--success,
[data-theme="dark"] .report-page .map-fullscreen-alert.report-alert--success {
    background: rgba(20, 83, 45, 0.35);
    border-color: rgba(74, 222, 128, 0.45);
    color: #bbf7d0;
}
[data-theme="dark"] .report-page #location-validation-msg.report-alert--info,
[data-theme="dark"] .report-page .map-fullscreen-alert.report-alert--info {
    background: rgba(30, 58, 138, 0.35);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

/* Breakpoints */
@media (min-width: 768px) {
    .report-page .form-card {
        padding: 1.25rem;
    }
    .report-page .card-header {
        font-size: 1.1rem;
    }
}
@media (min-width: 1024px) {
    .report-page .form-card {
        padding: 1.5rem;
    }
    .report-page .form-header h1 {
        font-size: 1.5rem;
    }
}

/* --- Report map controls --- */
.report-page .maplibregl-ctrl-group {
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  overflow: hidden;
}

.report-page .maplibregl-ctrl-group button {
  background: var(--card);
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--border);
}

.report-page .maplibregl-ctrl-group button:hover,
.report-page .maplibregl-ctrl-group button:focus {
  background-color: rgba(59,130,246,.12);
  color: var(--fg);
}

[data-theme="dark"] .report-page .maplibregl-ctrl-group {
  border-color: rgba(148, 163, 184, 0.28);
  background: #07142d;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.48);
}

[data-theme="dark"] .report-page .maplibregl-ctrl-group button {
  background: #07142d;
  color: #eef6ff;
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

[data-theme="dark"] .report-page .maplibregl-ctrl-group button:hover,
[data-theme="dark"] .report-page .maplibregl-ctrl-group button:focus {
  background: #0b2346;
  color: #ffffff;
}

[data-theme="dark"] .report-page .maplibregl-ctrl-group .maplibregl-ctrl-icon {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

/* Encoding-safe alert icons. */
.report-page #location-validation-msg.report-alert--error::before,
.report-page .map-fullscreen-alert.report-alert--error::before {
  content: "\26A0\FE0F";
}

.report-page #location-validation-msg.report-alert--warning::before,
.report-page .map-fullscreen-alert.report-alert--warning::before {
  content: "\1F4CD";
}

.report-page #location-validation-msg.report-alert--success::before,
.report-page .map-fullscreen-alert.report-alert--success::before {
  content: "\2705";
}

.report-page #location-validation-msg.report-alert--info::before,
.report-page .map-fullscreen-alert.report-alert--info::before {
  content: "\2139\FE0F";
}
