:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #15201b;
  --muted: #617069;
  --brand: #176b52;
  --brand-dark: #0f4c3c;
  --accent: #d7942d;
  --danger: #b73b3b;
  --line: #d9e2dd;
  --shadow: 0 18px 55px rgba(25, 49, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar strong,
.topbar span {
  display: block;
}

.topbar strong {
  font-size: 18px;
}

.topbar span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

nav,
.hero-actions,
.admin-tools,
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

button {
  border: 0;
  cursor: pointer;
}

.nav-button,
.tab {
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  min-height: 40px;
  padding: 0 12px;
}

.nav-button.active,
.tab.active {
  background: #e3f0eb;
  color: var(--brand-dark);
  font-weight: 700;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(22px, 5vw, 56px) clamp(16px, 4vw, 36px);
}

.view {
  display: none;
}

.view.active,
.admin-list.active {
  display: block;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.hero-copy,
.stats-panel,
.form-grid,
.admin-list,
.section-header,
.admin-tools,
.tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy,
.section-header {
  padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 780px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 690px;
}

.primary-action,
.secondary-action,
.danger-action {
  border-radius: 6px;
  min-height: 46px;
  padding: 0 18px;
  white-space: normal;
}

.primary-action {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.secondary-action {
  background: #e9eee9;
  color: var(--ink);
}

.danger-action {
  background: #f4dfdf;
  color: var(--danger);
  font-weight: 700;
}

.stats-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stats-panel div {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.stats-panel span {
  color: var(--brand);
  display: block;
  font-size: 36px;
  font-weight: 800;
}

.stats-panel small {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding: clamp(18px, 4vw, 34px);
}

label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

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

input,
select,
textarea {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

.admin-tools,
.tabs {
  box-shadow: none;
  margin-top: 18px;
  padding: 14px;
}

.admin-tools input {
  flex: 1 1 260px;
}

.admin-list {
  display: none;
  margin-top: 18px;
  min-height: 160px;
  padding: 14px;
}

.record {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
}

.record header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.record h3 {
  font-size: 18px;
  margin: 0;
}

.record p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.badge {
  background: #e3f0eb;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#toast {
  background: var(--ink);
  border-radius: 6px;
  bottom: 18px;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%) translateY(12px);
  transition: 180ms ease;
  z-index: 10;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    display: grid;
  }

  .full {
    grid-column: auto;
  }
}


.contact-link {
  color: var(--brand);
  display: block;
  font-size: 12px;
  margin-top: 4px;
  text-decoration: none;
}

.contact-link:hover,
.contact-note a:hover {
  text-decoration: underline;
}

.hero-copy .contact-note {
  font-size: 15px;
  margin-top: -4px;
}

.contact-note a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

/* Neuromarketing palette refresh */
:root {
  --bg: #eef5f2;
  --surface: #ffffff;
  --ink: #10221c;
  --muted: #60736c;
  --brand: #147a5b;
  --brand-dark: #0b4738;
  --accent: #d99025;
  --blue: #1f5f8b;
  --line: #d7e4de;
  --shadow: 0 20px 60px rgba(15, 42, 32, 0.14);
}

body {
  background:
    radial-gradient(circle at top left, rgba(31, 95, 139, 0.12), transparent 34%),
    linear-gradient(180deg, #f7fbf8 0%, #e9f2ef 100%);
}

.topbar {
  border-bottom: 1px solid rgba(20, 122, 91, 0.16);
  box-shadow: 0 10px 30px rgba(16, 34, 28, 0.08);
}

.hero {
  background:
    linear-gradient(90deg, rgba(9, 42, 34, 0.94) 0%, rgba(9, 42, 34, 0.82) 46%, rgba(9, 42, 34, 0.22) 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
  padding: clamp(18px, 4vw, 38px);
}

.hero-copy,
.hero-copy p:not(.eyebrow),
.hero-copy .contact-note a {
  color: #fff;
}

.hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: clamp(22px, 5vw, 48px) 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  opacity: 0.92;
}

.hero .eyebrow {
  color: #f1b85b;
}

.primary-action {
  background: linear-gradient(135deg, var(--accent), #f0b34d);
  color: #1d170d;
  box-shadow: 0 10px 24px rgba(217, 144, 37, 0.28);
}

.secondary-action {
  background: #e8f1f7;
  color: var(--blue);
  font-weight: 700;
}

.hero .secondary-action {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
}

.stats-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.stats-panel span {
  color: var(--blue);
}

.trust-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.trust-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 42, 32, 0.08);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.trust-grid strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.trust-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.form-grid,
.section-header,
.admin-list,
.admin-tools,
.tabs {
  border-top: 4px solid var(--brand);
}

.form-subtitle {
  align-items: center;
  background: #eef7f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  display: flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

.record {
  border-left: 5px solid var(--blue);
}

.record a {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 34px;
  text-align: center;
}


.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


.admin-protected {
  display: none;
}

.admin-protected.active {
  display: block;
}

.admin-gate .section-header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}


.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.blog-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 42, 32, 0.08);
  padding: 20px;
}

.blog-grid span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-grid h3 {
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.2;
  margin: 10px 0;
}

.blog-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}


.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.admin-stats span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-stats strong {
  color: var(--brand-dark);
  display: block;
  font-size: 28px;
}

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

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

/* Professional finish - Reformas de App SP */
body { background: #edf3f0; }
.topbar { backdrop-filter: blur(12px); }
.nav-button, .tab, .primary-action, .secondary-action, .danger-action { transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.nav-button:hover, .tab:hover, .primary-action:hover, .secondary-action:hover, .danger-action:hover { transform: translateY(-1px); }
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.stats-panel { position: relative; z-index: 1; }
.stats-panel div { background: linear-gradient(180deg, #ffffff, #f5faf8); }
.service-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.service-strip span { background: #10221c; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #fff; font-size: 13px; font-weight: 800; padding: 10px 12px; }
.section-header { background: linear-gradient(135deg, #fff, #f4faf7); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,122,91,.14); outline: none; }
.ops-banner { align-items: center; background: linear-gradient(135deg, #10221c, #174f41); border-radius: 8px; color: #fff; display: flex; gap: 14px; justify-content: space-between; margin: 18px 0 0; padding: 16px 18px; }
.ops-banner span { color: rgba(255,255,255,.78); line-height: 1.45; }
.admin-focus-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.admin-focus-grid article { background: #ffffff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 8px; padding: 16px; }
.admin-focus-grid strong, .admin-focus-grid span { display: block; }
.admin-focus-grid span { color: var(--muted); line-height: 1.45; margin-top: 6px; }
.admin-page main { max-width: 1280px; }
.admin-stats article { border-top: 4px solid var(--brand); box-shadow: 0 12px 30px rgba(15,42,32,.08); }
.record { background: linear-gradient(180deg, #fff, #fbfdfc); }
@media (max-width: 760px) { .ops-banner { align-items: flex-start; display: grid; } .service-strip span { flex: 1 1 130px; text-align: center; } .admin-focus-grid { grid-template-columns: 1fr; } }

.admin-safety-note {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #f2d38a;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 14px 0 0;
  padding: 14px 16px;
}
.admin-safety-note strong, .admin-safety-note span { display: block; }
.admin-safety-note span { color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .admin-safety-note { align-items: flex-start; display: grid; } }





.client-directory {
  margin-top: 26px;
}

.compact-header {
  box-shadow: none;
  padding: 24px;
}

.public-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.5fr 1fr 1fr;
  margin-top: 14px;
  padding: 14px;
}

.professional-directory {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.professional-card {
  background: linear-gradient(180deg, #fff, #fbfdfc);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 42, 32, 0.08);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.professional-card header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.professional-card h3 {
  color: var(--brand-dark);
  font-size: 20px;
  margin: 0 0 4px;
}

.professional-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.professional-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.professional-meta span {
  background: #eef7f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.link-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 18px;
}

@media (max-width: 760px) {
  .public-filters,
  .professional-directory {
    grid-template-columns: 1fr;
  }
}

.professional-card p strong { color: var(--brand-dark); }


.photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.photo-grid img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.ai-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 18px;
  min-height: 80px;
  padding: 18px;
  white-space: pre-wrap;
}

.compliance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compliance-summary span {
  background: #fff8e8;
  border: 1px solid #f2d38a;
  border-radius: 6px;
  color: #5e4613;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.check-row {
  align-items: start;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  line-height: 1.45;
  padding: 14px;
}

.check-row input {
  min-height: auto;
  margin-top: 3px;
  width: auto;
}

.cookie-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  display: none;
  gap: 16px;
  justify-content: space-between;
  left: 18px;
  max-width: 760px;
  padding: 16px;
  position: fixed;
  right: 18px;
  z-index: 20;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner strong,
.cookie-banner span {
  display: block;
}

.cookie-banner span {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

@media (max-width: 760px) {
  .cookie-banner {
    align-items: stretch;
    display: none;
    flex-direction: column;
  }

  .cookie-banner.show {
    display: flex;
  }
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 460px;
  padding: clamp(22px, 4vw, 34px);
}

.login-panel label,
.payment-note {
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.login-panel input {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 0 12px;
}

.payment-note {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 14px;
}

.section-subtitle {
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 820px;
}

.need-box {
  background: #f4faf7;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.need-box strong {
  color: var(--brand-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.need-box span {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.record a {
  color: var(--brand-dark);
  font-weight: 700;
}

.admin-page .section-header,
.admin-page .admin-tools,
.admin-page .tabs,
.admin-page .admin-list {
  box-shadow: 0 12px 34px rgba(15, 42, 32, .08);
}

.admin-page .record {
  border-left: 5px solid var(--brand);
}
