/* ==========================================================================
   CND – Zonas de Publicidad + Banner de Notificaciones Push
   Integrado con el tema Newsup (paleta de colores y tipografía del tema)
   ========================================================================== */

/* ==================================================================
   BANNER DE NOTIFICACIONES PUSH
   ================================================================== */
#cnd-push-banner {
    position: fixed;
    bottom: -160px;
    left: 0;
    right: 0;
    z-index: 99999;
    transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

#cnd-push-banner.cnd-push-visible {
    bottom: 0;
    pointer-events: all;
}

.cnd-push-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #202f5b;
    border-top: 3px solid #1151d3;
    padding: 16px 28px;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

/* Ícono campana */
.cnd-push-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(17, 81, 211, 0.2);
    border: 2px solid rgba(17, 81, 211, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: cnd-bell 2.5s ease infinite;
}

.cnd-push-icon-wrap .fa-bell {
    font-size: 22px;
    color: #ffffff;
}

@keyframes cnd-bell {
    0%, 85%, 100% { transform: rotate(0deg); }
    90%           { transform: rotate(-15deg); }
    95%           { transform: rotate(15deg); }
}

/* Texto */
.cnd-push-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 200px;
}

.cnd-push-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.cnd-push-desc {
    font-size: 13px;
    color: #a0b0cc;
    line-height: 1.4;
}

/* Botones */
.cnd-push-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cnd-push-btn {
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cnd-push-accept {
    background: #1151d3;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnd-push-accept:hover {
    background: #0e42b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(17, 81, 211, 0.4);
}

.cnd-push-dismiss {
    background: transparent;
    color: #7a90b0;
    border: 1px solid rgba(122, 144, 176, 0.3);
    padding: 9px 16px;
}

.cnd-push-dismiss:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Estados (loading / success / denied) */
.cnd-push-state {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    padding: 6px 0;
}

#cnd-push-banner[data-state="loading"]  .cnd-push-actions,
#cnd-push-banner[data-state="success"]  .cnd-push-actions,
#cnd-push-banner[data-state="denied"]   .cnd-push-actions { display: none; }

#cnd-push-banner[data-state="loading"] .cnd-push-state-loading { display: flex; color: #a0b0cc; }
#cnd-push-banner[data-state="success"] .cnd-push-state-success { display: flex; color: #4ade80; }
#cnd-push-banner[data-state="denied"]  .cnd-push-state-denied  { display: flex; color: #f87171; }

/* Responsive */
@media (max-width: 767px) {
    .cnd-push-inner {
        padding: 14px 16px;
        gap: 12px;
    }

    .cnd-push-icon-wrap {
        width: 42px;
        height: 42px;
    }

    .cnd-push-icon-wrap .fa-bell {
        font-size: 18px;
    }

    .cnd-push-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ------------------------------------------------------------------
   Contenedor genérico de zona
   ------------------------------------------------------------------ */
.cnd-ad-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    max-width: 100%;
    text-align: center;
}

.cnd-ad-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
    font-family: inherit;
}

.cnd-ad-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Placeholder visual (visible mientras no hay código de anuncio real)
   ------------------------------------------------------------------ */
.cnd-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f4f6f8;
    border: 1px dashed #c8d0da;
    color: #aab0bc;
    gap: 6px;
    padding: 12px;
    box-sizing: border-box;
}

.cnd-ad-placeholder span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b0b8c4;
}

.cnd-ad-placeholder small {
    font-size: 11px;
    color: #c4ccd6;
}

/* ------------------------------------------------------------------
   0. Banner top – Full-width en la cima de la página
   ------------------------------------------------------------------ */
.cnd-ad-header-top-wrap {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e4ea;
    text-align: center;
    padding: 6px 0 8px;
    position: relative;
    z-index: 9999;
    box-sizing: border-box;
}

.cnd-ad-header-top-wrap .cnd-ad-label {
    margin-bottom: 4px;
}

.cnd-ad-zone.cnd-ad-header-top {
    margin: 0;
    width: 100%;
}

.cnd-ad-zone.cnd-ad-header-top .cnd-ad-content {
    width: 100%;
    min-height: 90px;
    display: block;
}

.cnd-ad-zone.cnd-ad-header-top .cnd-ad-placeholder {
    width: 100%;
    min-height: 90px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    border: 1px dashed #c0cad6;
    flex-direction: row;
    gap: 12px;
}

.cnd-ad-zone.cnd-ad-header-top .cnd-ad-placeholder span {
    font-size: 14px;
}

/* ------------------------------------------------------------------
   1. Zona bajo la navegación – Leaderboard 728×90
   ------------------------------------------------------------------ */
.cnd-ad-below-nav-wrap {
    padding: 12px 0;
}

.cnd-ad-zone.cnd-ad-below-nav {
    margin: 0;
    align-items: flex-start;
    max-width: 66.666%;
}

.cnd-ad-zone.cnd-ad-below-nav .cnd-ad-content {
    min-height: 90px;
    display: block;
    width: 100%;
}

.cnd-ad-zone.cnd-ad-below-nav .cnd-ad-placeholder {
    min-height: 90px;
    width: 100%;
}

@media (max-width: 767px) {
    .cnd-ad-zone.cnd-ad-below-nav {
        max-width: 100%;
    }
}

/* ------------------------------------------------------------------
   2. Zona antes del contenido del artículo – Rectangle 336×280
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-before-content {
    float: right;
    margin: 0 0 16px 24px;
    clear: right;
}

.cnd-ad-zone.cnd-ad-before-content .cnd-ad-content {
    min-width: 336px;
    min-height: 280px;
}

/* ------------------------------------------------------------------
   2b. Dentro del artículo – entre párrafos 728×90
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-in-content {
    margin: 20px auto;
    clear: both;
}

.cnd-ad-zone.cnd-ad-in-content .cnd-ad-content {
    min-height: 90px;
    display: block;
    width: 100%;
}

.cnd-ad-zone.cnd-ad-in-content .cnd-ad-placeholder {
    min-height: 90px;
    width: 100%;
}

/* ------------------------------------------------------------------
   3. Zona después del contenido – Leaderboard 728×90
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-after-content {
    margin: 24px auto;
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
}

.cnd-ad-zone.cnd-ad-after-content .cnd-ad-content {
    min-width: 728px;
    min-height: 90px;
}

/* ------------------------------------------------------------------
   4. Zona entre posts del listado – Medium Rectangle 300×250
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-between-posts {
    margin: 12px auto;
}

.cnd-ad-zone.cnd-ad-between-posts .cnd-ad-content {
    min-width: 300px;
    min-height: 250px;
}

/* ------------------------------------------------------------------
   5b. Entre secciones del front page – 728×90
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-between-sections {
    margin: 16px 0;
    width: 100%;
}

.cnd-ad-zone.cnd-ad-between-sections .cnd-ad-content {
    min-height: 90px;
    display: block;
    width: 100%;
}

.cnd-ad-zone.cnd-ad-between-sections .cnd-ad-placeholder {
    min-height: 90px;
    width: 100%;
}

/* ------------------------------------------------------------------
   5. Widget de sidebar – 300×250
   ------------------------------------------------------------------ */
.cnd-ad-zone.cnd-ad-sidebar,
.cnd-ad-zone.cnd-ad-sidebar-widget {
    margin: 0 auto 16px;
}

.cnd-ad-zone.cnd-ad-sidebar .cnd-ad-content,
.cnd-ad-zone.cnd-ad-sidebar-widget .cnd-ad-content {
    min-width: 300px;
    min-height: 250px;
}

/* ==================================================================
   FOOTER MODERNO – Centro de Noticias Digital
   ================================================================== */

/* ------------------------------------------------------------------
   Acento rojo superior del footer
   ------------------------------------------------------------------ */
.footer.back-img {
    border-top: 3px solid #1151d3 !important;
}

/* ------------------------------------------------------------------
   6. Sección superior – nombre + descripción + redes sociales
   ------------------------------------------------------------------ */
.cnd-footer-top {
    padding: 48px 0 40px;
}

/* Logo / nombre */
.cnd-footer-brand {
    padding-right: 40px;
}

.cnd-footer-logo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cnd-footer-logo-thin {
    font-size: 18px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cnd-footer-logo-bold {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.cnd-footer-desc {
    font-size: 13px;
    color: #7a8898;
    line-height: 1.8;
    margin: 0;
    border-left: 3px solid #1151d3;
    padding-left: 14px;
}

/* Redes sociales */
.cnd-footer-social-wrap {
    padding-left: 48px;
    border-left: 1px solid #222;
}

.cnd-footer-social-title {
    font-size: 13px;
    font-weight: 700;
    color: #1151d3;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnd-footer-social-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: #1151d3;
    flex-shrink: 0;
}

.cnd-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.cnd-social-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 150px;
}

.cnd-social-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.25s ease;
}

.cnd-social-name {
    font-size: 14px;
    font-weight: 600;
    color: #c0cad6;
    transition: color 0.25s;
}

/* Hover por red */
.cnd-social-facebook:hover .cnd-social-circle {
    background-color: #1877f2;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24,119,242,0.35);
}

.cnd-social-instagram:hover .cnd-social-circle {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(214,36,159,0.35);
}

.cnd-social-x:hover .cnd-social-circle {
    background-color: #202f5b;
    border-color: #1151d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17,81,211,0.35);
}

.cnd-social-item:hover .cnd-social-name {
    color: #ffffff;
}

/* Separador */
.cnd-footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #2e2e2e 15%, #2e2e2e 85%, transparent);
    margin: 0 15px;
}

/* ------------------------------------------------------------------
   7. Contacto – 3 columnas centradas
   ------------------------------------------------------------------ */
.cnd-footer-contact {
    padding: 40px 0 36px;
}

.cnd-contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 32px;
    border-right: 1px solid #222;
}

.cnd-contact-block:last-child {
    border-right: none;
}

.cnd-contact-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cnd-contact-icon {
    font-size: 26px;
    color: #1151d3;
    display: block;
    margin: 0;
}

.cnd-contact-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px;
}

.cnd-contact-value {
    margin: 0;
    line-height: 2;
}

.cnd-contact-value,
.cnd-contact-value a {
    font-size: 14px;
    color: #1151d3;
    text-decoration: none;
    transition: color 0.2s;
}

.cnd-contact-value a:hover {
    color: #4a7fe8;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .cnd-footer-social-wrap {
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .cnd-footer-top {
        padding: 36px 0 28px;
    }

    .cnd-footer-brand {
        padding-right: 15px;
        margin-bottom: 32px;
    }

    .cnd-footer-social-wrap {
        padding-left: 15px;
        border-left: none;
        border-top: 1px solid #222;
        padding-top: 28px;
    }

    .cnd-social-grid {
        gap: 14px 20px;
    }

    .cnd-social-item {
        min-width: 130px;
    }

    .cnd-contact-block {
        border-right: none;
        border-bottom: 1px solid #222;
        padding: 24px 15px;
    }

    .cnd-contact-block:last-child {
        border-bottom: none;
    }
}

/* ------------------------------------------------------------------
   Responsive – adapta los tamaños en pantallas pequeñas
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .cnd-ad-zone.cnd-ad-below-nav .cnd-ad-content {
        min-height: 60px;
    }

    .cnd-ad-zone.cnd-ad-after-content .cnd-ad-content {
        min-width: 468px;
        min-height: 60px;
    }

    .cnd-ad-zone.cnd-ad-footer-banner .cnd-ad-content {
        min-width: 728px;
        min-height: 90px;
    }
}

@media (max-width: 767px) {
    .cnd-ad-zone.cnd-ad-header-top .cnd-ad-placeholder {
        flex-direction: column;
        min-height: 60px;
        gap: 4px;
    }

    .cnd-ad-zone.cnd-ad-before-content {
        float: none;
        margin: 0 auto 16px;
    }

    .cnd-ad-zone.cnd-ad-below-nav .cnd-ad-content,
    .cnd-ad-zone.cnd-ad-after-content .cnd-ad-content,
    .cnd-ad-zone.cnd-ad-footer-banner .cnd-ad-content {
        min-width: 320px;
        min-height: 50px;
    }

    .cnd-ad-zone.cnd-ad-sidebar .cnd-ad-content,
    .cnd-ad-zone.cnd-ad-sidebar-widget .cnd-ad-content,
    .cnd-ad-zone.cnd-ad-between-posts .cnd-ad-content {
        min-width: 300px;
        min-height: 250px;
    }
}
