/* ============================================================
   public/css/portal.css
   Estilos complementarios del portal público
   ============================================================ */

/* ── Búsqueda ─────────────────────────────────────────────── */
.search-wrap {
  position: relative;
}
.search-input {
  background: var(--surface-raised, #252529);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  color: #e8e0d0;
  font-size: 11px;
  letter-spacing: 1px;
  width: 190px;
  box-shadow: inset 3px 3px 8px #0d0d0f, inset -3px -3px 8px #2f2f36;
  outline: none;
  transition: border-color 0.15s, width 0.2s;
}
.search-input:focus {
  border-color: rgba(201,168,76,0.4);
  width: 240px;
}
.search-input::placeholder { color: #5a5448; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #252529;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.7);
  z-index: 300;
  overflow: hidden;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  text-decoration: none;
  transition: background 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(201,168,76,0.06); }
.search-cat  { font-size: 9px; letter-spacing: 2px; color: #8a6f2e; text-transform: uppercase; }
.search-title { font-size: 12px; color: #e8e0d0; line-height: 1.3; }

/* ── Dropdown accesible ───────────────────────────────────── */
.dropdown:focus-within .dropdown-menu { display: block; }
.cat-num-small {
  margin-left: auto;
  font-size: 9px;
  color: #5a5448;
  background: rgba(201,168,76,0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
  gap: 2rem;
  margin: 2rem;
  background: #252529;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: inset 3px 3px 8px #0d0d0f, inset -3px -3px 8px #2f2f36;
  border: 1px solid rgba(201,168,76,0.15);
}
@media (max-width: 900px) {
  .footer-strip { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #8a6f2e;
  letter-spacing: 2px;
}
.footer-heading {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.8rem;
}
.footer-text { font-size: 12px; color: #5a5448; line-height: 1.7; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-link {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a5448;
  text-decoration: none;
  transition: color 0.2s;
  margin-right: 1rem;
}
.footer-link:hover { color: #c9a84c; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.8rem; }

.footer-bottom {
  text-align: center;
  padding: 0.8rem 2rem 1.5rem;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #3a342a;
  text-transform: uppercase;
}

/* ── Newsletter form ──────────────────────────────────────── */
.newsletter-form { display: flex; gap: 6px; }
.newsletter-input {
  flex: 1;
  background: #1f1f24;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  color: #e8e0d0;
  font-size: 12px;
  box-shadow: inset 2px 2px 6px #0d0d0f;
  outline: none;
}
.newsletter-input:focus { border-color: rgba(201,168,76,0.35); }
.newsletter-btn {
  background: #252529;
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  box-shadow: 4px 4px 10px #0d0d0f, -2px -2px 6px #2f2f36;
  transition: all 0.15s;
  font-size: 14px;
}
.newsletter-btn:hover { color: #e6c76a; box-shadow: 6px 6px 14px #0a0a0c, -3px -3px 8px #333339; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a5448;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.breadcrumb a { color: #8a6f2e; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: #c9a84c; }

/* ── Noticia subtítulo ────────────────────────────────────── */
.noticia-subtitulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: #9a9080;
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

/* ── Compartir ────────────────────────────────────────────── */
.compartir {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.compartir-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a5448;
}

/* ── Sin resultados ───────────────────────────────────────── */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: #5a5448;
  font-style: italic;
  font-size: 16px;
}

/* ── Admin toast ──────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  animation: fadeInUp 0.3s ease, fadeOut 0.3s ease 3.2s forwards;
}
.toast-ok { background: rgba(39,174,96,0.15); color: #27ae60; border: 1px solid rgba(39,174,96,0.3); }

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeOut {
  to { opacity:0; }
}

/* ── Active section en top bar ────────────────────────────── */
.active-section { color: #c9a84c !important; font-weight: 600; }
