/*
Theme Name: Blocksy Child - ApologeticaCatolica
Theme URI: https://apologeticacatolica.org
Description: Child theme de Blocksy para ApologeticaCatolica.org
Author: José Miguel Arráiz Roberti
Author URI: https://apologeticacatolica.org
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/* ============================================================
   TOKENS DE DISEÑO
   ============================================================ */
:root {
  --color-navy:  #1a1a2e;
  --color-gold:  #8B6914;
  --color-gold-light: #d4a017;
  --color-cream: #faf7f2;
  --color-cream-border: #e8e0d0;
  --color-text:  #2c2c3a;
  --color-text-muted: #6b6b7a;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ============================================================
   RESET BLOCKSY — evitar conflictos con nuestro header/footer
   ============================================================ */
.site-header, .ct-header, [data-id="header"] { display: none !important; }
.site-footer, .ct-footer, [data-id="footer"] { display: none !important; }

/* ============================================================
   TIPOGRAFÍA BASE
   ============================================================ */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  max-width: none !important;
  width: 100% !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
}

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.apc-nav {
  background: #fff;
  border-bottom: 1px solid var(--color-cream-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.apc-nav-inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.apc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.apc-logo svg { flex-shrink: 0; }

.apc-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.apc-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  white-space: nowrap;
}
.apc-nav-link:hover { color: var(--color-navy); }
.apc-nav-link.active {
  color: var(--color-navy);
  font-weight: 500;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}

.apc-nav-ctas { display: flex; align-items: center; gap: 8px; }
.apc-nav-cta {
  background: var(--color-gold);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.apc-nav-cta:hover { background: #6d5010; color: #fff; }

/* Hamburger */
.apc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.apc-hamburger span {
  width: 22px; height: 2px;
  background: #444;
  border-radius: 2px;
  display: block;
  transition: 0.2s;
}

/* Menú móvil */
.apc-mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--color-cream-border);
  position: sticky;
  top: 64px;
  z-index: 99;
}
.apc-mobile-menu.open { display: flex; }
.apc-mobile-link {
  font-family: var(--font-body);
  font-size: 15px;
  color: #444;
  padding: 14px 5%;
  border-bottom: 1px solid #f5f0e8;
  text-decoration: none;
  display: block;
}
.apc-mobile-link.active { color: var(--color-navy); font-weight: 500; }
.apc-mobile-cta {
  padding: 16px 5%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  display: block;
}

/* Responsive nav */
@media (max-width: 900px) {
  .apc-nav-links, .apc-nav-ctas { display: none; }
  .apc-hamburger { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.apc-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  margin-top: 80px;
}
.apc-footer-inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 56px 5% 40px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.apc-footer-brand { flex: 1; min-width: 200px; }
.apc-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}
.apc-footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}
.apc-footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.apc-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apc-footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.apc-footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.apc-footer-col a:hover { color: #fff; }
.apc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 5%;
  text-align: center;
}
.apc-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.apc-footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.apc-footer-bottom a:hover { color: #fff; }

/* Footer responsive */
@media (max-width: 760px) {
  .apc-footer-inner { gap: 32px; padding: 40px 5% 32px; }
  .apc-footer-links { gap: 28px; }
  .apc-footer-brand { min-width: 100%; }
}
@media (max-width: 480px) {
  .apc-footer-links { flex-direction: column; gap: 20px; }
  .apc-footer-col { gap: 8px; }
  .apc-footer-bottom p { font-size: 12px; }
}

/* ============================================================
   CONTENIDO GENERAL
   ============================================================ */
#apc-content {
  min-height: 60vh;
  background: var(--color-cream);
}
