:root {
  --bg: #ffeaf0;
  --bg-soft: #fff0f6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #6b2f1a;
  --muted: #8a5a49;
  --primary: #6b2f1a;
  --primary-dark: #4f210f;
  --accent: #c46c86;
  --border: rgba(42, 53, 71, 0.1);
  --shadow: 0 18px 50px rgba(33, 35, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  isolation: isolate;
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(circle at top left, rgba(107, 47, 26, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 122, 99, 0.11), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, var(--bg-soft) 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto;
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url('../assets/banners/papel.jpg');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(31, 36, 48, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 36, 48, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 244, 246, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42, 53, 71, 0.08);
  padding: 16px clamp(16px, 3vw, 32px);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header a:hover {
  background: rgba(107, 47, 26, 0.12);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-logo {
  display: block;
  height: clamp(36px, 3.2vw, 52px);
  width: auto;
  max-width: 100%;
}

.brand-text {
  font-size: 1.25rem;
  line-height: 1;
}

.hero,
.section {
  width: 100%;
  max-width: 1180px;
  margin: 22px auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(107, 47, 26, 0.12);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.page-shell {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 22px auto 40px;
  padding: 0 22px;
}

.page-intro {
  display: grid;
  gap: 14px;
  padding: 28px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(107, 47, 26, 0.12);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-intro h1,
.page-intro h2 {
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.page-intro p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.9;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.detail-card,
.form-card {
  padding: 46px 46px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(107, 47, 26, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(31, 36, 48, 0.08);
}

.detail-card h2,
.form-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: start;
}

.profile-summary,
.profile-actions {
  display: grid;
  gap: 18px;
  align-self: start;
}

.profile-summary {
  grid-template-columns: 100px 1fr;
  align-items: start;
  padding: 46px 46px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  border: 1px solid rgba(107, 47, 26, 0.08);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 47, 26, 0.12);
  box-shadow: 0 14px 30px rgba(31, 36, 48, 0.08);
  display: grid;
  place-items: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px;
}

.profile-summary h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.profile-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-info-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.profile-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  border-radius: 18px;
  background: rgba(255, 250, 250, 0.95);
  border: 1px solid rgba(107, 47, 26, 0.08);
}

.profile-info-list strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.profile-actions {
  min-height: auto;
  align-content: start;
  padding: 48px 48px;
  background: rgba(255, 250, 250, 0.96);
  border: 1px solid rgba(107, 47, 26, 0.1);
  border-radius: 28px;
}

.profile-actions .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.profile-actions .hero-actions a {
  width: 100%;
  min-width: 0;
  padding: 18px 28px;
  font-weight: 800;
  text-align: center;
}

.profile-actions .hero-actions a.button-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 22px rgba(107, 47, 26, 0.24);
}

.profile-actions .hero-actions a.button-secondary {
  color: var(--primary-dark);
}

.profile-actions .hero-actions a:hover {
  opacity: 0.96;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-actions .hero-actions {
    grid-template-columns: 1fr;
  }

  .profile-info-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-item {
  padding: 28px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 47, 26, 0.1);
  box-shadow: 0 8px 24px rgba(31, 36, 48, 0.05);
}

.detail-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--primary-dark);
}

.detail-item p {
  margin: 10px 0 0;
}

.detail-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.pet-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: center;
}

.pet-item-compact {
  grid-template-columns: 84px 1fr;
}

.pet-photo-wrap {
  width: 100%;
  min-width: 84px;
}

.pet-photo {
  min-height: 84px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(107, 47, 26, 0.1);
  background: #fff;
}

.pet-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 84px;
  border-radius: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(107, 47, 26, 0.07);
}

.form-card input[type="file"] {
  padding: 14px 16px;
  background: #fff;
}

.detail-item strong {
  display: block;
  margin-bottom: 4px;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 12px;
  font-weight: 700;
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: #fff;
  padding: 18px 20px;
  font: inherit;
  color: var(--text);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  background: #4c6ef5;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

button:active,
.button:active {
  transform: translateY(0);
  opacity: 0.96;
}

.button-primary,
a.button-primary,
button.button-primary {
  background: #ff6b92;
}

.button-secondary,
a.button-secondary,
button.button-secondary {
  background: #2cb67d;
}

.button-tertiary,
a.button-tertiary,
button.button-tertiary {
  background: #5d5dfc;
}

.button-success,
a.button-success,
button.button-success {
  background: #38b000;
}

.button-warning,
a.button-warning,
button.button-warning {
  background: #f59e0b;
}

.button-danger,
a.button-danger,
button.button-danger {
  background: #f03e3e;
}

.button-info,
a.button-info,
button.button-info {
  background: #2f80ed;
}

.button-light,
a.button-light,
button.button-light {
  background: #f8f9fa;
  color: #212529;
}

.detail-item form button {
  margin-top: 8px;
}

.service-list {
  margin: 6px 0 8px;
  padding-left: 18px;
  color: var(--text);
}

.service-list li + li {
  margin-top: 4px;
}

.service-list.compact {
  margin: 0;
  padding-left: 16px;
}

.service-options-group {
  display: grid;
  gap: 10px;
}

.service-options-label {
  font-weight: 700;
}

.service-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(31, 36, 48, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  min-height: 50px;
}

.service-option-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.service-option-item span {
  display: inline-block;
  line-height: 1.2;
  margin-top: 1px;
}

.service-options-help {
  color: var(--muted);
}

.booking-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(107, 47, 26, 0.08);
  color: var(--text);
  font-size: 1rem;
}

.booking-total-box span {
  font-weight: 800;
  color: var(--primary-dark);
}

@media (max-width: 720px) {
  .service-options-grid {
    grid-template-columns: 1fr;
  }
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(31, 36, 48, 0.04);
  color: var(--muted);
}

.success-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(45, 122, 99, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.stacked-content {
  display: grid;
  gap: 14px;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(107, 47, 26, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(45, 122, 99, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 238, 242, 0.94));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 10px 0 14px;
  letter-spacing: -0.03em;
}

.hero p,
.section p,
.content-card p,
.card p,
.dashboard-hero p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(45, 122, 99, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-accent {
  background: rgba(107, 47, 26, 0.12);
  color: var(--primary-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}


.button-primary {
  background: #ff6b92 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(255, 107, 146, 0.22) !important;
}

a.button-primary,
button.button-primary {
  color: #fff !important;
}

.button-secondary {
  background: #2cb67d !important;
  color: #fff !important;
}

.button-tertiary {
  background: #5d5dfc !important;
  color: #fff !important;
}

.button-success {
  background: #38b000 !important;
  color: #fff !important;
}

.button-warning {
  background: #f59e0b !important;
  color: #fff !important;
}

.button-danger {
  background: #f03e3e !important;
  color: #fff !important;
}

.button-info {
  background: #2f80ed !important;
  color: #fff !important;
}

.button-light {
  background: #f8f9fa;
  color: #212529;
  box-shadow: inset 0 0 0 1px rgba(36, 39, 41, 0.08);
}

.button-secondary:hover,
.button-tertiary:hover,
.button-success:hover,
.button-warning:hover,
.button-danger:hover,
.button-info:hover,
.button-light:hover {
  opacity: 0.95;
}

.section > .hero-actions {
  justify-content: flex-start;
}

.section > .hero-actions a.button {
  min-width: 180px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-stats div,
.content-card,
.hero-panel-card,
.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.05);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  align-items: end;
  min-height: 100%;
}

.hero-panel-card {
  padding: 28px;
  min-height: 280px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at top, rgba(45, 122, 99, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 238, 242, 0.95));
}

.hero-panel-card h3,
.section h2,
.content-card h3,
.card h2,
.dashboard-hero h1 {
  letter-spacing: -0.02em;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.content-card {
  padding: 20px;
  display: grid;
  gap: 12px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-strong);
}

.content-card.content-card-media {
  padding: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.content-card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.content-card-image-link {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  min-height: 260px;
}

.content-card-link {
  /* let the anchor not break the article grid: children stay grid items */
  display: contents;
  color: inherit;
  text-decoration: none;
}

.content-card-link:hover .content-card-image,
.content-card-link:focus .content-card-image {
  transform: scale(1.03);
}

/* Fallback for browsers that don't support display:contents */
@supports not (display: contents) {
  .content-card-link {
    display: block;
  }
  .content-card.content-card-media {
    display: block;
  }
  .content-card.content-card-media .content-card-image {
    width: 40%;
    float: left;
    height: auto;
    min-height: 260px;
  }
  .content-card.content-card-media .content-card-body {
    margin-left: 40%;
    padding: 22px;
  }
}

/* Article detail styles */
.article-detail {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.article-detail header h1 {
  margin: 0 0 8px;
}

.article-gallery {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: start;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
}

.article-gallery img.rounded-large {
  border-radius: 16px;
}

.article-content {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.content-card-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.content-card-image-link:hover .content-card-image,
.content-card-image-link:focus .content-card-image {
  transform: scale(1.03);
}

.content-card strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.content-card-accent {
  background: linear-gradient(180deg, rgba(107, 47, 26, 0.08), rgba(255, 255, 255, 0.96));
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  padding: 20px;
}

.image-lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition: transform 0.28s ease, max-width 0.28s ease, max-height 0.28s ease;
  transform: scale(1);
}

.image-lightbox-overlay img.fullsize {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  transform: scale(2);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .content-card.content-card-media {
    grid-template-columns: 1fr;
  }

  .content-card-image-link {
    min-height: 220px;
  }
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 20px;
}

.detail-overlay-inner {
  width: min(1100px, 100%);
  max-height: min(95vh, 1200px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  padding: 32px;
  position: relative;
}

.detail-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.detail-overlay h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
}

.detail-overlay p,
.detail-overlay .detail-meta {
  color: #4e5568;
  line-height: 1.75;
}

.detail-overlay .detail-meta {
  margin: 0 0 22px;
  font-size: 0.95rem;
}

.detail-overlay .detail-content {
  margin-bottom: 28px;
}

.detail-overlay .detail-gallery {
  display: grid;
  gap: 16px;
}

.detail-overlay .detail-gallery img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.detail-overlay .detail-gallery .gallery-main {
  grid-column: 1 / -1;
  height: clamp(280px, 40vw, 520px);
}

@media (min-width: 900px) {
  .detail-overlay .detail-gallery {
    grid-template-columns: 1.5fr 1fr;
  }

  .detail-overlay .detail-gallery .gallery-thumbs {
    display: grid;
    gap: 16px;
  }
}

.content-card-detail {
  cursor: pointer;
}

.content-card-detail .content-card-body {
  min-height: 210px;
}

.content-card-empty {
  min-height: 180px;
  place-content: center;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.section a {
  color: var(--primary);
}

.section a,
.content-card a,
.detail-card a,
.form-card a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.section a:hover,
.content-card a:hover,
.detail-card a:hover,
.form-card a:hover {
  color: var(--primary-dark);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
.button:focus,
.site-header a:focus {
  outline: 3px solid rgba(107, 47, 26, 0.25);
  outline-offset: 2px;
}

.section h1,
.page-intro h1,
.page-intro h2,
.hero h1,
.hero-panel-card h3 {
  text-wrap: balance;
}

.section small {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(107, 47, 26, 0.18);
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 20px rgba(31, 36, 48, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 47, 26, 0.35);
  box-shadow: 0 12px 24px rgba(31, 36, 48, 0.16);
}

.social-link img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.map-embed {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(31, 36, 48, 0.06);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 220px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 42px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.05);
}

.section article + article {
  margin-top: 14px;
}

.section article h3,
.section article h2 {
  margin-bottom: 6px;
}

.section article p {
  margin-top: 0;
}

.section article:not(.content-card):not(.content-card-empty):not(.hero-panel-card):not(.detail-card):not(.form-card) {
  padding: 4px 0;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .hero,
  .section,
  .site-footer {
    width: calc(100% - 20px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.alert-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel-card {
    min-height: 220px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: calc(100% - 32px);
  }
}
