/* ===== CEONM News – estilos de frontend (plugin) ===== */

/* Wrapper general */
.ceonm-wrap {
    color: #ffffff;
    font-family: 'Helvetica Neue';
    width: 100%;
}

/* Barra de categorías */
.ceonm-bar {
    display: flex;
    gap: 36px;
    align-items: center;
    background: #c70b1f;
    padding: 18px 22px;
    border-radius: 0;
    overflow: auto;
    width: 100%;
}

.ceonm-tab {
    position: relative;
    font-weight: 500;
    font-size: 1.20rem;
    opacity: .65;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    font-family: 'Helvetica Neue';
}
.ceonm-tab.is-active {
    opacity: 1;
    font-weight: bold;
}
.ceonm-tab + .ceonm-tab::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 22px;
    background: rgba(255, 255, 255, .5);
}

/* Grid de posts */
.ceonm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    background: #232323;
    padding: 28px;
    max-width: 1228px;
    margin: 0 auto;
}
@media(max-width:960px){
    .ceonm-grid { grid-template-columns: 1fr; }
}

/* Tarjeta de post */
.ceonm-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    background: #c70b1f;
    border-radius: 32px;
    padding: 20px;
    border: inherit;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    color: #fff;
    font-family: 'Helvetica Neue';
}
@media(max-width:640px){
    .ceonm-card { grid-template-columns: 1fr; }
}

/* Imagen destacada */
.ceonm-thumb {
    aspect-ratio: 4/3;
    border-radius: 22px;
    overflow: hidden;
    background: #eee;
}
.ceonm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metadatos */
.ceonm-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Helvetica Neue';
}

/* Título */
.ceonm-title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 6px 0 8px 0;
    font-family: 'Helvetica Neue';
    font-weight: 500;
}

/* Fecha */
.ceonm-date {
    color: #ffffff;
    opacity: .9;
    margin-bottom: 12px;
    font-family: 'Helvetica Neue';
    font-weight: 300;
}

/* Botón leer más */
.ceonm-more {
    align-self: flex-start;
    background: #121212;
    color: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    display: inline-block;
    transition: transform .12s ease;
    text-decoration: none;
    font-family: 'Helvetica Neue';
}
.ceonm-more:hover { transform: translateY(-1px); }

/* Estados */
.ceonm-empty {
    color: #bdbdbd;
    padding: 24px;
    font-family: 'Helvetica Neue';
}
.ceonm-loader {
    padding: 24px;
    font-family: 'Helvetica Neue';
}

/* Botón “Cargar más” */
.ceonm-loadmore {
    margin: 12px 28px;
    background: #121212;
    color: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-family: 'Helvetica Neue';
}

.ceonm-title a {
  color: inherit;
  text-decoration: none;
}
.ceonm-title a:hover {
  text-decoration: underline;
}

.ceonm-thumb {
  display: block;
}
.ceonm-thumb img {
  transition: transform .25s ease;
}
.ceonm-thumb:hover img {
  transform: scale(1.03);
}

/* ===== SPINNER y animaciones ===== */
.ceonm-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px; /* altura mínima visible del área */
  width: 100%;
	position: absolute;
    left: 0;
    top: 50px;
}

.spinner-circle {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animación de entrada suave */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Suavizado inicial de aparición */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
