/* =========================================
   VARIABLES GENERALES
========================================= */

:root {
  --public-green-950: #083d39;
  --public-green-800: #075f56;
  --public-green-700: #087466;
  --public-green-100: #e4f4f0;
  --public-green-50: #f2faf7;
  --public-gold: #f4bb35;
  --public-text: #173d37;
  --public-muted: #60736f;
  --public-line: #d7e4e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7faf9;
}

.public-reports-page {
  color: var(--public-text);
  font-family: Inter, sans-serif;
}


/* =========================================
   ENCABEZADO VISUAL
========================================= */

.public-reports-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 245px;
  padding:
    42px
    max(24px, calc((100% - 1440px) / 2));

  border-bottom:
    1px solid
    var(--public-line);

  background:
    linear-gradient(
      110deg,
      #f3fbf8 0%,
      #edf9f5 55%,
      #e1f2ec 100%
    );
}


/* Fotografía de la iglesia */

.public-reports-hero::before {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;

  width: 55%;
  height: 100%;

  content: "";

  opacity: 0.42;

  background-image:
    url("/src/assets/images/iglesia-san-antonio.png");

  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 14%,
      #000000 48%,
      #000000 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 14%,
      #000000 48%,
      #000000 100%
    );
}


/* Capa de integración entre la foto y el contenido */

.public-reports-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;

  content: "";
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(243, 251, 248, 1) 0%,
      rgba(243, 251, 248, 0.98) 37%,
      rgba(232, 247, 242, 0.83) 57%,
      rgba(218, 239, 232, 0.22) 100%
    );
}


/* Texto principal */

.public-reports-hero-copy {
  position: relative;
  z-index: 1;

  max-width: 760px;
}

.public-reports-eyebrow {
  display: block;

  margin-bottom: 8px;

  color: var(--public-green-700);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-reports-hero h1 {
  margin: 0 0 8px;

  color: var(--public-text);

  font-size:
    clamp(2rem, 4vw, 3.25rem);

  line-height: 1.05;
}

.public-reports-hero-copy p {
  max-width: 710px;
  margin: 0;

  color: var(--public-muted);

  font-size:
    clamp(0.92rem, 1.3vw, 1.05rem);

  line-height: 1.55;
}


/* Frase institucional */

.public-reports-slogan {
  position: absolute;
  z-index: 3;

  top: 40%;

  right:
    max(
      30px,
      calc((100% - 1400px) / 2)
    );

  display: block;

  width:
    clamp(190px, 18vw, 250px);

  height: auto;

  /*
   * Mantiene el centrado vertical
   * y levanta el lado derecho.
   */
  transform:
    translateY(-50%)
    rotate(-16deg);

  transform-origin: center;

  object-fit: contain;

  filter:
    contrast(1.05)
    saturate(1.08);

  pointer-events: none;
}


/* =========================================
   RESUMEN DE REPORTES
========================================= */

.public-reports-summary {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 240px));

  gap: 16px;

  max-width: 752px;
  margin-top: 28px;
}

.public-summary-card {
  display: flex;
  align-items: center;

  gap: 14px;

  min-height: 82px;
  padding: 15px 18px;

  border:
    1px solid
    rgba(8, 116, 102, 0.12);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 8px 24px
    rgba(17, 63, 56, 0.05);
}

.public-summary-icon {
  display: grid;

  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  place-items: center;

  border-radius: 50%;

  color: var(--public-green-700);
  background: var(--public-green-100);

  font-size: 1.15rem;
}

.public-summary-card.is-attention
.public-summary-icon {
  color: #9b6900;
  background: #fff2c9;
}

.public-summary-card.is-resolved
.public-summary-icon {
  color: #08705e;
  background: #dff4e9;
}

.public-summary-card small,
.public-summary-card strong {
  display: block;
}

.public-summary-card small {
  color: #4e6660;

  font-size: 0.77rem;
  font-weight: 700;
}

.public-summary-card strong {
  margin-top: 2px;

  color: var(--public-text);

  font-size: 1.6rem;
  line-height: 1;
}


/* =========================================
   CATÁLOGO DE REPORTES
========================================= */

.public-reports-catalog {
  width:
    min(
      1440px,
      calc(100% - 40px)
    );

  margin: 0 auto;
  padding: 24px 0 50px;
}

.public-reports-toolbar {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  align-items: end;

  gap: 18px;

  margin-bottom: 20px;
}

.public-reports-toolbar-controls {
  display: flex;
  align-items: flex-end;

  min-width: 0;

  gap: 12px;
}

.public-reports-toolbar-controls
.public-filter {
  flex: 1 1 0;

  min-width: 0;
}

.public-reports-toolbar-controls
.public-view-switch {
  flex: 0 0 auto;
}


/* =========================================
   BUSCADOR
========================================= */

.public-reports-search {
  display: flex;
  align-items: center;

  gap: 11px;

  height: 48px;
  padding: 0 15px;

  border:
    1px solid
    #cdded9;

  border-radius: 10px;

  color: var(--public-green-700);
  background: #ffffff;
}

.public-reports-search:focus-within,
.public-filter:focus-within {
  border-color:
    var(--public-green-700);

  box-shadow:
    0 0 0 3px
    rgba(8, 116, 102, 0.1);
}

.public-reports-search input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;

  color: var(--public-text);
  background: transparent;

  font: inherit;
}


/* =========================================
   FILTROS
========================================= */

.public-filter {
  position: relative;

  display: block;

  height: 48px;
  padding: 6px 12px 3px;

  border:
    1px solid
    #cdded9;

  border-radius: 10px;

  background: #ffffff;
}

.public-filter span {
  display: block;

  color: #71837f;

  font-size: 0.65rem;
  font-weight: 700;
}

.public-filter select {
  width: 100%;

  padding:
    2px 20px
    2px 0;

  border: 0;
  outline: 0;

  color: var(--public-text);
  background: transparent;

  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}


/* Permite que JavaScript oculte un filtro vacío */

.public-filter[hidden] {
  display: none !important;
}


/* =========================================
   SELECTOR DE PRESENTACIÓN
========================================= */

.public-view-switch {
  display: flex;
  align-items: center;

  gap: 6px;
}

.public-view-switch button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 48px;
  padding: 0 14px;

  border:
    1px solid
    #cdded9;

  border-radius: 10px;

  color: #526b65;
  background: #ffffff;

  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;

  cursor: pointer;
}

.public-view-switch button:hover {
  border-color:
    var(--public-green-700);

  color:
    var(--public-green-700);
}

.public-view-switch button.is-active {
  color: #ffffff;

  border-color:
    var(--public-green-700);

  background:
    var(--public-green-700);
}


/* =========================================
   CUADRÍCULA DE REPORTES
========================================= */

.public-reports-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  min-height: 240px;
}

.public-report-card {
  display: grid;

  grid-template-columns:
    160px minmax(0, 1fr);

  min-width: 0;

  overflow: hidden;

  border:
    1px solid
    var(--public-line);

  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    0 5px 18px
    rgba(16, 58, 52, 0.06);

  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.public-report-card:hover {
  transform:
    translateY(-2px);

  border-color: #b9d4cc;

  box-shadow:
    0 10px 28px
    rgba(16, 58, 52, 0.1);
}


/* Fotografía del reporte */

.public-report-card-media {
  min-height: 220px;

  background: #edf4f2;
}

.public-report-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.public-report-card-placeholder {
  display: grid;

  width: 100%;
  height: 100%;
  min-height: 220px;

  place-items: center;

  color: #79908a;

  background:
    linear-gradient(
      145deg,
      #edf5f2,
      #e2eeea
    );

  font-size: 2rem;
}


/* Contenido de la tarjeta */

.public-report-card-body {
  display: flex;

  min-width: 0;
  padding: 14px;

  flex-direction: column;
}

.public-report-card-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;
}

.public-report-card-tags {
  display: flex;

  min-width: 0;

  flex-wrap: wrap;

  gap: 6px;
}

.public-report-card-tag {
  display: inline-flex;
  align-items: center;

  padding: 5px 8px;

  border-radius: 999px;

  color: var(--public-green-700);
  background: var(--public-green-100);

  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.public-report-card-tag.is-attention {
  color: #895c00;
  background: #fff0bd;
}

.public-report-card-tag.is-resolved {
  color: #08705e;
  background: #dcf3e6;
}

.public-report-card-tag.is-rejected {
  color: #a23b3b;
  background: #fde8e8;
}

.public-report-card-code {
  flex-shrink: 0;

  color: #7a8b87;

  font-size: 0.65rem;
  white-space: nowrap;
}

.public-report-card h2 {
  margin: 10px 0 5px;

  color: var(--public-text);

  font-size: 1rem;
  line-height: 1.3;
}

.public-report-card-description {
  display: -webkit-box;

  margin: 0 0 12px;

  overflow: hidden;

  color: #5b706a;

  font-size: 0.78rem;
  line-height: 1.48;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  /* Propiedad estándar para compatibilidad */
  line-clamp: 3;
}


/* Parte inferior de cada tarjeta */

.public-report-card-footer {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 10px;

  margin-top: auto;
}

.public-report-card-location {
  display: flex;

  min-width: 0;

  align-items: flex-start;

  gap: 7px;

  color: #526c64;

  font-size: 0.69rem;
  line-height: 1.4;
}

.public-report-card-location i {
  flex-shrink: 0;

  margin-top: 2px;

  color: #688078;
}

.public-report-card-location span {
  overflow-wrap: anywhere;
}

.public-report-view-button {
  display: inline-flex;

  flex-shrink: 0;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 8px 10px;

  border:
    1px solid
    var(--public-green-700);

  border-radius: 8px;

  color: var(--public-green-700);
  background: #ffffff;

  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;

  cursor: pointer;
}

.public-report-view-button:hover {
  color: #ffffff;

  background:
    var(--public-green-700);
}


/* =========================================
   PRESENTACIÓN COMO LISTA
========================================= */

.public-reports-grid.is-list {
  grid-template-columns: 1fr;
}

.public-reports-grid.is-list
.public-report-card {
  grid-template-columns:
    180px minmax(0, 1fr);
}

.public-reports-grid.is-list
.public-report-card-media {
  min-height: 170px;
}


/* =========================================
   ESTADOS VACÍOS Y CARGA
========================================= */

.public-reports-empty {
  grid-column: 1 / -1;

  display: grid;

  min-height: 260px;
  padding: 30px;

  place-items: center;
  align-content: center;

  border:
    1px dashed
    #c8d9d3;

  border-radius: 14px;

  color: #688078;
  text-align: center;

  background: #ffffff;
}

.public-reports-empty i {
  margin-bottom: 12px;

  color:
    var(--public-green-700);

  font-size: 1.7rem;
}

.public-reports-empty h2 {
  margin: 0 0 7px;

  color: #24473f;

  font-size: 1rem;
}

.public-reports-empty p {
  max-width: 380px;
  margin: 0;

  font-size: 0.82rem;
  line-height: 1.5;
}


/* =========================================
   PAGINACIÓN
========================================= */

.public-reports-pagination {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: 18px;

  width: 100%;
  margin-top: 24px;
  padding: 18px 0;
}

.public-reports-pagination[hidden] {
  display: none;
}

.public-reports-pagination nav {
  display: flex;
  grid-column: 2;

  align-items: center;
  justify-content: center;

  gap: 9px;
}

.public-page-button {
  display: grid;

  width: 36px;
  height: 36px;

  flex-shrink: 0;
  place-items: center;

  padding: 0;

  border:
    1px solid
    #d8e4e0;

  border-radius: 50%;

  color: #47615b;
  background: #ffffff;

  box-shadow:
    0 3px 10px
    rgba(20, 61, 54, 0.05);

  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.public-page-button:hover:not(:disabled) {
  transform: translateY(-1px);

  border-color:
    var(--public-green-700);

  color:
    var(--public-green-700);
}

.public-page-button.is-active {
  color: #ffffff;

  border-color:
    var(--public-green-700);

  background:
    var(--public-green-700);

  box-shadow:
    0 5px 14px
    rgba(8, 116, 102, 0.2);
}

.public-page-button:disabled {
  opacity: 0.45;

  cursor: default;
}

.public-page-ellipsis {
  display: grid;

  min-width: 22px;
  height: 36px;

  place-items: center;

  color: #71837e;

  font-size: 0.8rem;
  font-weight: 700;
}

.public-reports-pagination > span {
  grid-column: 3;

  justify-self: end;

  color: #6b7e79;

  font-size: 0.75rem;
  white-space: nowrap;
}


/* =========================================
   PIE DE PÁGINA
========================================= */

/* =========================================
   PIE DE PÁGINA
========================================= */

.public-reports-footer {
  padding:
    36px
    max(
      28px,
      calc((100% - 1440px) / 2)
    )
    18px;

  color: #dcebe7;
  background:
    linear-gradient(
      135deg,
      #073f3a 0%,
      #064b44 100%
    );

  font-family: Inter, sans-serif;
}


/* =========================================
   DISTRIBUCIÓN PRINCIPAL
========================================= */

.public-footer-inner {
  display: grid;

  grid-template-columns:
    minmax(280px, 1.2fr)
    minmax(170px, 0.6fr)
    minmax(330px, 1fr);

  align-items: center;

  gap: 42px;

  padding-bottom: 30px;
}


/* =========================================
   INFORMACIÓN DEL SISTEMA
========================================= */

.public-footer-information {
  min-width: 0;
}

.public-footer-brand {
  display: flex;

  align-items: center;

  gap: 14px;

  color: #ffffff;
  text-decoration: none;
}

.public-footer-brand img {
  width: 64px;
  height: 64px;

  flex-shrink: 0;

  object-fit: contain;
}

.public-footer-brand strong,
.public-footer-brand small {
  display: block;
}

.public-footer-brand strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.public-footer-brand small {
  margin-top: 4px;

  color: #b9d2cc;

  font-size: 0.72rem;
}

.public-footer-information > p {
  max-width: 430px;

  margin: 18px 0 0;

  color: #c3d9d4;

  font-size: 0.78rem;
  line-height: 1.55;
}


/* =========================================
   ENLACES ÚTILES
========================================= */

.public-footer-navigation {
  padding-left: 34px;

  border-left:
    1px solid
    rgba(255, 255, 255, 0.16);
}

.public-footer-navigation h2,
.public-footer-action h2 {
  margin: 0 0 13px;

  color: #ffffff;

  font-size: 0.88rem;
}

.public-footer-navigation nav {
  display: grid;

  gap: 10px;
}

.public-footer-navigation nav a {
  width: fit-content;

  color: #dcebe7;

  font-size: 0.76rem;
  text-decoration: none;

  transition:
    color 0.2s,
    transform 0.2s;
}

.public-footer-navigation nav a:hover {
  transform: translateX(3px);

  color: var(--public-gold);
}


/* =========================================
   INVITACIÓN PARA REPORTAR
========================================= */

.public-footer-action {
  display: flex;

  align-items: flex-start;

  gap: 15px;

  padding-left: 34px;

  border-left:
    1px solid
    rgba(255, 255, 255, 0.16);
}


.public-footer-action p {
  max-width: 390px;

  margin: 0 0 15px;

  color: #c3d9d4;

  font-size: 0.76rem;
  line-height: 1.55;
}

.public-footer-action-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 42px;
  padding: 0 17px;

  border-radius: 9px;

  color: #173d37;
  background: var(--public-gold);

  box-shadow:
    0 6px 16px
    rgba(0, 0, 0, 0.14);

  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.public-footer-action-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 9px 20px
    rgba(0, 0, 0, 0.2);
}


/* =========================================
   DERECHOS RESERVADOS
========================================= */

.public-footer-copy {
  padding-top: 17px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.15);

  color: #9dbcb5;

  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}


/* =========================================
   NAVEGACIÓN ACTIVA
========================================= */

.public-reports-header
.main-nav a[aria-current="page"] {
  color: #083d39;

  font-weight: 800;
}

.public-reports-header
.main-nav a[aria-current="page"]::after {
  right: 0 !important;
}

@media (min-width: 1001px) {
  .public-reports-header
  .main-nav a {
    white-space: nowrap;
  }
}


/* =========================================
   PANTALLAS MEDIANAS
========================================= */

@media (max-width: 1180px) {
  .public-reports-toolbar {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .public-reports-toolbar-controls {
    gap: 10px;
  }

  .public-view-switch {
    justify-content: flex-end;
  }

  .public-reports-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* Ajustes para la frase institucional */

@media (max-width: 1050px) {
  .public-reports-slogan {
    top: 39%;
    right: 22px;
    width: 180px;
  }

  .public-reports-hero-copy {
    max-width:
      calc(100% - 200px);
  }

  .public-reports-hero-copy p {
    max-width: 590px;
  }
}


/* =========================================
   TABLETAS Y TELÉFONOS
========================================= */

@media (max-width: 760px) {
  .public-reports-hero {
    min-height: auto;
    padding: 30px 20px;
  }

  .public-reports-hero::before {
  width: 100%;
  height: 100%;

  opacity: 0.58;

  background-position:
    68% center;

  background-size: cover;

  -webkit-mask-image: none;
  mask-image: none;
}

.public-reports-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(243, 251, 248, 0.94) 0%,
      rgba(243, 251, 248, 0.82) 38%,
      rgba(232, 247, 242, 0.42) 65%,
      rgba(218, 239, 232, 0.10) 100%
    );
}

  .public-reports-hero-copy {
    max-width: 100%;
  }

  .public-reports-slogan {
  position: relative;

  top: auto;
  right: auto;

  width: 155px;

  margin:
    20px 0 0 auto;

  /*
   * En móviles se mantiene una
   * inclinación ligeramente menor.
   */
  transform:
    rotate(-5deg);

  transform-origin: center;
}

  .public-reports-summary {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .public-summary-card {
    min-height: 68px;
  }

  .public-reports-catalog {
    width:
      calc(100% - 24px);

    padding-top: 16px;
  }

  .public-reports-toolbar {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .public-reports-search {
    grid-column: 1 / -1;
  }

  .public-filter:last-of-type {
    grid-column: 1 / -1;
  }

  .public-view-switch {
    grid-column: 1 / -1;

    justify-content: stretch;
  }

  .public-view-switch button {
    flex: 1;
  }

  .public-reports-grid {
    grid-template-columns: 1fr;
  }

  .public-reports-pagination {
  grid-template-columns: 1fr;

  justify-items: center;

  gap: 13px;
}

.public-reports-pagination nav,
.public-reports-pagination > span {
  grid-column: 1;

  justify-self: center;
}

.public-reports-pagination nav {
  max-width: 100%;

  gap: 6px;
}

.public-reports-pagination > span {
  white-space: normal;
  text-align: center;
}

  .public-footer-inner {
    align-items: flex-start;

    flex-direction: column;
  }

  .public-reports-header
  .header-actions {
    display: none;
  }
}


/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 520px) {
  .public-reports-toolbar {
    grid-template-columns: 1fr;
  }

  .public-reports-search,
  .public-filter:last-of-type,
  .public-view-switch {
    grid-column: auto;
  }

  .public-report-card,
  .public-reports-grid.is-list
  .public-report-card {
    grid-template-columns: 1fr;
  }

  .public-report-card-media,
  .public-reports-grid.is-list
  .public-report-card-media {
    height: 190px;
    min-height: 190px;
  }

  .public-report-card-footer {
    align-items: stretch;

    flex-direction: column;
  }

  .public-report-view-button {
    justify-content: center;
  }

  .public-footer-inner nav {
    gap: 14px;
  }
}

/* =========================================
   GALERÍA DENTRO DE LAS TARJETAS
========================================= */

.public-report-card-media {
  position: relative;

  min-height: 220px;

  overflow: hidden;

  background: #edf4f2;
}

.public-report-card-image-button {
  display: block;

  width: 100%;
  height: 100%;

  padding: 0;
  border: 0;

  background: transparent;

  cursor: zoom-in;
}

.public-report-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.public-card-gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;

  display: grid;

  width: 30px;
  height: 30px;

  padding: 0;

  place-items: center;

  transform:
    translateY(-50%);

  border:
    1px solid
    rgba(255, 255, 255, 0.65);

  border-radius: 50%;

  color: #ffffff;

  background:
    rgba(8, 61, 57, 0.72);

  cursor: pointer;
}

.public-card-gallery-arrow:hover {
  background:
    var(--public-green-950);
}

.public-card-gallery-arrow.is-previous {
  left: 8px;
}

.public-card-gallery-arrow.is-next {
  right: 8px;
}

.public-card-gallery-count {
  position: absolute;
  z-index: 2;

  right: 8px;
  bottom: 8px;

  padding: 5px 8px;

  border-radius: 999px;

  color: #ffffff;

  background:
    rgba(8, 61, 57, 0.78);

  font-size: 0.63rem;
  font-weight: 800;
}


/* =========================================
   INFORMACIÓN INFERIOR DE LA TARJETA
========================================= */

.public-report-card-footer {
  display: grid;

  gap: 8px;

  margin-top: auto;
  padding-top: 10px;

  border-top:
    1px solid
    #edf2f0;
}

.public-report-card-meta {
  display: flex;

  min-width: 0;

  flex-wrap: wrap;
  justify-content: space-between;

  gap: 6px 12px;

  color: #758680;

  font-size: 0.64rem;
  line-height: 1.35;
}

.public-report-card-meta span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}

.public-report-card-meta i {
  color:
    var(--public-green-700);
}


/* =========================================
   PAGINACIÓN ABREVIADA
========================================= */

.public-page-ellipsis {
  display: grid;

  min-width: 24px;
  height: 38px;

  place-items: center;

  color: #71837f;

  font-weight: 800;
}


/* =========================================
   VISOR AMPLIADO DE FOTOGRAFÍAS
========================================= */

.public-viewer-open {
  overflow: hidden;
}

.public-photo-viewer {
  position: fixed;
  z-index: 5000;
  inset: 0;

  padding: 24px;
}

.public-photo-viewer[hidden] {
  display: none;
}

.public-photo-viewer-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(4, 25, 22, 0.86);

  backdrop-filter:
    blur(4px);
}

.public-photo-viewer-dialog {
  position: relative;

  display: flex;

  width:
    min(1050px, 100%);

  height:
    min(
      760px,
      calc(100vh - 48px)
    );

  margin: 0 auto;

  overflow: hidden;

  flex-direction: column;

  border:
    1px solid
    rgba(255, 255, 255, 0.2);

  border-radius: 16px;

  background: #0b2926;

  box-shadow:
    0 24px 80px
    rgba(0, 0, 0, 0.4);
}

.public-photo-viewer-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 18px;

  color: #ffffff;
}

.public-photo-viewer-header h2 {
  margin: 0 0 3px;

  font-size: 1rem;
}

.public-photo-viewer-header span {
  color: #b8d1cb;

  font-size: 0.75rem;
}

.public-photo-viewer-header button {
  display: grid;

  width: 38px;
  height: 38px;

  padding: 0;

  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.28);

  border-radius: 50%;

  color: #ffffff;
  background: transparent;

  cursor: pointer;
}

.public-photo-viewer-stage {
  position: relative;

  display: grid;

  min-height: 0;

  flex: 1;

  place-items: center;

  overflow: hidden;

  background: #061815;
}

.public-photo-viewer-stage > img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.public-photo-viewer-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;

  display: grid;

  width: 44px;
  height: 44px;

  padding: 0;

  place-items: center;

  transform:
    translateY(-50%);

  border:
    1px solid
    rgba(255, 255, 255, 0.45);

  border-radius: 50%;

  color: #ffffff;

  background:
    rgba(8, 61, 57, 0.78);

  cursor: pointer;
}

.public-photo-viewer-arrow.is-previous {
  left: 16px;
}

.public-photo-viewer-arrow.is-next {
  right: 16px;
}

.public-photo-viewer-thumbnails {
  display: flex;

  min-height: 0;

  gap: 8px;

  padding: 10px 14px;

  overflow-x: auto;

  background: #0b2926;
}

.public-photo-viewer-thumbnails:empty {
  display: none;
}

.public-photo-viewer-thumbnails button {
  flex: 0 0 72px;

  height: 52px;

  padding: 0;

  overflow: hidden;

  border:
    2px solid
    transparent;

  border-radius: 7px;

  background: transparent;

  opacity: 0.62;

  cursor: pointer;
}

.public-photo-viewer-thumbnails
button.is-active {
  border-color:
    var(--public-gold);

  opacity: 1;
}

.public-photo-viewer-thumbnails img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   VISOR EN DISPOSITIVOS PEQUEÑOS
========================================= */

@media (max-width: 520px) {
  .public-photo-viewer {
    padding: 0;
  }

  .public-photo-viewer-dialog {
    width: 100%;
    height: 100%;

    border: 0;
    border-radius: 0;
  }

  .public-photo-viewer-arrow {
    width: 38px;
    height: 38px;
  }

  .public-photo-viewer-arrow.is-previous {
    left: 8px;
  }

  .public-photo-viewer-arrow.is-next {
    right: 8px;
  }
}

/* =========================================
   MOSTRAR COMPLETA LA FOTOGRAFÍA AMPLIADA
========================================= */

.public-photo-viewer-stage {
  padding: 18px;

  background: #061815;
}

.public-photo-viewer-stage
#publicPhotoViewerImage {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  margin: auto;

  object-fit: contain;
  object-position: center;

  border-radius: 6px;
}

/* =========================================
   DISEÑO DEFINITIVO DE LAS TARJETAS
========================================= */

.public-reports-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.public-report-card {
  display: grid;

  /*
   * La fotografía será más ancha,
   * semejante a la primera imagen.
   */
 grid-template-columns:
  225px
  minmax(0, 1fr);

  min-width: 0;
  min-height: 245px;

  overflow: hidden;

  border:
    1px solid
    #d4e2de;

  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 7px 22px
    rgba(16, 58, 52, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.public-report-card:hover {
  transform:
    translateY(-3px);

  border-color: #aacdc4;

  box-shadow:
    0 13px 32px
    rgba(16, 58, 52, 0.13);
}


/* =========================================
   FOTOGRAFÍA DE LA TARJETA
========================================= */

.public-report-card-media {
  position: relative;

  width:
    calc(100% - 8px);

  min-height: 229px;

  margin:
    8px 0 8px 8px;

  overflow: hidden;

  border-radius: 10px;

  background: #e8f0ee;
}

.public-report-card-media
.public-report-card-placeholder {
  min-height: 100%;
}

.public-report-card-image-button {
  display: block;

  width: 100%;
  height: 100%;

  padding: 0;
  border: 0;

  background: transparent;

  cursor: zoom-in;
}

.public-report-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.25s ease;
}

.public-report-card-placeholder {
  display: grid;

  width: 100%;
  height: 100%;
  min-height: 245px;

  place-items: center;

  color: #79908a;

  background:
    linear-gradient(
      145deg,
      #edf5f2,
      #e2eeea
    );

  font-size: 2rem;
}


/* =========================================
   CONTENIDO DE LA TARJETA
========================================= */

.public-report-card-body {
  display: flex;

  min-width: 0;
  padding: 16px 17px;

  flex-direction: column;
}

.public-report-card-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}

.public-report-card-tags {
  display: flex;

  min-width: 0;

  flex-wrap: wrap;

  gap: 7px;
}

.public-report-card-tag {
  display: inline-flex;

  align-items: center;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
}

.public-report-card-code {
  flex-shrink: 0;

  padding-top: 3px;

  color: #748681;

  font-size: 0.67rem;
  white-space: nowrap;
}


/* Título */

.public-report-card h2 {
  margin:
    13px 0 6px;

  color: #123f38;

  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}


/* Descripción */

.public-report-card-description {
  display: -webkit-box;

  margin: 0 0 14px;

  overflow: hidden;

  color: #566b66;

  font-size: 0.82rem;
  line-height: 1.5;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;
}


/* =========================================
   UBICACIÓN Y FECHA
========================================= */

.public-report-card-footer {
  display: grid;

  gap: 8px;

  margin-top: auto;
  padding-top: 10px;

  /*
   * La primera imagen no tiene una
   * línea marcada encima de la ubicación.
   */
  border-top: 0;
}

.public-report-card-location {
  display: flex;

  min-width: 0;

  align-items: flex-start;

  gap: 8px;

  color: #536b65;

  font-size: 0.73rem;
  line-height: 1.45;
}

.public-report-card-location i {
  flex-shrink: 0;

  margin-top: 2px;

  color: #66817a;

  font-size: 0.78rem;
}

.public-report-card-location span {
  overflow-wrap: anywhere;
}

.public-report-card-meta {
  display: flex;

  min-width: 0;

  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 6px 12px;

  color: #71827e;

  font-size: 0.67rem;
  line-height: 1.4;
}

.public-report-card-meta span {
  display: inline-flex;

  align-items: center;

  gap: 6px;
}

.public-report-card-meta i {
  color:
    var(--public-green-700);

  font-size: 0.7rem;
}


/* =========================================
   PRESENTACIÓN COMO LISTA
========================================= */

.public-reports-grid.is-list
.public-report-card {
  grid-template-columns:
    230px minmax(0, 1fr);

  min-height: 220px;
}

.public-reports-grid.is-list
.public-report-card-media {
  min-height: 220px;
}


/* =========================================
   TARJETAS EN TABLETAS
========================================= */

@media (max-width: 1180px) {
  .public-reports-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .public-report-card {
    grid-template-columns:
      205px minmax(0, 1fr);
  }
}

/* =========================================
   TARJETAS EN TELÉFONOS
========================================= */

@media (max-width: 620px) {
  .public-report-card,
  .public-reports-grid.is-list
  .public-report-card {
    grid-template-columns: 1fr;

    min-height: 0;
  }

  .public-report-card-media,
  .public-reports-grid.is-list
  .public-report-card-media {
    width: 100%;
    height: 210px;
    min-height: 210px;
  }

  .public-report-card-body {
    padding: 15px;
  }

  .public-report-card-top {
    gap: 8px;
  }

  .public-report-card h2 {
    margin-top: 11px;

    font-size: 1rem;
  }

  .public-report-card-description {
    font-size: 0.78rem;

    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 760px) {
  .public-reports-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .public-report-card,
  .public-reports-grid.is-list
  .public-report-card {
    grid-template-columns: 1fr;
  }

  .public-report-card-media,
  .public-reports-grid.is-list
  .public-report-card-media {
    width:
      calc(100% - 16px);

    height: 210px;
    min-height: 210px;

    margin: 8px;

    border-radius: 10px;
  }
}

/* =========================================
   AJUSTE FINAL DE LA FICHA
========================================= */

.public-report-card {
  min-height: 250px;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #ffffff 72%,
      #fbfdfc 100%
    );

  box-shadow:
    0 8px 24px
    rgba(16, 58, 52, 0.09);
}


/* Evita que la fotografía determine
   la altura completa de la tarjeta */

.public-report-card-media {
  align-self: stretch;

  min-height: 234px;
}

.public-report-card-image-button {
  position: absolute;

  inset: 0;

  display: grid;

  width: 100%;
  height: 100%;

  place-items: center;

  background: #edf4f2;
}

.public-report-card-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #edf4f2;
}


/* =========================================
   CONTENIDO PRINCIPAL
========================================= */

.public-report-card-body {
  padding: 17px 18px;
}

.public-report-card-top {
  padding-bottom: 3px;
}

.public-report-card-tag {
  padding: 6px 11px;

  font-size: 0.68rem;
}

.public-report-card-code {
  padding-top: 4px;

  color: #6e827d;

  font-size: 0.67rem;
}

.public-report-card h2 {
  margin:
    12px 0 6px;

  font-size: 1.1rem;
  line-height: 1.25;
}

.public-report-card-description {
  margin-bottom: 13px;

  color: #5b6f6a;

  font-size: 0.82rem;
  line-height: 1.5;

  /*
   * Un texto largo mostrará
   * hasta tres líneas.
   */
  -webkit-line-clamp: 3;
  line-clamp: 3;
}


/* =========================================
   INFORMACIÓN INFERIOR
========================================= */

.public-report-card-footer {
  gap: 7px;

  margin-top: auto;
  padding: 10px 12px;

  border:
    1px solid
    #e5efec;

  border-radius: 10px;

  background: #f7fbf9;
}

.public-report-card-location {
  color: #526a64;

  font-size: 0.72rem;
}

.public-report-card-location i {
  color:
    var(--public-green-700);
}

.public-report-card-meta {
  color: #70827d;

  font-size: 0.66rem;
}

.public-report-card-meta i {
  color:
    var(--public-green-700);
}


/* =========================================
   EFECTO AL PASAR EL CURSOR
========================================= */

.public-report-card:hover {
  transform:
    translateY(-3px);

  border-color: #a9cec5;

  box-shadow:
    0 14px 34px
    rgba(16, 58, 52, 0.14);
}



/* =========================================
   AJUSTE PARA MÓVILES
========================================= */

@media (max-width: 620px) {
  .public-report-card {
    min-height: 0;
  }

  .public-report-card-media {
    position: relative;

    min-height: 210px;
  }

  .public-report-card-body {
    padding: 15px;
  }

  .public-report-card-footer {
    padding: 9px 10px;
  }

  .public-report-card-description {
    font-size: 0.78rem;

    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* =========================================
   COLOR DIFERENTE PARA LA CATEGORÍA
========================================= */

/*
 * La primera etiqueta siempre corresponde
 * a la categoría del reporte.
 */
.public-report-card-tags
.public-report-card-tag:first-child {
  color: #245f8f;

  background: #e2f0fb;

  border:
    1px solid
    #c9e3f6;
}

/*
 * El estado conserva sus colores:
 * verde, amarillo o rojo.
 */
.public-report-card-tags
.public-report-card-tag.is-attention {
  color: #895c00;
  background: #fff0bd;
  border-color: #f7df91;
}

.public-report-card-tags
.public-report-card-tag.is-resolved {
  color: #08705e;
  background: #dcf3e6;
  border-color: #c6e9d7;
}

.public-report-card-tags
.public-report-card-tag.is-rejected {
  color: #a23b3b;
  background: #fde8e8;
  border-color: #f4cccc;
}


/* =========================================
   TARJETAS DE ALTURA UNIFORME
========================================= */

.public-report-card {
  height: 300px;
  min-height: 300px;
}


/* =========================================
   DISTRIBUCIÓN INTERNA DE LA TARJETA
========================================= */

.public-report-card-body {
  display: grid;

  /*
   * 1. Categoría, estado y código
   * 2. Título
   * 3. Descripción desplazable
   * 4. Dirección y fecha
   */
  grid-template-rows:
  auto
  auto
  3.6rem
  auto
  auto
  auto;

  min-width: 0;
  min-height: 0;
  height: 100%;

  padding: 16px 18px;
}


/* =========================================
   TÍTULO
========================================= */

.public-report-card h2 {
  margin:
    11px 0 6px;

  font-size: 1.08rem;
  line-height: 1.25;

  overflow-wrap: anywhere;
}


/* =========================================
   DESCRIPCIÓN EN LAS TARJETAS
========================================= */

.public-report-card-description {
  display: -webkit-box;

  width: 100%;
  height: 3.6rem;
  min-height: 3.6rem;
  max-height: 3.6rem;

  margin: 0 0 8px;

  overflow: hidden;

  color: #566b66;

  font-size: 0.8rem;
  line-height: 1.5;

  overflow-wrap: anywhere;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;
}

/* En la vista Lista se muestra
   la descripción completa */

.public-reports-grid.is-list
.public-report-card {
  height: auto;
  min-height: 260px;
}

.public-reports-grid.is-list
.public-report-card-body {
  height: auto;

  grid-template-rows:
    auto
    auto
    auto
    auto
    auto
    auto;
}

.public-reports-grid.is-list
.public-report-card-description {
  display: block;

  height: auto;
  min-height: 0;
  max-height: none;

  overflow: visible;

  -webkit-line-clamp: unset;
  line-clamp: unset;
}



/* =========================================
   INFORMACIÓN INFERIOR
========================================= */

.public-report-card-footer {
  margin-top: 0;

  flex-shrink: 0;
}


/* =========================================
   FOTOGRAFÍA
========================================= */

.public-report-card-media {
  height:
    calc(100% - 16px);

  min-height: 0;
}


/* =========================================
   VISTA EN TELÉFONOS
========================================= */

@media (max-width: 620px) {
  .public-report-card,
  .public-reports-grid.is-list
  .public-report-card {
    height: auto;
    min-height: 0;
  }

  .public-report-card-body {
  height: auto;
  min-height: 280px;
}

  .public-report-card-description {
    font-size: 0.78rem;
  }

  .public-report-card-media,
  .public-reports-grid.is-list
  .public-report-card-media {
    height: 210px;
    min-height: 210px;
  }
}

/* =========================================
   MENSAJE AUTOMÁTICO DEL ESTADO
========================================= */

.public-report-state-message {
  display: flex;
  align-items: center;
  gap: 7px;

  min-width: 0;
  margin: 0 0 9px;
  padding: 7px 10px;

  border: 1px solid #f1df9e;
  border-radius: 8px;

  color: #765400;
  background: #fff8df;

  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.35;
}

.public-report-state-message i {
  flex-shrink: 0;
  color: #bc8700;
}

.public-report-state-message.is-resolved {
  border-color: #cbe8d9;

  color: #096855;
  background: #edf9f3;
}

.public-report-state-message.is-resolved i {
  color: #098069;
}

/* =========================================
   BOTÓN PARA LEER LA DESCRIPCIÓN
========================================= */

.public-report-description-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;

  width: fit-content;
  margin: 2px 0 9px;
  padding: 0;

  border: 0;

  color: #087466;
  background: transparent;

  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;

  cursor: pointer;
}

.public-report-description-button:hover {
  color: #054f46;
  text-decoration: underline;
}

.public-report-description-button i {
  font-size: 0.62rem;
}

.public-report-description-button[hidden],
.public-reports-grid.is-list
.public-report-description-button {
  display: none;
}

/* =========================================
   MODAL DE DESCRIPCIÓN COMPLETA
========================================= */

body.public-description-open {
  overflow: hidden;
}

.public-description-modal {
  position: fixed;
  z-index: 5000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 20px;
}

.public-description-modal[hidden] {
  display: none;
}

.public-description-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(5, 34, 31, 0.62);

  backdrop-filter: blur(3px);
}

.public-description-dialog {
  position: relative;
  z-index: 1;

  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 40px));

  overflow: hidden;

  border: 1px solid #d2e3de;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 24px 70px
    rgba(4, 31, 28, 0.28);
}

.public-description-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 18px 20px;

  border-bottom: 1px solid #deebe7;

  background:
    linear-gradient(
      135deg,
      #edf9f5,
      #ffffff
    );
}

.public-description-header span {
  display: block;

  margin-bottom: 4px;

  color: #71837e;

  font-size: 0.7rem;
  font-weight: 700;
}

.public-description-header h2 {
  margin: 0;

  color: #123f38;

  font-size: 1.2rem;
  line-height: 1.3;
}

.public-description-header button {
  display: grid;
  flex-shrink: 0;
  place-items: center;

  width: 34px;
  height: 34px;

  padding: 0;

  border: 1px solid #cedfda;
  border-radius: 50%;

  color: #31564f;
  background: #ffffff;

  cursor: pointer;
}

.public-description-header button:hover {
  color: #ffffff;
  background: #087466;
}

.public-description-content {
  max-height: calc(100vh - 155px);

  overflow-y: auto;

  padding: 20px;
}

.public-description-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 18px;
}

.public-description-category,
.public-description-status {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 800;
}

.public-description-category {
  color: #245f8f;
  background: #e2f0fb;
}

.public-description-status.is-attention {
  color: #895c00;
  background: #fff0bd;
}

.public-description-status.is-resolved {
  color: #08705e;
  background: #dcf3e6;
}

.public-description-section {
  padding: 16px;

  border: 1px solid #dfebe7;
  border-radius: 12px;

  background: #f9fcfb;
}

.public-description-section h3 {
  margin: 0 0 9px;

  color: #173f38;

  font-size: 0.82rem;
}

.public-description-section p {
  margin: 0;

  color: #4f6660;

  font-size: 0.88rem;
  line-height: 1.65;

  overflow-wrap: anywhere;
}

.public-description-state {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 14px;
  padding: 10px 12px;

  border: 1px solid #f1df9e;
  border-radius: 10px;

  color: #765400;
  background: #fff8df;

  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.public-description-state.is-resolved {
  border-color: #cbe8d9;

  color: #096855;
  background: #edf9f3;
}

.public-description-information {
  display: grid;
  gap: 10px;

  margin-top: 14px;
}

.public-description-information > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 11px 12px;

  border: 1px solid #e2ece9;
  border-radius: 10px;

  color: #087466;
}

.public-description-information span {
  display: grid;
  gap: 3px;
}

.public-description-information small {
  color: #748580;

  font-size: 0.66rem;
}

.public-description-information strong {
  color: #365952;

  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 620px) {
  .public-description-modal {
    padding: 12px;
  }

  .public-description-dialog {
    max-height: calc(100vh - 24px);

    border-radius: 13px;
  }

  .public-description-header,
  .public-description-content {
    padding: 16px;
  }

  .public-description-header h2 {
    font-size: 1.05rem;
  }
}

/* =========================================
   BARRA RESPONSIVA
========================================= */

@media (max-width: 850px) {
  .public-reports-toolbar {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .public-reports-search {
    grid-column: auto;

    width: 100%;
  }

  .public-reports-toolbar-controls {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;
  }

  .public-reports-toolbar-controls
  .public-view-switch {
    grid-column: 1 / -1;

    width: 100%;
  }

  .public-reports-toolbar-controls
  .public-view-switch button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .public-reports-toolbar-controls {
    grid-template-columns: 1fr;
  }

  .public-reports-toolbar-controls
  .public-filter,
  .public-reports-toolbar-controls
  .public-view-switch {
    grid-column: auto;

    width: 100%;
  }
}

@media (max-width: 420px) {
  .public-page-button {
    width: 32px;
    height: 32px;

    font-size: 0.7rem;
  }

  .public-reports-pagination nav {
    gap: 5px;
  }
}

/* =========================================
   FOOTER RESPONSIVO
========================================= */

@media (max-width: 950px) {
  .public-footer-inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(260px, 0.8fr);

    align-items: start;
  }

  .public-footer-navigation {
    padding-left: 28px;
  }

  .public-footer-action {
    grid-column: 1 / -1;

    padding:
      24px 0 0;

    border-top:
      1px solid
      rgba(255, 255, 255, 0.14);

    border-left: 0;
  }
}


/* =========================================
   FOOTER MÁS COMPACTO
========================================= */

.public-reports-footer {
  padding:
    20px
    max(
      28px,
      calc((100% - 1440px) / 2)
    )
    12px;
}

.public-footer-inner {
  align-items: center;

  gap: 30px;

  padding-bottom: 16px;
}


/* Identidad */

.public-footer-brand {
  gap: 11px;
}

.public-footer-brand img {
  width: 56px;
  height: 56px;

  flex-shrink: 0;

  padding: 4px;

  border:
    3px solid
    #d6ae42;

  border-radius: 50%;

  background: #ffffff;

  object-fit: contain;

  box-shadow:
    0 4px 12px
    rgba(0, 0, 0, 0.18);
}

.public-footer-brand strong {
  font-size: 0.8rem;
}

.public-footer-brand small {
  margin-top: 2px;

  font-size: 0.65rem;
}

.public-footer-information > p {
  margin-top: 10px;

  font-size: 0.7rem;
  line-height: 1.4;
}


/* Enlaces */

.public-footer-navigation {
  padding-left: 28px;
}

.public-footer-navigation h2,
.public-footer-action h2 {
  margin-bottom: 8px;

  font-size: 0.78rem;
}

.public-footer-navigation nav {
  gap: 6px;
}

.public-footer-navigation nav a {
  font-size: 0.69rem;
}


/* Invitación */

.public-footer-action {
  gap: 12px;

  padding-left: 28px;
}

.public-footer-action-icon {
  display: grid;

  width: 48px;
  height: 44px;

  flex-shrink: 0;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
}

.public-footer-action-icon img {
  display: block;

  width: 48px;
  height: 44px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 3px 5px
      rgba(0, 0, 0, 0.16)
    );
}

.public-footer-action p {
  margin-bottom: 9px;

  font-size: 0.69rem;
  line-height: 1.4;
}

.public-footer-action-button {
  min-height: 36px;
  padding: 0 14px;

  border-radius: 8px;

  font-size: 0.68rem;
}


/* Derechos reservados */

.public-footer-copy {
  padding-top: 11px;

  font-size: 0.62rem;
}

/* =========================================
   FOOTER EN DISPOSITIVOS PEQUEÑOS
========================================= */

@media (max-width: 650px) {
  .public-reports-footer {
    padding:
      20px
      18px
      13px;
  }

  .public-footer-inner {
    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

    padding-bottom: 16px;
  }


  /* Identidad */

  .public-footer-information {
    text-align: center;
  }

  .public-footer-brand {
    justify-content: center;

    gap: 10px;
  }

  .public-footer-brand img {
    width: 48px;
    height: 48px;

    padding: 3px;
  }

  .public-footer-brand span {
    text-align: left;
  }

  .public-footer-brand strong {
    font-size: 0.76rem;
  }

  .public-footer-brand small {
    font-size: 0.62rem;
  }

  .public-footer-information > p {
    max-width: 330px;

    margin:
      9px
      auto
      0;

    font-size: 0.66rem;
    line-height: 1.45;
  }


  /* Enlaces en una sola fila */

  .public-footer-navigation {
    margin-top: 15px;
    padding:
      14px
      0
      0;

    border-top:
      1px solid
      rgba(255, 255, 255, 0.14);

    border-left: 0;
  }

  .public-footer-navigation h2 {
    display: none;
  }

  .public-footer-navigation nav {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap:
      8px
      18px;
  }

  .public-footer-navigation nav a {
    font-size: 0.67rem;
    font-weight: 600;
  }


  /* Invitación en forma de tarjeta */

  .public-footer-action {
    display: grid;

    grid-template-columns:
      34px
      minmax(0, 1fr);

    align-items: start;

    gap: 9px;

    margin-top: 15px;
    padding: 14px;

    border: 1px solid
      rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    background:
      rgba(255, 255, 255, 0.055);
  }

  .public-footer-action-icon,
  .public-footer-action-icon img {
    width: 34px;
    height: 32px;
  }

  .public-footer-action > div {
    min-width: 0;
  }

  .public-footer-action h2 {
    margin:
      0
      0
      5px;

    font-size: 0.73rem;
    line-height: 1.3;
  }

  .public-footer-action p {
    margin:
      0
      0
      10px;

    font-size: 0.64rem;
    line-height: 1.45;
  }

  .public-footer-action-button {
    width: 100%;
    min-height: 35px;

    padding: 0 11px;

    font-size: 0.65rem;
  }


  /* Derechos reservados */

  .public-footer-copy {
    padding-top: 11px;

    font-size: 0.59rem;
    line-height: 1.45;
    text-align: center;
  }
}

/* =========================================
   FOTOGRAFÍAS COMPLETAS EN LAS TARJETAS
========================================= */

.public-report-card-image,
.public-report-card:hover
.public-report-card-image,
.public-report-card-image-button:hover
.public-report-card-image {
  position: absolute;
  z-index: 1;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transform: none;

  background: transparent;
}
/* =========================================
   FONDO PARA FOTOGRAFÍAS HORIZONTALES
========================================= */

.public-report-card-media {
  isolation: isolate;

  background: #dfeae7;
}

.public-report-card-media::before {
  position: absolute;
  z-index: 0;
  inset: -12px;

  content: "";

  background-image:
    var(--public-card-photo);

  background-position: center;
  background-size: cover;

  filter:
    blur(12px)
    saturate(0.85);

  opacity: 0.3;

  transform: scale(1.08);

  pointer-events: none;
}

.public-report-card-image-button {
  z-index: 1;

  background: transparent;
}

.public-report-card-placeholder {
  position: relative;
  z-index: 1;
}

.public-card-gallery-arrow,
.public-card-gallery-count {
  z-index: 3;
}

/* =========================================
   VISTA ÚNICA EN DISPOSITIVOS PEQUEÑOS
========================================= */

@media (max-width: 650px) {
  /*
   * En móvil no se muestra el selector
   * porque ambas presentaciones terminan
   * utilizando una sola columna.
   */

  .public-view-switch {
    display: none !important;
  }

  /*
   * Fuerza una sola columna aunque la
   * página estuviera anteriormente en lista.
   */

  .public-reports-grid,
  .public-reports-grid.is-list {
    grid-template-columns: 1fr;
  }

  .public-report-card,
  .public-reports-grid.is-list
  .public-report-card {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;
    height: auto;
    min-height: 0;
  }

  .public-report-card-media,
  .public-reports-grid.is-list
  .public-report-card-media {
    width: calc(100% - 16px);
    height: 220px;
    min-height: 220px;

    margin: 8px;

    border-radius: 11px;
  }

  .public-report-card-body,
  .public-reports-grid.is-list
  .public-report-card-body {
    height: auto;
    min-height: 280px;

    padding: 14px;
  }

  /*
   * En móvil se conservan las tres líneas
   * y el botón para abrir la descripción.
   */

  .public-reports-grid.is-list
  .public-report-card-description {
    display: -webkit-box;

    height: 3.6rem;
    min-height: 3.6rem;
    max-height: 3.6rem;

    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    line-clamp: 3;
  }

  .public-reports-grid.is-list
  .public-report-description-button {
    display: inline-flex;
  }

  .public-report-card-footer,
  .public-reports-grid.is-list
  .public-report-card-footer {
    width: 100%;
  }
}