@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green-950: #173d31;
  --green-900: #1d4b3b;
  --green-800: #245a45;
  --green-700: #2f7156;
  --green-100: #e7f0e9;
  --green-50: #f4f8f4;
  --ink: #202b25;
  --muted: #6f7b73;
  --line: #e1e8e2;
  --paper: #ffffff;
  --page: #f5f7f4;
  --gold: #d4b77b;
  --danger: #a43d37;
  --radius: 18px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { background-color: #9bd7b8; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px), linear-gradient(110deg, #82d5e8 0%, #9bd7b8 52%, #a6cb28 100%); background-size: 14px 14px, 100% 100%; color: #fff; position: relative; overflow: hidden; }
.header-inner {
  width: min(1120px, calc(100% - 40px)); margin: auto; min-height: 82px;
  display: flex; align-items: center; gap: 13px;
}
.brand-mark, .footer-mark {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
  color: #fff; font: 800 14px 'Manrope', sans-serif; letter-spacing: .06em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy .eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #c8d8ce; }
.brand-copy strong { font: 800 17px 'Manrope', sans-serif; }
.brand-subtitle { margin-top: 3px; font-size: 11px; color: #c8d8ce; }
.header-tag {
  margin-left: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 100px;
  padding: 8px 13px; color: #e0eae2; font-size: 12px;
}
.page-shell { width: min(1000px, calc(100% - 36px)); margin: 28px auto 44px; }
.hero {
  min-height: 290px; border-radius: 24px; padding: 42px 46px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 22px;
  background: linear-gradient(120deg, #eaf2eb 0%, #f4f6ed 66%, #e2ebdf 100%);
}
.hero-copy { position: relative; z-index: 2; }
.section-kicker { display: block; color: var(--green-700); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 11px 0 14px; color: var(--green-950); font: 800 clamp(30px, 4vw, 43px)/1.08 'Manrope', sans-serif; letter-spacing: -.045em; }
h1 em { color: var(--green-700); font-style: normal; }
.hero-copy > p { max-width: 470px; color: #53635a; line-height: 1.7; font-size: 14px; margin-bottom: 20px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: 11px; color: #3f5e4c; }
.hero-points b { color: var(--green-700); margin-right: 4px; }
.hero-art { height: 210px; position: relative; display: flex; align-items: center; justify-content: center; }
.sun { width: 174px; height: 174px; border-radius: 50%; background: #d7e5d4; position: absolute; right: 28px; top: 10px; }
.pet-emoji { position: absolute; filter: drop-shadow(0 9px 8px rgba(25,60,42,.12)); line-height: 1; }
.pet-emoji.dog { font-size: 102px; left: 10px; bottom: 18px; transform: rotate(-5deg); }
.pet-emoji.cat { font-size: 84px; right: 6px; bottom: 26px; transform: rotate(5deg); }
.art-caption { position: absolute; right: 26px; top: 3px; font: 700 11px/1.4 'Manrope', sans-serif; color: var(--green-800); text-align: right; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 24px; padding: 14px 17px;
  border: 1px solid #d9e5da; background: #edf4ee; border-radius: 12px; color: #41594a;
}
.notice-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: #d5e6d8; color: var(--green-800); font-weight: 800; font-size: 12px; }
.notice p { font-size: 12px; line-height: 1.55; margin: 1px 0 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; box-shadow: 0 6px 22px rgba(26,54,37,.035); }
.panel-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.step-number { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: var(--green-100); color: var(--green-800); font: 800 13px 'Manrope', sans-serif; }
.panel-heading h2 { margin: 5px 0 5px; font: 800 24px 'Manrope', sans-serif; letter-spacing: -.03em; color: var(--green-950); }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: #34473a; font-weight: 700; }
.span-2 { grid-column: span 2; }
.required { color: #b14e43; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #dbe3dc; border-radius: 9px;
  background: #fff; color: var(--ink); outline: none; font-size: 13px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 86px; }
input::placeholder, textarea::placeholder { color: #9aa49c; }
input:focus, select:focus, textarea:focus { border-color: #619274; box-shadow: 0 0 0 3px rgba(66,124,83,.12); }
input[type="file"] { padding: 8px; color: var(--muted); }
input[type="file"]::file-selector-button { border: 0; border-radius: 6px; padding: 7px 10px; margin-right: 9px; color: var(--green-800); background: var(--green-100); cursor: pointer; }
.field small { color: var(--muted); font-weight: 400; font-size: 11px; line-height: 1.45; }
.subsection { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; }
.subsection h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font: 800 16px 'Manrope', sans-serif; color: var(--green-950); }
.subsection-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); font-size: 15px; }
.helper { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { min-height: 44px; border-radius: 9px; padding: 11px 17px; font-size: 12px; font-weight: 700; border: 1px solid transparent; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green-800); color: #fff; }
.button-primary:hover { background: var(--green-950); }
.button-primary span { font-size: 18px; vertical-align: -1px; margin-right: 4px; }
.button-secondary { background: #fff; color: var(--green-800); border-color: #d8e2d9; }
.button-secondary:hover { background: var(--green-50); }
.list-heading { margin-bottom: 20px; }
.count { display: inline-grid; min-width: 25px; height: 25px; place-items: center; margin-left: 5px; padding: 0 6px; vertical-align: 2px; border-radius: 8px; background: var(--green-100); color: var(--green-800); font: 700 12px 'DM Sans', sans-serif; }
.empty-state { text-align: center; padding: 30px 15px 34px; border: 1px dashed #d8e2d9; border-radius: 13px; background: #fbfcfb; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 26px; }
.empty-state strong { color: var(--green-950); font: 700 14px 'Manrope', sans-serif; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.pet-list { display: grid; gap: 12px; }
.pet-card { display: flex; gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.pet-avatar { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 12px; background: var(--green-50); font-size: 32px; overflow: hidden; }
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-card-content { min-width: 0; flex: 1; }
.pet-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pet-species { display: block; color: var(--green-700); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }
.pet-card-name { margin: 3px 0 9px; color: var(--green-950); font: 800 17px 'Manrope', sans-serif; }
.remove-pet { border: 0; background: transparent; color: var(--danger); padding: 5px 0 5px 8px; font-size: 11px; font-weight: 700; }
.pet-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip { border-radius: 100px; padding: 5px 8px; background: #f0f4f0; color: #526257; font-size: 10px; }
.pet-health { margin-top: 10px; color: #69776d; font-size: 11px; line-height: 1.5; }
.final-actions { justify-content: flex-start; }
.summary-area { margin-top: 22px; padding: 18px; border: 1px solid #d9e5da; border-radius: 12px; background: var(--green-50); }
.summary-area h3 { color: var(--green-950); font: 800 17px 'Manrope', sans-serif; margin-bottom: 7px; }
.summary-area p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.summary-area pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; color: #39483e; font-size: 11px; line-height: 1.5; }
.site-footer { display: flex; align-items: center; gap: 12px; padding: 24px 4px 0; color: var(--green-950); }
.footer-mark { width: 38px; height: 38px; flex-basis: 38px; color: var(--green-800); border-color: #b9cdbd; font-size: 11px; }
.site-footer strong { font: 800 12px 'Manrope', sans-serif; }
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.footer-note { margin-left: auto; color: var(--muted); font-size: 10px; }
[hidden] { display: none !important; }

@media (max-width: 700px) {
  .header-inner { width: calc(100% - 28px); min-height: 72px; }
  .header-tag { display: none; }
  .page-shell { width: calc(100% - 24px); margin-top: 14px; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px 18px; gap: 0; }
  .hero-art { height: 145px; max-width: 300px; width: 100%; margin: 4px auto 0; }
  .sun { width: 125px; height: 125px; right: 48px; top: 4px; }
  .pet-emoji.dog { font-size: 77px; left: 28px; bottom: 11px; }
  .pet-emoji.cat { font-size: 63px; right: 24px; bottom: 18px; }
  .art-caption { right: 45px; top: 0; font-size: 9px; }
  .hero-points { gap: 8px 12px; }
  .panel { padding: 21px 17px; border-radius: 15px; }
  .panel-heading { gap: 11px; }
  .panel-heading h2 { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .span-2 { grid-column: auto; }
  .button { flex: 1 1 auto; }
  .pet-card { padding: 12px; gap: 10px; }
  .pet-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 26px; }
  .pet-card-top { gap: 6px; }
  .footer-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Identidad visual basada en el escudo municipal adjunto */
:root {
  --green-950: #514b45;
  --green-900: #625b54;
  --green-800: #777067;
  --green-700: #9bbd27;
  --green-100: #eef4d8;
  --green-50: #f8faef;
  --gold: #9bbd27;
}
.site-header { background-color: #9bd7b8; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px), linear-gradient(110deg, #82d5e8 0%, #9bd7b8 52%, #a6cb28 100%); background-size: 14px 14px, 100% 100%; border-bottom: 4px solid rgba(255,255,255,.72); position: relative; overflow: hidden; }
.brand-mark, .footer-mark { display: none; }
.municipal-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-logo { width: 42px; height: 42px; object-fit: contain; }
.step-number, .count, .subsection-icon, .empty-icon { background: #eef4d8; color: #647d16; }
.button-primary { background: #777067; }
.button-primary:hover { background: #514b45; }
.hero { background: linear-gradient(120deg, #f0eee9 0%, #f7f7ed 66%, #eaf2d4 100%); }
.hero-art .sun { background: #e2edb6; }
.hero-copy h1 em { color: #839f1e; }
.section-kicker, .hero-points b, .pet-species { color: #839f1e; }
.notice { background: #f6f8e9; border-color: #e1e9be; }
.notice-icon { background: #e5edbf; color: #657c19; }
.admin-login { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; }
.admin-intro { color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-login-form { display: flex; align-items: end; gap: 12px; max-width: 650px; }
.admin-login-form .field { flex: 1; }
.security-note { display: block; margin-top: 12px; color: #7d8175; font-size: 11px; line-height: 1.5; }
.login-error { color: #a43d37; font-size: 12px; margin-top: 12px; }
.admin-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 15px; }
.admin-toolbar > div { margin-right: auto; }
.admin-toolbar strong { color: var(--green-950); font: 800 15px 'Manrope', sans-serif; }
.admin-toolbar p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 850px; font-size: 11px; }
.admin-table th { background: #f2f4e8; color: #514b45; text-align: left; font-size: 10px; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table td { line-height: 1.5; max-width: 230px; overflow-wrap: anywhere; }
.admin-table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .municipal-logo { width: 48px; height: 48px; }
  .admin-login-form { flex-direction: column; align-items: stretch; }
  .admin-login-form .button { width: 100%; }
}


/* Información sobre ordenanzas municipales */
.ordinance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ordinance-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f5f8f4 100%);
}
.ordinance-label {
  color: var(--green-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
}
.ordinance-card h3 {
  margin: 10px 0;
  color: var(--green-950);
  font: 800 16px/1.35 'Manrope', sans-serif;
}
.ordinance-card p {
  margin: 0 0 18px;
  color: #59675d;
  font-size: 12px;
  line-height: 1.7;
}
.ordinance-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid #a9c5b0;
  padding-bottom: 3px;
}
.ordinance-link:hover { color: var(--green-950); border-color: var(--green-950); }
@media (max-width: 800px) {
  .ordinance-grid { grid-template-columns: 1fr; }
  .ordinance-card { padding: 18px; }
}


/* Encabezado: degradado celeste a verde lima solicitado */
.site-header { background-color: #9bd7b8 !important; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px), linear-gradient(110deg, #82d5e8 0%, #9bd7b8 52%, #a6cb28 100%) !important; background-size: 14px 14px, 100% 100% !important; border-bottom: 4px solid rgba(255,255,255,.72) !important; color: #fff; position: relative; overflow: hidden; }
.site-header .header-inner { position: relative; z-index: 1; }
