:root {
  --app-bg: #edf3f0;
  --panel: #ffffff;
  --panel-soft: #f7faf9;
  --ink: #0d2027;
  --muted: #64748b;
  --line: #cfdcda;
  --line-strong: #b9cbc8;
  --brand: #0f5b66;
  --brand-2: #164f5d;
  --action: #e85d2a;
  --success: #0f8b62;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(15, 35, 45, 0.09);
  --shadow-strong: 0 22px 48px rgba(17, 24, 39, 0.14);
  --display-font: Montserrat, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

main {
  min-height: 70vh;
}

.nav,
.site-footer > div,
.site-footer > a,
.content-section,
.admin-hero,
.admin-layout,
.login-layout {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.institutional-strip {
  min-height: 24px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 900;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 0.98;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: #fff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-logo--light {
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.login-link {
  background: var(--ink);
  color: #fff !important;
}

.nav-menu-button,
.app-tabbar {
  display: none;
}

.nav-menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.nav-menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 56px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer > div {
  justify-self: end;
  display: grid;
  gap: 3px;
}

.site-footer > a {
  width: auto;
  justify-self: start;
  margin-right: max(96px, calc((100vw - 1280px) / 2 + 96px));
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #9ad4cf;
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Contenedor de columnas del footer: pisa el layout angosto de ".site-footer > div"
   (pensado para un bloque simple) para poder mostrar marca + navegación + contacto. */
.site-footer > .site-footer-columns {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}

.site-footer-brand {
  display: grid;
  gap: 4px;
  flex: 1 1 220px;
  max-width: 320px;
}

.site-footer-links {
  display: grid;
  gap: 7px;
  align-content: start;
  flex: 0 1 180px;
}

.site-footer-heading {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .site-footer > .site-footer-columns {
    width: min(calc(100% - 24px), 520px);
    margin-inline: auto;
    justify-self: stretch;
    flex-direction: column;
    gap: 20px;
  }
}

.legal-page {
  max-width: 760px;
  padding-bottom: 64px;
}

.legal-page h1 {
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 8px 0 18px;
}

.legal-page h2 {
  font-family: var(--display-font);
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-page strong {
  color: var(--ink);
}

.legal-page a {
  color: var(--brand);
  font-weight: 800;
}

.eyebrow,
.badge,
.microsite-type-badge,
.card-tags span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 91, 102, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef7f6;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 950;
}

.eyebrow,
.badge,
.microsite-type-badge {
  border-color: rgba(232, 93, 42, 0.24);
  background: #fff0e9;
  color: #a4411e;
}

.primary-link,
.button,
.login-card button,
.admin-form button,
.card-actions .icon-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: none;
}

.primary-link,
.button.action,
.login-card button,
.admin-form button:not(.button):not(.status):not(.link-button) {
  border: 1px solid var(--action);
  background: var(--action);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.admin-hero h1,
.admin-form h2,
.admin-list h2,
.login-card h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.admin-hero p,
.admin-form p,
.admin-list p,
.login-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.business-card,
.microsite-tile,
.admin-form,
.admin-list,
.login-card,
.map-card,
.activity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.details-list a,
.back-link {
  color: var(--brand);
  font-weight: 950;
  text-decoration: none;
}

.business-card,
.microsite-tile {
  min-width: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.microsite-tile a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.business-card:hover,
.microsite-tile:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.card-media,
.microsite-tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #e7eef2;
}

.card-media img,
.microsite-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media .badge,
.microsite-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.microsite-explore-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: #fff;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 950;
}

.card-body,
.microsite-tile-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body h3,
.microsite-tile-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
}

.card-body p,
.microsite-tile-body p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.card-tags,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: center;
}

.card-actions .icon-link {
  width: 42px;
  padding: 0;
}

.card-actions .icon-link img {
  width: 18px;
  height: 18px;
}

.location-link {
  border-color: #164f5d;
  background: #164f5d;
}

.whatsapp-link {
  border-color: var(--success);
  background: var(--success);
}

.content-section,
.admin-layout {
  padding-top: 44px;
}

.login-card label,
.admin-form label {
  color: #435366;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-filters input,
.admin-filters select,
.login-card input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form-grid textarea,
.admin-form textarea {
  min-height: 120px;
  padding-block: 10px;
  resize: vertical;
}

.map-card {
  overflow: hidden;
}

.map {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dfe8ec;
  overflow: hidden;
}

.tourism-map-marker {
  --marker-color: #e85d2a;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.tourism-map-marker__pin {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--marker-color);
  box-shadow: 0 6px 14px rgba(13, 32, 39, 0.28);
  color: #fff;
}

.tourism-map-marker__pin svg {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 1px 1px rgba(13, 32, 39, 0.2));
}

.tourism-map-marker--alojamientos { --marker-color: #2563eb; }
.tourism-map-marker--bodegas { --marker-color: #9a3153; }
.tourism-map-marker--comida,
.tourism-map-marker--gastronomia { --marker-color: #e85d2a; }
.tourism-map-marker--servicios { --marker-color: #0f5b66; }
.tourism-map-marker--turismo { --marker-color: #c28721; }

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel-soft);
  color: var(--muted);
}

.empty-state.inline {
  display: inline-flex;
}

.business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.details-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
}

.details-list dt {
  color: #435366;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.details-list dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.activity-card {
  overflow: hidden;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.activity-card div {
  padding: 16px;
}

.login-layout {
  min-height: calc(100svh - 150px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
  padding: 28px;
}

.login-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.45rem);
}

.login-card label,
.login-card input {
  display: block;
  margin-top: 12px;
}

.login-card button {
  width: 100%;
  margin-top: 16px;
}

.contact-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 38px auto 56px;
}

.contact-intro {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1.04;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form h2 {
  margin-top: 4px;
}

.contact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-grid .full {
  grid-column: 1 / -1;
}

.contact-map-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.contact-map-tools .button {
  width: auto;
}

.contact-map-tools span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.wizard-progress {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
}

.wizard-progress-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.wizard-progress-label strong {
  color: var(--ink);
}

.wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 200ms ease;
}

.wizard-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-step.is-active {
  display: grid;
  gap: 18px;
}

.wizard-step legend {
  padding: 0;
  margin: 0 0 2px;
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.wizard-nav .button {
  width: auto;
}

.wizard-nav .button[hidden] {
  display: none;
}

.wizard-nav #wizardNextButton,
.wizard-nav #wizardSubmitButton {
  margin-left: auto;
}

label:has(> #adminBusinessLat),
label:has(> #adminBusinessLng) {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    width: min(calc(100% - 24px), 620px);
    margin-top: 18px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.notice {
  border-radius: var(--radius);
  padding: 12px;
}

.notice.error {
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: #fff1f0;
  color: var(--danger);
}

.notice.success {
  border: 1px solid rgba(15, 139, 98, 0.22);
  background: #edfff8;
  color: var(--success);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(15, 35, 45, 0.06);
}

.admin-hero h1 {
  margin: 2px 0 4px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.admin-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.admin-form,
.admin-list {
  padding: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.admin-current-image,
.image-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.gallery-manager {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
}

.gallery-manager strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.image-upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.image-upload-row > span:first-child {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
}

.image-upload-row input[type="file"],
.gallery-upload-grid input[type="file"] {
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.image-upload-row input[type="file"]::file-selector-button,
.gallery-upload-grid input[type="file"]::file-selector-button {
  min-height: 38px;
  margin: 0;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
}

.image-upload-row input[type="file"]::-webkit-file-upload-button,
.gallery-upload-grid input[type="file"]::-webkit-file-upload-button {
  min-height: 38px;
  margin: 0;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
}

.gallery-current,
.gallery-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.gallery-current-item {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.gallery-current-item img,
.gallery-upload-grid .image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-current-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.gallery-current-item input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.gallery-upload-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.gallery-upload-grid input {
  min-height: auto;
}

.gallery-upload-grid .image-preview {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  overflow: hidden;
}

.image-upload-row .image-preview {
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 950;
}

#micrositioHeroPreview,
#micrositioThumbPreview {
  width: min(180px, 100%);
  min-height: 0;
  height: 110px;
  justify-self: start;
}

#micrositioThumbPreview {
  width: 120px;
  height: 120px;
}

.image-upload-row .image-preview img,
.gallery-upload-grid .image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-current-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.admin-list {
  overflow: hidden;
}

.admin-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-list th,
.admin-list td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-list th {
  background: var(--panel-soft);
  color: #435366;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-list tr:last-child td {
  border-bottom: 0;
}

.admin-list td a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav,
.site-footer > div,
.site-footer > a,
.content-section,
.admin-hero,
.admin-layout,
.login-layout {
    width: min(calc(100% - 24px), 520px);
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 62px;
  }

  .nav-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 86px;
    right: 12px;
    left: 12px;
    z-index: 120;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow-strong);
  }

  .nav.is-open .nav-links {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    color: var(--ink);
  }

  .app-tabbar {
    display: none !important;
  }

  .business-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-section,
.admin-layout {
    padding-top: 34px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .map {
    min-height: 320px;
  }

  .admin-form,
.admin-list,
.login-card {
    padding: 16px;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-list {
    overflow-x: auto;
  }

  .admin-list table,
  .admin-list thead,
  .admin-list tbody,
  .admin-list tr,
  .admin-list td {
    display: block;
  }

  .admin-list thead {
    display: none;
  }

  .admin-list tr {
    border-bottom: 1px solid var(--line);
  }

  .admin-list td {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
  }

  .admin-list td::before {
    content: attr(data-label);
    color: #435366;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .admin-list td[colspan] {
    display: block;
  }

  .admin-list td[colspan]::before {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .site-footer > div,
  .site-footer > a {
    width: min(calc(100% - 24px), 520px);
    justify-self: center;
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .card-actions {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .card-actions .icon-link {
    width: 40px;
  }
}

/* Ecosistema visual compartido con la landing React */

.microsite-tile {
  position: relative;
  min-height: 100%;
  border-color: var(--line);
  background: #e7eef2;
  box-shadow: 0 12px 28px rgba(15, 35, 45, 0.08);
}

.microsite-tile a {
  min-height: 100%;
  grid-template-rows: 1fr;
}

.microsite-tile-media {
  aspect-ratio: 4 / 3;
  border-bottom: 0;
}

.microsite-tile-media::after {
  content: "";
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 30, 0.82));
}

.microsite-tile-media img {
  transition: transform 260ms ease;
}

.microsite-tile:hover .microsite-tile-media img {
  transform: scale(1.04);
}

.microsite-tile-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  gap: 8px;
  padding: 16px;
  color: #fff;
}

.microsite-tile-body h3 {
  color: #fff;
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.06;
}

.microsite-tile-body p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.microsite-type-badge {
  top: 10px;
  left: 10px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
}

.microsite-tile-arrow {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.microsite-tile:hover .microsite-tile-arrow {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.22);
}

.microsite-explore-link {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.36);
  background: #fff;
  color: var(--brand);
}

.business-card {
  border-color: var(--line);
  box-shadow: 0 16px 42px rgba(15, 35, 45, 0.09);
}

.card-media {
  aspect-ratio: 5 / 4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 24, 30, 0.08)),
    var(--business-image, url("../img/placeholder.svg")) center/cover;
}

.card-media img {
  transition: transform 260ms ease;
}

.business-card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  gap: 10px;
}

.card-tags span {
  min-height: 28px;
  border-color: rgba(15, 91, 102, 0.15);
  background: #eef7f6;
  color: var(--brand);
}

.card-meta {
  min-height: 34px;
  align-items: center;
  border-radius: var(--radius);
  padding: 7px 10px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-actions .primary-link {
  justify-content: space-between;
  border-color: var(--line);
  background: #fff;
  color: var(--brand);
}

.card-actions .primary-link::after,
.microsite-explore-link::after {
  content: "\2192";
  margin-left: 8px;
}

.map-card,
.activity-card {
  border-color: var(--line);
  box-shadow: 0 16px 42px rgba(15, 35, 45, 0.09);
}

.activity-card img {
  aspect-ratio: 5 / 3;
}

.activity-card span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 93, 42, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff0e9;
  color: #a4411e;
  font-size: 0.72rem;
  font-weight: 950;
}

@media (max-width: 900px) {

  .microsite-tile-media {
    aspect-ratio: 4 / 3;
  }

  .microsite-tile-body {
    padding: 14px;
  }
}

/* Alineacion visual de paginas PHP con la landing React */
.nav,
.site-footer > div,
.site-footer > a,
.content-section,
.admin-hero,
.admin-layout,
.login-layout {
  width: min(1320px, calc(100% - 48px));
}

.site-header {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 64px;
}

.brand {
  font-family: var(--display-font);
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #fff;
  font-size: 0.75rem;
}

.brand-logo {
  height: 44px;
}

.nav-links {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.nav-links a {
  min-height: 38px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.login-link {
  background: var(--ink);
}

.activity-card h3,
.card-body h3,
.microsite-tile-body h3,
.admin-hero h1,
.admin-form h2,
.admin-list h2,
.login-card h1 {
  font-family: var(--display-font);
  letter-spacing: 0;
}

.primary-link,
.button,
.login-card button,
.admin-form button,
.card-actions .icon-link {
  font-family: var(--display-font);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-link:hover,
.button:hover,
.card-actions .icon-link:hover {
  transform: translateY(-1px);
}

.business-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.business-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  color: var(--ink);
  font-size: 1.08rem;
}

.card-body p {
  color: var(--muted);
}

.activity-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}


.admin-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .full {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-form input[type="checkbox"],
.admin-list input[type="checkbox"],
.login-card input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.admin-list td form {
  margin: 0;
}

.admin-list button.status.status,
.admin-form button.status.status,
.status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.admin-list button.status.status.on,
.admin-form button.status.status.on,
.status.on {
  border-color: rgba(15, 139, 98, 0.28);
  background: #edf9f4;
  color: var(--success);
}

.admin-list button.status.status.off,
.admin-form button.status.status.off,
.status.off {
  border-color: rgba(100, 116, 139, 0.24);
  background: #f7faf9;
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .image-upload-row {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: 56px;
  background: var(--ink);
}

@media (max-width: 900px) {
  .nav,
.site-footer > div,
.site-footer > a,
.content-section,
.admin-hero,
.admin-layout,
.login-layout {
    width: min(calc(100% - 24px), 520px);
  }
}
