/*
Theme Name: José Antonio Coach
Theme URI: https://joseantoniocoach.com
Template: twentytwentyfive
Description: Tema profesional para José Antonio Alonso — Coaching, PNL e Hipnosis. Sistema de diseño v3 "Premium boutique balanceado". Basado en Twenty Twenty-Five.
Author: QWAIR
Version: 2.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: joseantoniocoach
*/

/* ==========================================================================
   LAYOUT — elimina huecos blancos entre header/main/footer
   ========================================================================== */

/* Quitar todo margen superior/inferior en el main y todos sus contenedores */
main.wp-block-group,
main .wp-block-post-content,
main .entry-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

main .wp-block-post-content > *:last-child,
main .entry-content > *:last-child,
main > *:last-child {
  margin-bottom: 0 !important;
}

main .wp-block-post-content > *:first-child,
main .entry-content > *:first-child,
main > *:first-child {
  margin-top: 0 !important;
}

/* Core aplica margin-block-start: 1.2rem entre los hijos directos de
   .wp-site-blocks. Lo eliminamos para evitar huecos blancos entre
   header / main / footer. */
.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Block gap a 0 en los contenedores layout-flow/constrained del main:
   las secciones JAC controlan su propio padding interno. */
main > .wp-block-post-content.is-layout-constrained > *,
main > .wp-block-post-content.is-layout-flow > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   FOOTER — navegación a 2 sub-columnas en desktop para compactar altura
   ========================================================================== */

.footer-nav-cols .wp-block-navigation__container {
  display: block !important;
  column-count: 2;
  column-gap: var(--wp--preset--spacing--40, 1.5rem);
}

.footer-nav-cols .wp-block-navigation-item {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

.footer-nav-cols .wp-block-navigation-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .footer-nav-cols .wp-block-navigation__container {
    column-count: 1;
  }
}

/* ==========================================================================
   Headings — usar fuente Cormorant (display) y pesos finos por defecto
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--jac-font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h3, h4, h5, h6 {
  font-weight: 500;
}

h5, h6 {
  font-family: var(--jac-font-mono);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Kicker helper — funciona en cualquier <p> o <span> con clase */
.is-kicker,
.wp-block-paragraph.is-kicker {
  font-family: var(--jac-font-mono);
  font-size: var(--jac-kicker);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--jac-gold);
  font-weight: 500;
}
