/* =============================================
   CCESDN Novedades Slider – Estilos
   Fondo oscuro (azul marino) como en el diseño CCESDN
   ============================================= */

:root {
    --ccesdn-nov-red:     #B8962E;          /* FIX: era rojo #c1202a — ahora dorado del tema */
    --ccesdn-nov-gold:    #8B6914;          /* dorado oscuro para hover */
    --ccesdn-nov-navy:    #0a2558;
    --ccesdn-nov-dark:    #0d1b3e;
    --ccesdn-nov-card-bg: #ffffff;
    --ccesdn-nov-gray-bd: #e2e8f0;
    --ccesdn-nov-text:    #1e2a3a;
    --ccesdn-nov-text-lt: #6b7a8d;
    --ccesdn-nov-radius:  8px;
    --ccesdn-nov-shadow:  0 4px 20px rgba(10,37,88,0.12);
}

.ccesdn-novedades-section {
    background: var(--ccesdn-nov-dark);
    padding: 60px 0 50px;
    font-family: 'Open Sans', Arial, sans-serif;
    position: relative;
}

.ccesdn-novedades-section * { box-sizing: border-box; }

/* ── Header ── */
.ccesdn-nov-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ccesdn-nov-header__titles { display: flex; flex-direction: column; gap: 4px; }

.ccesdn-nov-section-title {
    font-size: 26px; font-weight: 700;
    color: #ffffff; text-transform: uppercase; letter-spacing: 1px;
    margin: 0; position: relative; padding-left: 16px;
}

.ccesdn-nov-section-title::before {
    content: '';
    position: absolute; left: 0; top: 2px; bottom: 2px;
    width: 4px; background: #B8962E; border-radius: 2px;
}

.ccesdn-nov-section-subtitle {
    font-size: 13px; color: rgba(255,255,255,0.55);
    margin: 0; padding-left: 16px; font-style: italic;
}

/* ── Tabs ── */
.ccesdn-nov-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.ccesdn-nov-tab {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.65);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: 'Open Sans', Arial, sans-serif;
}

.ccesdn-nov-tab:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.ccesdn-nov-tab--active { background: #B8962E; border-color: #B8962E; color: #fff; }

/* ── Slider ── */
.ccesdn-nov-slider-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 0 60px; position: relative; overflow: hidden;
}

.ccesdn-nov-track {
    display: flex; gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Card ── */
.ccesdn-nov-card {
    min-width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    background: var(--ccesdn-nov-card-bg);
    border-radius: var(--ccesdn-nov-radius);
    overflow: hidden;
    box-shadow: var(--ccesdn-nov-shadow);
    display: flex; flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ccesdn-nov-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.25); }

.ccesdn-nov-card__thumb {
    width: 100%; height: 200px;
    overflow: hidden; background: var(--ccesdn-nov-navy); flex-shrink: 0;
}

.ccesdn-nov-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s;
}

.ccesdn-nov-card:hover .ccesdn-nov-card__thumb img { transform: scale(1.04); }

.ccesdn-nov-card__no-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--ccesdn-nov-navy), #1a3a72);
}

.ccesdn-nov-card__body {
    padding: 18px 20px 22px;
    display: flex; flex-direction: column; flex: 1; gap: 10px;
}

.ccesdn-nov-card__date {
    font-size: 12px; color: var(--ccesdn-nov-text-lt);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}

.ccesdn-nov-card__title {
    font-size: 15px; font-weight: 700;
    color: var(--ccesdn-nov-navy); line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ccesdn-nov-card__excerpt {
    font-size: 13px; color: var(--ccesdn-nov-text-lt);
    line-height: 1.6; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.ccesdn-nov-card__btn {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ccesdn-nov-red); color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 9px 18px; border-radius: 4px;
    text-decoration: none; width: fit-content;
    transition: background 0.2s, transform 0.15s;
    text-transform: uppercase; letter-spacing: 0.3px;
}

.ccesdn-nov-card__btn:hover { background: #8B6914; color: #fff; text-decoration: none; transform: translateX(2px); }
.ccesdn-nov-card__btn-icon { font-size: 10px; line-height: 1; }

/* ── Arrows ── */
.ccesdn-nov-arrow {
    position: absolute; top: 50%; transform: translateY(-60%);
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.2s;
}

.ccesdn-nov-arrow:hover { background: #B8962E; border-color: #B8962E; }
.ccesdn-nov-arrow svg { pointer-events: none; }
.ccesdn-nov-prev { left: 8px; }
.ccesdn-nov-next { right: 8px; }
.ccesdn-nov-arrow.ccesdn-nov-disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ── Dots ── */
.ccesdn-nov-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }

.ccesdn-nov-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: none; cursor: pointer; padding: 0; transition: all 0.2s;
}

.ccesdn-nov-dot.ccesdn-nov-dot-active { background: #B8962E; transform: scale(1.3); }

/* ── Footer ── */
.ccesdn-nov-footer { text-align: center; margin-top: 36px; }

.ccesdn-nov-btn-all {
    display: inline-block;
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px 40px; border-radius: 6px;
    font-size: 14px; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.2s;
}

.ccesdn-nov-btn-all:hover { background: #fff; color: var(--ccesdn-nov-navy); border-color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ccesdn-nov-card { min-width: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
}

@media (max-width: 600px) {
    .ccesdn-nov-slider-wrap { padding: 0 44px; }
    .ccesdn-nov-card { min-width: 100%; max-width: 100%; }
    .ccesdn-nov-header { flex-direction: column; }
}
