/* ─────────────────────────────────────────────────────────────────────────────
   CPC – Cámara Paraguaya de Carnes | Hoja de estilos principal
   ───────────────────────────────────────────────────────────────────────────── */

/* VARIABLES */
:root {
  --bordo:     #3b0f1a;
  --bordo-700: #4a1522;
  --dorado:    #d4af37;
  --gris:      #f5f6f7;
  --gris-200:  #eceff1;
  --texto:     #222;
  --font-titulos: "Platypi", Georgia, "Times New Roman", serif;
  --font-texto:   "Merriweather", Georgia, "Times New Roman", serif;
}

/* TIPOGRAFÍA */
body { font-family: var(--font-texto); color: var(--texto); line-height: 1.8; }
h1,h2,h3,h4,h5,h6,
.section-title, .card-title, .kpi h3,
.cat-title, .side-title { font-family: var(--font-titulos); letter-spacing: .1px; }

/* UTILIDADES */
.text-gold          { color: var(--dorado) !important; }
.text-bordo         { color: var(--bordo)  !important; }
.bg-bordo           { background: var(--bordo); }
.bg-gray            { background: var(--gris); }
.shadow-soft        { box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.text-white-75      { color: rgba(255,255,255,.75); }
.text-justify       { text-align: justify; }

/* GRADIENTE DORADO */
.gold-gradient {
  background: linear-gradient(135deg, #f6e27a 0%, #e6c65c 25%, #d4af37 50%, #b8902e 75%, #f6e27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar { transition: background .3s ease, box-shadow .3s ease; }

/* Navbar transparente (inicio) */
.navbar-transparent { background: transparent; }
.navbar-transparent .nav-link  { color: #fff !important; }
.navbar-transparent .navbar-toggler-icon { filter: invert(1); }

/* Navbar con fondo blanco (resto de páginas) */
.navbar-white { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.navbar-white .nav-link { color: #222 !important; }

/* Navbar sticky (scroll en inicio) */
.navbar.stuck {
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.navbar.stuck .nav-link { color: #222 !important; }
.navbar.stuck .nav-logo  { filter: none !important; }

/* Logo: blanco en transparente, original en stuck/white */
.navbar-transparent:not(.stuck) .nav-logo { filter: brightness(0) invert(1); }
.navbar-white .nav-logo,
.navbar.stuck .nav-logo { filter: none; }

.navbar-brand { font-weight: 700; }
.nav-link { font-weight: 500; }
.nav-link.active,
.nav-link:hover,
.nav-link:focus { color: var(--dorado) !important; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero-bar {
  color: #f7f7f7;
  position: relative;
  isolation: isolate;
}
.hero-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.45));
  z-index: 0;
}
.hero-bar .container { position: relative; z-index: 1; }

.hero-news { color: #f7f7f7; position: relative; isolation: isolate; }
.hero-news::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.5));
  z-index: 0;
}
.hero-news .container { position: relative; z-index: 1; }

/* ── BOTONES ─────────────────────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(145deg, #f4d03f, #d4af37);
  color: #2b2b2b;
  border: none;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(.95); }

.btn-bordo-gold {
  background: var(--bordo);
  color: var(--dorado);
  border: 1px solid var(--bordo);
  border-radius: .5rem;
  font-weight: 600;
  padding: .475rem .95rem;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-bordo-gold:hover {
  background: var(--bordo-700);
  color: var(--dorado);
  transform: translateY(-2px);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card-news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card-news-link:hover { color: inherit; text-decoration: none; }
.card-news {
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-news-link:hover .card-news { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }

.news-card {
  background: #fff;
  border: 0; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }

.res-card {
  background: #fff; border: 0; border-radius: 1rem; padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--texto);
}
.res-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }

.res-icon {
  width: 56px; height: 56px; border-radius: .75rem;
  display: grid; place-items: center;
  background: var(--gris-200);
}

.cat-card {
  background: #fff; border: 0; border-radius: 1rem; padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  text-decoration: none; color: inherit; display: block; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }

.cat-icon {
  width: 56px; height: 56px; border-radius: .9rem;
  display: grid; place-items: center;
  background: var(--gris-200); color: var(--bordo-700);
}
.cat-sub { margin: 0; color: #6c757d; }

.partner-card {
  background: #fff; border: 0; border-radius: 1rem; padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06); height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.partner-logo {
  max-height: 64px; object-fit: contain;
  filter: grayscale(100%) contrast(1.1);
}
.partner-card:hover .partner-logo { filter: none; }

.team-card {
  border: none; background: #fff; padding: 1.5rem;
  border-radius: 1rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: transform .3s ease; height: 100%;
}
.team-card:hover { transform: translateY(-5px); }
.team-card h5 { margin-bottom: .25rem; color: var(--bordo); }
.team-card span { color: var(--dorado); font-weight: 600; font-size: .9rem; }

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.badge-cat  { background: var(--gris-200); color: #555; }
.badge-soft { background: var(--gris-200); color: #555; }

/* ── KPIs ────────────────────────────────────────────────────────────────── */
.kpi {
  background: #fff; border-radius: 1.25rem; padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}
.kpi h3 { font-size: clamp(1.75rem, 4vw, 2rem); margin: 0; }
.kpi small { color: #666; }

/* ── SOCIOS ──────────────────────────────────────────────────────────────── */
.partners-logo {
  filter: grayscale(100%) contrast(1.1) opacity(.85);
  transition: filter .25s ease, transform .25s ease;
}
.partners-logo:hover { filter: none; transform: scale(1.03); }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.side-card {
  background: #fff; border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 1.25rem;
}
.side-title {
  font-weight: 700; margin-bottom: .75rem;
  border-bottom: 2px solid var(--gris-200); padding-bottom: .5rem;
  font-family: var(--font-titulos);
}
.side-link { color: #333; text-decoration: none; }
.side-link:hover { color: var(--bordo-700); }

/* ── SECCIÓN ─────────────────────────────────────────────────────────────── */
.section-title { position: relative; padding-bottom: .5rem; margin-bottom: 1.25rem; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; background: var(--bordo-700); border-radius: 3px;
}

/* ── ARTÍCULO ────────────────────────────────────────────────────────────── */
.article p { line-height: 1.8; font-size: 1.05rem; color: #333; }
.article-body p { line-height: 1.8; font-size: 1.05rem; color: #333; }
blockquote {
  background: #fff; border-left: 4px solid var(--dorado);
  margin: 2rem 0; padding: 1.25rem; border-radius: .75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  font-size: 1.1rem; color: #444;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer { color: #eee; }
.footer-link { color: #e7d9bf; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
}

/* ── ANIMACIONES ─────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .card-news, .partners-logo { transition: none; }
}

/* ── FORMULARIOS ─────────────────────────────────────────────────────────── */
.form-control, .form-select { border-radius: .8rem; }

/* ── PAGINACIÓN ──────────────────────────────────────────────────────────── */
.page-link { color: var(--bordo); }
.page-item.active .page-link { background: var(--bordo); border-color: var(--bordo); }


/* ── LANGUAGE SWITCHER ───────────────────────────────────────────────────── */
.btn-lang {
  padding: .15rem .45rem;
  font-size: .72rem;
  font-weight: 700;
  border-radius: .35rem;
  border: 1.5px solid currentColor;
  line-height: 1.4;
  cursor: pointer;
  transition: all .2s ease;
  background: transparent;
  letter-spacing: .05em;
}
/* En navbar transparente (sobre hero) */
.navbar-transparent:not(.stuck) .btn-lang {
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.4);
}
.navbar-transparent:not(.stuck) .btn-lang:hover,
.navbar-transparent:not(.stuck) .btn-lang.active {
  color: #fff;
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
}
/* En navbar blanca / stuck */
.navbar-white .btn-lang,
.navbar.stuck .btn-lang {
  color: #555;
  border-color: #ccc;
}
.navbar-white .btn-lang:hover,
.navbar-white .btn-lang.active,
.navbar.stuck .btn-lang:hover,
.navbar.stuck .btn-lang.active {
  color: var(--bordo);
  border-color: var(--bordo);
  background: rgba(59,15,26,.06);
}
