/* CIBERIA — capa WordPress: integra los bloques nativos con el sistema de diseño. */

/* Los bloques de WordPress no añaden márgenes propios: los define cada clase del diseño.
   Va en la capa «base» para que las utilidades del diseño (mt-*, etc.) sigan mandando. */
@layer base {
  .cb-main .wp-block-group, .cb-main .wp-block-heading, .cb-main p { margin: 0; }
}

/* El HTML fijo de las animaciones no genera cajas extra */
.cb-main [data-cb-island="hero-visual"],
.cb-main [data-cb-island]:not([class]) { display: contents; }

/* Titulares del hero: líneas en dorado */
.cb-hero-title strong { font-weight: inherit; }

/* Apariciones al hacer scroll (solo si hay JavaScript) */
.cb-js .cb-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.cb-js .cb-reveal.is-in { opacity: 1; transform: none; }
.cb-d-1 { transition-delay: 50ms !important; }  .cb-d-2 { transition-delay: 100ms !important; }
.cb-d-3 { transition-delay: 150ms !important; } .cb-d-4 { transition-delay: 200ms !important; }
.cb-d-5 { transition-delay: 250ms !important; } .cb-d-6 { transition-delay: 300ms !important; }
.cb-d-7 { transition-delay: 350ms !important; } .cb-d-8 { transition-delay: 400ms !important; }
.cb-d-9 { transition-delay: 450ms !important; } .cb-d-10 { transition-delay: 500ms !important; }

/* Entrada del hero al cargar */
@keyframes cbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cbInTitle { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
.cb-js .cb-in { opacity: 0; animation: cbIn 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.cb-js .cb-in-1 { animation-delay: .1s; }
.cb-js .cb-in-2 { animation: cbInTitle 1.1s cubic-bezier(.16, 1, .3, 1) .22s forwards; }
.cb-js .cb-in-3 { animation-delay: .9s; }
.cb-js .cb-in-4 { animation-delay: 1.05s; }
.cb-js .cb-in-5 { animation-delay: 1.3s; }

@media (prefers-reduced-motion: reduce) {
  .cb-js .cb-reveal, .cb-js .cb-in { opacity: 1 !important; transform: none !important; animation: none !important; clip-path: none !important; }
}

/* Plantilla por defecto (entradas y 404) */
.cb-prose p + p { margin-top: 1.1em; }
.cb-prose a { color: var(--color-brand-gold); text-decoration: underline; text-underline-offset: 3px; }
.cb-prose h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-top: 2em; color: var(--color-bone); }

/* Barra de administración de WordPress: la cabecera fija baja con ella */
body.admin-bar header.fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.fixed { top: 46px; } }
