/* =========================================================
   EL COLECTIVO MÁGICO — Estilo editorial para páginas de
   contenido construidas en Gutenberg (NO Elementor)
   Verificado: el Home usa Elementor dentro de .entry-content
   con la clase body.elementor-page. WooCommerce usa body.woocommerce-page.
   El sistema de eventos (/eventos-ss/) usa body.ss-events-page.
   Todo aquí queda excluido de esas 3 clases.
   Fuente real confirmada en el Home: Roboto, sans-serif.
   Dorado de marca confirmado: #F2C230.
   NOTA: sin variables CSS (:root) porque el sanitizador de
   CSS del Customizer de WordPress las elimina silenciosamente.
   Valores escritos directamente en cada regla.
   ========================================================= */

/* =========================================================
   1. FONDO Y BASE
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content {
  background-color: #0d0d0d;
  color: #ede9e0;
  font-family: "Roboto", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  padding: 2.5rem 1.25rem 4rem;
  counter-reset: cm-h3 cm-faq;
}

@media (min-width: 782px) {
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content {
    font-size: 1.125rem;
    padding: 3.5rem 2rem 5rem;
  }
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content > p,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content > ul,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content > ol,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content > blockquote {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content p {
  margin: 0 0 1.4em;
  color: #ede9e0;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content ul,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content ol {
  color: #ede9e0;
  padding-left: 1.3em;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content li {
  margin-bottom: 0.5em;
}

/* =========================================================
   2. H2
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #f2c230;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.25;
  max-width: 42rem;
  margin: 4rem auto 1.25rem;
  position: relative;
  padding-top: 1.5rem;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #f2c230, transparent);
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h2:first-of-type {
  margin-top: 2rem;
}

/* =========================================================
   3. H3
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  color: #d9ae3e;
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 2.25rem auto 0.6rem;
  padding-left: 2.4rem;
  position: relative;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h3::before {
  counter-increment: cm-h3;
  content: counter(cm-h3, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #d9ae3e;
  border: 1px solid rgba(242, 194, 48, 0.22);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h3 + p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   4. IMÁGENES
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content figure,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .wp-block-image {
  margin: 3rem auto;
  text-align: center;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .wp-block-image:not(.alignwide):not(.alignfull) img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 640px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(242, 194, 48, 0.22),
    0 24px 48px -16px rgba(242, 194, 48, 0.12),
    0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .alignwide,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .alignfull {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  max-width: 100%;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .alignwide img,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content .alignfull img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content figcaption {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #b3ada0;
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
}

/* =========================================================
   5. ENLACES INTERNOS
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content a {
  color: #d9ae3e;
  text-decoration: underline;
  text-decoration-color: rgba(217, 174, 62, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content a:hover,
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content a:focus-visible {
  color: #f2c230;
  text-decoration-color: #f2c230;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content a:focus-visible {
  outline: 2px solid #f2c230;
  outline-offset: 2px;
}

/* =========================================================
   6. FAQ — core/details nativo, sin JS
   ========================================================= */

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details {
  counter-increment: cm-faq;
  max-width: 42rem;
  margin: 0 auto 0.9rem;
  background: #171512;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details:hover {
  border-color: rgba(242, 194, 48, 0.22);
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details[open] {
  border-color: #d9ae3e;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  min-height: 48px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ede9e0;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary::-webkit-details-marker {
  display: none;
}
body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary::marker {
  content: "";
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary::before {
  content: counter(cm-faq, decimal-leading-zero);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #d9ae3e;
  flex: 0 0 auto;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: #f2c230;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details[open] summary::after {
  transform: rotate(45deg);
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary:focus-visible {
  outline: 2px solid #f2c230;
  outline-offset: -2px;
}

body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details > *:not(summary) {
  padding: 0 1.25rem 1.15rem 3rem;
  color: #b3ada0;
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */

@media (max-width: 782px) {
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content h3 {
    font-size: 1.05rem;
  }
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content summary {
    padding: 0.9rem 1rem;
  }
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content details > *:not(summary) {
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  body:not(.elementor-page):not(.woocommerce-page):not(.ss-events-page) .entry-content {
    padding: 2rem 1rem 3rem;
  }
}
