/*
Theme Name: Base Cofrade Theme
Theme URI: https://example.com/base-cofrade
Author: Base Cofrade
Description: Tema ligero y profesional para Base Cofrade, optimizado para el plugin Base Cofrade Core.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: base-cofrade-theme
*/

:root {
  --bc-navy: #07111f;
  --bc-navy-2: #0b1728;
  --bc-gold: #c59a45;
  --bc-gold-soft: #e0bd75;
  --bc-text: #172033;
  --bc-muted: #667085;
  --bc-bg: #f5f7fa;
  --bc-card: #ffffff;
  --bc-border: #e4e8ef;
  --bc-radius: 14px;
  --bc-shadow: 0 8px 28px rgba(10, 22, 40, .08);
  --bc-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bc-text);
  background: var(--bc-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.bc-container { width: min(calc(100% - 32px), var(--bc-container)); margin-inline: auto; }

.bc-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, .97);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.admin-bar .bc-site-header { top: 32px; }
.bc-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.bc-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.bc-brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--bc-gold);
  color: var(--bc-gold-soft);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -1px;
}
.bc-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.bc-brand-name { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.bc-brand-tagline { margin-top: 5px; font-size: 10px; color: rgba(255,255,255,.68); }

.bc-main-nav { margin-left: auto; }
.bc-main-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.bc-main-nav a { position: relative; display: block; padding: 22px 0 20px; font-size: 13px; font-weight: 650; color: rgba(255,255,255,.88); }
.bc-main-nav a:hover, .bc-main-nav .current-menu-item > a { color: #fff; }
.bc-main-nav .current-menu-item > a::after,
.bc-main-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 2px;
  background: var(--bc-gold); border-radius: 2px;
}
.bc-header-actions { display: flex; gap: 8px; }
.bc-icon-button {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff;
}
.bc-icon-button:hover { border-color: var(--bc-gold); color: var(--bc-gold-soft); }
.bc-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 24px; padding: 8px; }

.bc-main { min-height: 60vh; }
.bc-page-wrap { padding: 28px 0 54px; }
.bc-page-header { margin-bottom: 20px; }
.bc-page-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; color: var(--bc-navy); }
.bc-content-card { background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: clamp(18px, 3vw, 34px); box-shadow: var(--bc-shadow); }

/* Make plugin portal compact and full width */
.bc-main .bc-v4-portal,
.bc-main .base-cofrade-portal-v4,
.bc-main [class*="bc-portal"] { max-width: var(--bc-container) !important; margin-inline: auto !important; }
.bc-main h1:first-child { margin-top: 0; }
body.home .bc-page-header { display: none; }
body.home .bc-page-wrap { padding-top: 18px; }
body.home .bc-content-card { padding: 0; border: 0; box-shadow: none; background: transparent; }

.bc-site-footer { margin-top: 38px; background: var(--bc-navy); color: rgba(255,255,255,.78); }
.bc-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 48px; padding: 42px 0 30px; }
.bc-footer-title { margin: 0 0 12px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.bc-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; }
.bc-footer-links a:hover { color: var(--bc-gold-soft); }
.bc-footer-copy { border-top: 1px solid rgba(255,255,255,.09); padding: 16px 0 20px; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .admin-bar .bc-site-header { top: 46px; }
  .bc-header-inner { min-height: 60px; }
  .bc-menu-toggle { display: block; margin-left: auto; }
  .bc-main-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; margin: 0; background: var(--bc-navy-2); border-top: 1px solid rgba(255,255,255,.08); }
  .bc-main-nav.is-open { display: block; }
  .bc-main-nav ul { display: grid; gap: 0; padding: 8px 16px 16px; }
  .bc-main-nav a { padding: 12px 6px; }
  .bc-main-nav a::after { display: none; }
  .bc-header-actions { display: none; }
  .bc-brand-tagline { display: none; }
  .bc-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .bc-footer-copy { flex-direction: column; }
}

@media (max-width: 600px) {
  .bc-container { width: min(calc(100% - 20px), var(--bc-container)); }
  .bc-brand-name { font-size: 14px; }
  .bc-page-wrap { padding-top: 16px; }
}
