@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #F3F1EE;
  --bg2: #FAF9F7;
  --bg3: #EFEEEB;
  --ink: #1A1816;
  --muted: #6B6560;
  --gold: #B08D62;
  --gold2: #C4A574;
  --blush: #E8D5CC;
  --deep: #221F1C;
  --line: rgba(26, 24, 22, 0.10);
  --danger: #ba1a1a;
  --ok: #5a7a4f;
  --shadow: 0 24px 60px rgba(26, 24, 22, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1320px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }

h1, h2, h3, .serif {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; margin: 0 0 16px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; font-weight: 500; }

.wrap { width: var(--wrap); margin: 0 auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  margin: 0 0 14px;
}

/* —— Nav —— */
.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 241, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}
.logo {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 0.92rem; flex-shrink: 1; min-width: 0; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  transition: background .28s var(--ease), color .28s var(--ease), transform .15s var(--ease), border-color .28s var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-solid:hover { background: var(--gold2); border-color: var(--gold2); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ok { border-color: var(--ok); color: var(--ok); }
.btn-ok:hover { background: var(--ok); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tinder-card-placeholder,
.chat-avatar-placeholder {
  background: linear-gradient(145deg, var(--bg3), var(--blush));
}
.tinder-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 220px;
}
.chat-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* —— Loading (candidatura / ações) —— */
.pc-spinner {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 141, 98, 0.22);
  border-top-color: var(--gold);
  animation: pc-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.pc-spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 1.5px;
}
@keyframes pc-spin {
  to { transform: rotate(360deg); }
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
  gap: 10px;
}
.btn.is-loading .btn-label { opacity: 0.85; }
.pc-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 241, 238, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.pc-loading-overlay.is-on {
  opacity: 1;
  visibility: visible;
}
.pc-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(250, 249, 247, 0.94);
  box-shadow: var(--shadow);
  min-width: min(280px, calc(100vw - 48px));
  text-align: center;
}
.pc-loading-card p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pc-loading-card .serif {
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 36px 0 72px;
}
.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}
.hero-photo {
  position: relative;
  min-height: min(68vh, 640px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blush);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(26, 24, 22, 0.45));
  pointer-events: none;
}
.stamp {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FAF9F7;
  font-weight: 500;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-soft { background: linear-gradient(180deg, transparent, rgba(232, 213, 204, 0.28)); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 26px;
  box-shadow: 0 12px 40px rgba(26, 24, 22, 0.04);
}

.point-list { display: grid; gap: 0; }
.point-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.point-list article:last-child { border-bottom: 1px solid var(--line); }

/* Zigzag protocol */
.protocol { display: grid; gap: 0; }
.protocol-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.protocol-item:nth-child(even) { padding-left: clamp(0px, 6vw, 72px); }
.step-num {
  font-family: "Bodoni Moda", serif;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

/* Testimonials */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }
.proof {
  min-width: min(300px, 78vw);
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proof img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: var(--bg3);
}
.proof .body { padding: 20px; }
.proof blockquote {
  margin: 0 0 12px;
  font-family: "Bodoni Moda", serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.3;
}

.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(176, 141, 98, 0.08);
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; max-width: 52ch; }

/* Closing band */
.cta-band {
  background: var(--deep);
  color: #F3F1EE;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 0;
}
.cta-band h2 { color: #FAF9F7; max-width: 16ch; }
.cta-band .muted { color: rgba(243, 241, 238, 0.68); max-width: 42ch; }
.cta-band .eyebrow { color: var(--gold2); }

.legal {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
}

/* —— Forms / auth split —— */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 80px);
  border-top: 1px solid var(--line);
}
.auth-panel {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg2);
}
.auth-visual {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(232, 213, 204, 0.35), rgba(26, 24, 22, 0.28)),
    url('/assets/pics/auth-registro.jpg') center/cover;
}
.auth-visual .quote {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  background: rgba(250, 249, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}
.auth-visual .quote p {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
}

.form { display: grid; gap: 14px; max-width: 520px; }
.form-wide { max-width: 640px; }
label { font-size: 0.82rem; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.65rem;
  padding: 12px 14px;
  font: inherit;
  min-height: 44px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 98, 0.18);
}
textarea { min-height: 110px; resize: vertical; }
.checkboxes { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.checkboxes label { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink); }
.checkboxes input { width: auto; min-height: auto; }

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.flash-ok { background: rgba(90, 122, 79, 0.12); color: #3d5a36; }
.flash-error { background: rgba(186, 26, 26, 0.1); color: #8a1212; }

/* —— Baby Web-App shell —— */
.app-body {
  background: var(--bg);
  min-height: 100dvh;
  min-height: 100svh;
}
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: rgba(243, 241, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.app-brand {
  font-family: "Bodoni Moda", serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.app-brand:hover { color: var(--gold); }
.app-topbar-meta { display: flex; align-items: center; gap: 12px; }
.app-user {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-logout {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-banner {
  margin: 0;
  padding: 10px 16px;
  background: rgba(176, 141, 98, 0.12);
  color: var(--ink);
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}
.app-main {
  flex: 1;
  padding: 20px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  width: 100%;
}
.app-body-chat .app-main {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
}
.app-page-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
}
.app-page-lead { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }

.app-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 249, 247, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 4px;
  color: var(--muted);
  border-radius: 12px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.app-tab:hover { color: var(--ink); }
.app-tab.active {
  color: var(--ink);
  background: rgba(176, 141, 98, 0.14);
}
.app-tab-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.app-tab-icon {
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  mask: no-repeat center / contain;
  -webkit-mask: no-repeat center / contain;
}
.app-tab-icon-invite {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 8l9 6 9-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 8l9 6 9-6'/%3E%3C/svg%3E");
}
.app-tab-icon-chat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16v10H8l-4 3V6z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16v10H8l-4 3V6z'/%3E%3C/svg%3E");
}
.app-tab-icon-profile {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
}

.app-empty {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 28px 22px;
  text-align: left;
}
.app-empty h3 { margin-top: 0; }
.app-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 14px;
}

/* Admin keeps sidebar layout */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.side {
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  background: var(--bg2);
}
.side .logo { font-size: 1.15rem; letter-spacing: 0.12em; margin-bottom: 8px; }
.side a { display: block; color: var(--muted); padding: 8px 0; }
.side a.active, .side a:hover { color: var(--ink); }
.main { padding: 32px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.tinder { max-width: 100%; margin: 0 auto; }
.tinder-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tinder-card img {
  height: min(52vh, 420px);
  width: 100%;
  object-fit: cover;
  background: var(--blush);
}
.tinder-body { padding: 18px 18px 20px; }
.tinder-body .btn-row { margin-top: 16px; }
.tinder-body .btn { flex: 1; }
.note {
  background: rgba(176, 141, 98, 0.1);
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
  margin: 14px 0;
  color: var(--ink);
  border-radius: 0 10px 10px 0;
}

.chat-list { display: grid; gap: 10px; }
.chat-list-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: inherit;
}
.chat-list-item:hover { border-color: var(--gold); color: inherit; }
.chat-list-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg3);
}
.chat-list-item h3 { margin: 0 0 4px; font-size: 1.15rem; }
.chat-list-item .muted { margin: 0; font-size: 0.86rem; }

.chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100dvh - 180px);
  max-width: 100%;
}
.bubbles {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
}
.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.bubble.me {
  margin-left: auto;
  background: rgba(176, 141, 98, 0.22);
  border-color: transparent;
}
.chat-form {
  display: flex;
  gap: 10px;
  margin-top: auto;
  position: sticky;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, var(--bg) 20%);
}
.chat-form textarea {
  min-height: 48px;
  max-height: 120px;
  flex: 1;
}
.chat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-form .form { max-width: none; }
.app-form h3 {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}
.app-form h3:first-of-type { margin-top: 8px; border-top: 0; padding-top: 0; }

.preview-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 20px;
}
.espera-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 24px 20px;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters input, .filters select { width: auto; min-width: 140px; }

.ficha {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #fff;
  color: #1a1612;
  padding: 18mm;
}
.ficha img { width: 42mm; height: 52mm; object-fit: cover; }
.ficha-top { display: flex; gap: 18px; border-bottom: 1px solid #d8c9b0; padding-bottom: 16px; }
.password-box {
  margin-top: 24px;
  border: 2px dashed var(--gold);
  padding: 16px;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .ficha { box-shadow: none; }
}

@media (max-width: 900px) {
  :root { --wrap: min(1120px, calc(100% - 32px)); }
  .hero, .grid-2, .grid-3, .auth-split, .admin-shell { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 20px; }
  .hero-photo { min-height: 360px; order: -1; }
  .protocol-item, .protocol-item:nth-child(even) { padding-left: 0; grid-template-columns: 64px 1fr; }
  .auth-visual { min-height: 280px; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 20px; }
  .nav {
    gap: 12px;
    padding: 14px 0;
  }
  .logo {
    font-size: 0.98rem;
    letter-spacing: 0.06em;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn {
    padding: 8px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    min-height: 36px;
    line-height: 1.1;
  }
  .ficha { width: auto; min-height: auto; }
}

@media (min-width: 900px) {
  .app-shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 100dvh;
  }
  body.app-body { background: var(--bg3); }
}
