/* IPSG — folha de estilos estática (sem dependência de build/Node) */

:root {
  --background: #faf8f2;
  --foreground: #26301f;

  --green-950: #16241c;
  --green-900: #1f3628;
  --green-800: #2b4a37;
  --green-700: #375c44;
  --green-600: #4a7359;

  --olive-600: #7c8a35;
  --olive-500: #98a83e;
  --olive-400: #b6c463;
  --olive-200: #dfe6ae;
  --olive-100: #eef1d9;

  --wine-700: #5c2226;
  --wine-600: #7a2e2e;
  --wine-500: #93393a;

  --cream-50: #fefdfb;
  --cream-100: #faf8f2;
  --cream-200: #f2ede0;

  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.flex-1 { flex: 1 1 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 74, 55, 0.1);
}
.header-row {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem;
}
@media (min-width: 640px) { .header-row { padding: 0.75rem 1.5rem; } }

.header-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-img { height: 4rem; width: auto; }
@media (min-width: 640px) { .logo-img { height: 5rem; } }
.logo-text {
  display: block; max-width: 150px;
  font-family: var(--font-serif); font-weight: 800; font-size: 0.875rem;
  line-height: 1.2; color: var(--green-900);
}
@media (min-width: 640px) { .logo-text { max-width: 190px; font-size: 1rem; } }
@media (min-width: 1024px) { .logo-text { max-width: 220px; font-size: 1.125rem; } }

.header-motto {
  display: none; flex: 1 1 auto; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; line-height: 1.2;
}
@media (min-width: 1024px) { .header-motto { display: flex; } }
.motto-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--wine-600); }
.motto-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--green-900); }

.main-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.nav-group { position: relative; }
.nav-toplink {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--green-900);
  transition: background 0.15s, color 0.15s;
}
.nav-toplink:hover { background: var(--olive-100); color: var(--green-950); }
.nav-chevron { height: 0.875rem; width: 0.875rem; opacity: 0.6; }
.nav-dropdown {
  position: absolute; left: 0; top: 100%; min-width: 14rem;
  background: #fff; border: 1px solid rgba(31, 54, 40, 0.1); border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); padding: 0.375rem;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.nav-group:hover .nav-dropdown,
.nav-group.is-open .nav-dropdown { opacity: 1; pointer-events: auto; }
.nav-dropdown-link {
  display: block; padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; color: var(--green-900);
}
.nav-dropdown-link:hover { background: var(--olive-100); }

.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(31, 54, 40, 0.2); border-radius: 0.375rem; padding: 0.5rem;
  color: var(--green-900);
}
.mobile-menu-btn svg { height: 1.25rem; width: 1.25rem; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.verse-strip {
  border-top: 1px solid rgba(43, 74, 55, 0.1);
  background: rgba(238, 241, 217, 0.5);
  padding: 0.375rem 1rem; text-align: center;
}
@media (min-width: 640px) { .verse-strip { padding: 0.375rem 1.5rem; } }
.verse-strip p { font-family: var(--font-serif); font-size: 0.75rem; font-style: italic; color: var(--green-800); }
@media (min-width: 640px) { .verse-strip p { font-size: 0.875rem; } }

.mobile-nav {
  border-top: 1px solid rgba(31, 54, 40, 0.1); background: var(--cream-50);
  padding: 0 1rem 1rem;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-toplink { display: block; padding: 0.6rem 0; font-weight: 600; color: var(--green-900); }
.mobile-group-label { padding: 0.6rem 0; font-weight: 600; color: var(--green-900); }
.mobile-group-items { display: flex; flex-direction: column; gap: 0.125rem; padding-left: 0.75rem; }
.mobile-sublink { padding: 0.4rem 0.5rem; border-radius: 0.375rem; font-size: 0.875rem; color: var(--green-800); }
.mobile-sublink:hover, .mobile-toplink:hover { background: var(--olive-100); }

/* ---------- Page hero (banners internos) ---------- */
.page-hero { background: var(--green-950); padding: 3.5rem 0; }
.page-hero .container { text-align: center; max-width: 56rem; }
.page-hero h1 { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; color: #fff; }
@media (min-width: 640px) { .page-hero h1 { font-size: 2.25rem; } }
.page-hero p { margin-top: 0.75rem; color: var(--olive-200); max-width: 42rem; margin-left: auto; margin-right: auto; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; overflow: hidden; background: var(--green-950); }
.home-hero-bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.4; width: 100%; height: 100%; }
.home-hero-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom right, var(--green-900), var(--green-800), var(--olive-600)); opacity: 0.9; }
.home-hero-content { position: relative; max-width: 60rem; margin: 0 auto; padding: 5rem 1rem; text-align: center; }
@media (min-width: 640px) { .home-hero-content { padding: 7rem 1.5rem; } }
.home-hero-eyebrow { font-family: var(--font-serif); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--olive-200); }
.home-hero-title { margin-top: 1rem; font-family: var(--font-serif); font-size: 2.25rem; font-weight: 700; color: #fff; }
@media (min-width: 640px) { .home-hero-title { font-size: 3rem; } }
.home-hero-desc { margin: 1rem auto 0; max-width: 42rem; font-size: 1.125rem; color: rgba(250, 248, 242, 0.9); }
.home-hero-actions { margin-top: 2rem; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 0.375rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--olive-500); color: var(--green-950); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn-primary:hover { background: var(--olive-400); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-800); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Highlight cards ---------- */
.highlights-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; padding: 3.5rem 0; }
@media (min-width: 640px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .highlights-grid { grid-template-columns: repeat(5, 1fr); } }
.highlight-card {
  display: block; border: 1px solid rgba(31, 54, 40, 0.1); border-radius: 0.75rem;
  background: #fff; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.highlight-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.highlight-card h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: var(--green-900); }
.highlight-card:hover h3 { color: var(--wine-600); }
.highlight-card p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(43, 74, 55, 0.8); }

/* ---------- Gallery sections ---------- */
.section-olive { background: rgba(238, 241, 217, 0.6); padding: 3.5rem 0; }
.section-plain { padding: 3.5rem 0; }
.section-heading { text-align: center; margin-bottom: 2rem; }
.section-heading .eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--wine-600); }
.section-heading h2 { margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; color: var(--green-900); }
.section-heading p { margin: 0.5rem auto 0; max-width: 36rem; color: rgba(43, 74, 55, 0.8); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 0.5rem; background: rgba(31,54,40,0.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.75rem;
  font-size: 0.75rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.empty-box {
  border: 1px dashed rgba(31, 54, 40, 0.2); border-radius: 0.75rem;
  background: rgba(255,255,255,0.6); padding: 2.5rem; text-align: center;
}
.empty-box p { font-size: 0.875rem; color: rgba(43, 74, 55, 0.7); }

.verse-section { background: var(--green-950); padding: 3rem 0; text-align: center; }
.verse-section p { max-width: 42rem; margin: 0 auto; padding: 0 1rem; font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--olive-100); }

/* ---------- Prose (conteúdo rico) ---------- */
.prose-ipsg { color: var(--foreground); line-height: 1.75; }
.prose-ipsg h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--green-900); }
.prose-ipsg h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--green-900); }
.prose-ipsg p { margin-bottom: 1rem; }
.prose-ipsg ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-ipsg ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-ipsg a { color: var(--wine-600); text-decoration: underline; }
.prose-ipsg strong { font-weight: 700; }
.prose-ipsg blockquote { border-left: 3px solid var(--olive-500); padding-left: 1rem; font-style: italic; color: var(--green-800); margin: 1rem 0; }
.content-page { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width: 640px) { .content-page { padding: 3rem 1.5rem; } }

/* ---------- Document list ---------- */
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.doc-item {
  display: flex; flex-direction: column; gap: 0.5rem;
  border: 1px solid rgba(31, 54, 40, 0.1); border-radius: 0.5rem; background: #fff;
  padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
@media (min-width: 640px) { .doc-item { flex-direction: row; align-items: center; justify-content: space-between; } }
.doc-item h3 { font-weight: 600; color: var(--green-900); }
.doc-item p.doc-desc { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(43, 74, 55, 0.75); }
.doc-item p.doc-meta { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(43, 74, 55, 0.6); }
.badge-expired { margin-left: 0.5rem; border-radius: 999px; background: rgba(122, 46, 46, 0.1); padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 600; color: var(--wine-600); }

/* ---------- Forms ---------- */
.field { display: block; font-size: 0.875rem; margin-bottom: 1rem; }
.field label, .field-label { display: block; margin-bottom: 0.25rem; font-weight: 500; color: var(--green-900); }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid rgba(31, 54, 40, 0.2); border-radius: 0.5rem;
  padding: 0.625rem 0.875rem; font-size: 0.875rem; background: #fff; font-family: inherit;
}
.input:focus { outline: 2px solid var(--olive-500); outline-offset: 1px; }
.field-error { margin-top: 0.25rem; font-size: 0.75rem; color: var(--wine-600); }
.form-message-ok { color: var(--green-700); font-size: 0.875rem; }
.form-message-error { color: var(--wine-600); font-size: 0.875rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2.5rem; max-width: 64rem; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-dot { margin-top: 0.35rem; height: 0.5rem; width: 0.5rem; border-radius: 999px; background: var(--olive-500); flex-shrink: 0; }
.contact-item .label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(43,74,55,0.6); }
.contact-item .value { font-weight: 500; color: var(--green-900); }
.contact-item a.value:hover { color: var(--wine-600); }
.contact-card { border: 1px solid rgba(31, 54, 40, 0.1); border-radius: 0.75rem; background: #fff; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 0.75rem;
  border: 1px solid rgba(31, 54, 40, 0.1); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.blog-card-cover { position: relative; aspect-ratio: 16/10; background: var(--olive-100); overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover .placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(43,74,55,0.4); font-family: var(--font-serif); }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.25rem; }
.blog-date { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; color: var(--wine-600); }
.blog-card-body h2 { margin-top: 0.25rem; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: var(--green-900); }
.blog-card:hover .blog-card-body h2 { color: var(--wine-600); }
.blog-card-body .excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(43, 74, 55, 0.75); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body .read-more { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--green-900); }
.post-article { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
.post-back { font-size: 0.875rem; font-weight: 500; color: rgba(43,74,55,0.7); }
.post-back:hover { color: var(--wine-600); }
.post-meta { margin-top: 1rem; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; color: var(--wine-600); }
.post-title { margin-top: 0.25rem; font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; color: var(--green-900); }
@media (min-width: 640px) { .post-title { font-size: 2.25rem; } }
.post-cover { position: relative; margin-top: 1.5rem; aspect-ratio: 16/9; overflow: hidden; border-radius: 0.75rem; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--green-950); color: var(--cream-100); }
.footer-grid { max-width: 1152px; margin: 0 auto; display: grid; gap: 2rem; padding: 3rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { padding: 3rem 1.5rem; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: #fff; }
.footer-brand-sub { margin-top: 0.5rem; font-size: 0.875rem; color: var(--olive-200); }
.footer-verse { margin-top: 1rem; font-size: 0.875rem; font-style: italic; color: var(--olive-100); }
.footer-col-title { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--olive-400); }
.footer-list { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-list a, .footer-list li { font-size: 0.875rem; color: rgba(250, 248, 242, 0.85); }
.footer-list a:hover { color: #fff; }
.footer-text { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(250, 248, 242, 0.85); }
.footer-cta { margin-top: 0.75rem; display: inline-flex; font-size: 0.875rem; font-weight: 600; color: var(--olive-400); }
.footer-cta:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem; text-align: center;
  font-size: 0.75rem; color: rgba(250, 248, 242, 0.6);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Admin ---------- */
.admin-body { min-height: 100vh; display: flex; background: var(--cream-100); }
.admin-sidebar { display: none; width: 16rem; flex-shrink: 0; flex-direction: column; border-right: 1px solid rgba(31,54,40,0.1); background: #fff; }
@media (min-width: 1024px) { .admin-sidebar { display: flex; } }
.admin-sidebar-brand { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid rgba(31,54,40,0.1); padding: 1rem 1.25rem; }
.admin-sidebar-brand img { height: 2rem; width: auto; }
.admin-sidebar-brand span { font-family: var(--font-serif); font-weight: 700; color: var(--green-900); }
.admin-nav { flex: 1; overflow-y: auto; padding: 1rem 0.75rem; }
.admin-nav-section { margin-bottom: 1rem; }
.admin-nav-section-title { padding: 0 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(43,74,55,0.5); }
.admin-nav a { display: block; border-radius: 0.375rem; padding: 0.375rem 0.5rem; font-size: 0.875rem; color: var(--green-900); }
.admin-nav a:hover { background: var(--olive-100); }
.admin-nav .admin-toplink { font-weight: 600; }
.admin-sidebar-user { border-top: 1px solid rgba(31,54,40,0.1); padding: 0.75rem; }
.admin-sidebar-user p { padding: 0 0.5rem; font-size: 0.75rem; color: rgba(43,74,55,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-logout-btn { margin-top: 0.25rem; width: 100%; text-align: left; border-radius: 0.375rem; padding: 0.375rem 0.5rem; font-size: 0.875rem; color: var(--wine-600); }
.admin-logout-btn:hover { background: rgba(122,46,46,0.1); }
.admin-mobile-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(31,54,40,0.1); background: #fff; padding: 0.75rem 1rem; }
@media (min-width: 1024px) { .admin-mobile-header { display: none; } }
.admin-main { flex: 1; }
.admin-content { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .admin-content { padding: 2rem 1.5rem; } }
.admin-content h1 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--green-900); }
.admin-content > p.subtitle { font-size: 0.875rem; color: rgba(43,74,55,0.7); }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card { display: block; border: 1px solid rgba(31,54,40,0.1); border-radius: 0.75rem; background: #fff; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.stat-card .value { font-size: 1.875rem; font-weight: 700; color: var(--green-900); }
.stat-card .label { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(43,74,55,0.7); }

.card { border: 1px solid rgba(31,54,40,0.1); border-radius: 0.75rem; background: #fff; padding: 1.25rem; }
.card + .card { margin-top: 1.5rem; }

.list-item {
  display: flex; flex-direction: column; gap: 0.5rem;
  border: 1px solid rgba(31,54,40,0.1); border-radius: 0.5rem; background: #fff; padding: 1rem;
}
@media (min-width: 640px) { .list-item { flex-direction: row; align-items: center; justify-content: space-between; } }
.list-item.unread { border-color: rgba(154, 62, 62, 0.4); background: rgba(122,46,46,0.05); }
.list-item.unread-olive { border-color: rgba(152, 168, 62, 0.4); background: rgba(238,241,217,0.4); }
.pill { border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
.pill-wine { background: var(--wine-600); color: #fff; }
.pill-muted { background: rgba(31,54,40,0.08); color: rgba(43,74,55,0.6); }

.btn-sm { border-radius: 0.375rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(31,54,40,0.2); color: var(--green-900); }
.btn-sm:hover { background: var(--olive-100); }
.btn-sm-danger { border-radius: 0.375rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(122,46,46,0.3); color: var(--wine-600); }
.btn-sm-danger:hover { background: rgba(122,46,46,0.1); }

.quick-links { margin-top: 0.75rem; display: grid; gap: 0.5rem; grid-template-columns: 1fr; font-size: 0.875rem; }
@media (min-width: 640px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
.quick-links a { color: var(--wine-600); }
.quick-links a:hover { text-decoration: underline; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green-950); padding: 0 1rem; }
.login-box { width: 100%; max-width: 24rem; border-radius: 0.75rem; background: #fff; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.login-box .brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.5rem; }
.login-box .brand img { height: 3.5rem; width: auto; }
.login-box .brand h1 { margin-top: 0.75rem; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: var(--green-900); }
.login-box .brand p { font-size: 0.875rem; color: rgba(43,74,55,0.7); }

/* Editor de texto rico */
.rte { border-radius: 0.375rem; border: 1px solid rgba(31,54,40,0.2); background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; border-bottom: 1px solid rgba(31,54,40,0.1); padding: 0.5rem; }
.rte-toolbar button { border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--green-900); }
.rte-toolbar button:hover { background: var(--olive-100); }
.rte-toolbar select { border: 1px solid rgba(31,54,40,0.2); border-radius: 0.25rem; padding: 0.2rem 0.35rem; font-size: 0.75rem; background: #fff; color: var(--green-900); }
.rte-divider { margin: 0 0.25rem; height: 1.25rem; width: 1px; background: rgba(31,54,40,0.1); align-self: center; }
.rte-editor { min-height: 220px; padding: 0.75rem 1rem; font-size: 0.875rem; outline: none; }

.thumb-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .thumb-grid { grid-template-columns: repeat(4, 1fr); } }
.thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 0.5rem; border: 1px solid rgba(31,54,40,0.1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb form { position: absolute; top: 0.25rem; right: 0.25rem; }
.thumb-delete { border-radius: 999px; background: var(--wine-600); padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 600; color: #fff; }

.upload-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .upload-form { flex-direction: row; align-items: flex-end; } }
.upload-form .field { flex: 1; margin-bottom: 0; }

.info-box { border-radius: 0.5rem; border: 1px solid rgba(31,54,40,0.1); background: #fff; padding: 1.25rem; font-size: 0.875rem; color: rgba(43,74,55,0.8); margin-bottom: 2rem; }
.info-box .strong { font-weight: 500; color: var(--green-900); }
.success-box { border-radius: 0.5rem; border: 1px solid rgba(31,54,40,0.1); background: rgba(238,241,217,0.5); padding: 1.5rem; text-align: center; }
.success-box p { font-weight: 500; color: var(--green-900); }
