/* Copa Navidad 3 vs 3 — Tipografía robusta (Oswald + Montserrat) y paleta rojo/azul */

:root {
    --cn-red: #cf2a30;
    --cn-red-dark: #a81f24;
    --cn-blue: #236ea4;
    --cn-blue-dark: #19527c;
    --cn-font-display: "Oswald", sans-serif;
    --cn-font-body: "Montserrat", sans-serif;
    --cn-font-script: "Kaushan Script", cursive;
}

/* Tipografía robusta */
body,
p,
.button-1,
.button-2,
.button-3 {
    font-family: var(--cn-font-body);
}

h1,
h2,
h3,
h4,
h5,
.section-title,
.cn-count-num,
.cn-modal .modal-title {
    font-family: var(--cn-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kenburns-inner h3 {
    font-family: var(--cn-font-script);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.2;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.section-title span,
.kenburns-inner h3 span {
    font-style: normal;
    color: var(--cn-red) !important;
}

.section-subtitle,
.kenburns-inner h5 {
    font-family: var(--cn-font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--cn-blue);
}

.section-subtitle.text-white,
.kenburns-inner h5 {
    color: #fff;
}

.section-subtitle .icon,
.kenburns-inner h5 .icon {
    background-color: var(--cn-red);
}

/* Botón secundario en azul #236ea4 */
.button-2 {
    border-color: var(--cn-blue);
    color: var(--cn-blue);
}

.button-2 span {
    background: var(--cn-blue);
}

.button-2:hover {
    background: var(--cn-blue);
    border-color: var(--cn-blue);
    color: #fff;
}

/* Iconos y etiquetas en azul secundario #236ea4 */
.services-box .item .icon,
.events .item .text p {
    color: var(--cn-blue);
}

.section-info .tag {
    background-color: var(--cn-blue);
    font-family: var(--cn-font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-info .text-decoration-line-bottom {
    border-bottom-color: var(--cn-red);
    font-family: var(--cn-font-body);
    font-style: normal;
    font-weight: 700;
}

/* Logo proporcionado en navbar y footer + transparencia al hacer scroll */
.navbar.nav-scroll {
    background: rgba(21, 34, 41, 0.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar .logo-img {
    max-height: 120px;
    margin-top: 30px;
    width: auto !important;
    object-fit: contain;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.navbar.nav-scroll .logo-img {
    max-height: 84px;
    margin-top: 0;
}

.footer .logo img {
    max-height: 64px;
    width: auto !important;
    object-fit: contain;
}

/* Hero Kenburns adaptado */
#kenburnsSliderContainer .vegas-overlay {
    background: rgba(15, 23, 42, 0.65);
    opacity: 1;
}

/* Hero con imagen única fija (sin slideshow Vegas) */
.kenburns-section.cn-hero-static {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.kenburns-section.cn-hero-static::before {
    display: none;
}

.kenburns-section.cn-hero-static::after {
    background: rgba(15, 23, 42, 0.65);
    z-index: 1;
}

.kenburns-section.cn-hero-static .kenburns-inner {
    width: 100%;
    padding: 120px 0 80px;
}

.kenburns-section.cn-hero-static .v-middle {
    position: relative;
    top: auto;
    transform: none;
}

.kenburns-inner .cn-hero-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 28px;
}

.kenburns-inner .cn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.kenburns-inner .cn-hero-link {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kenburns-inner .cn-hero-link:hover {
    background: var(--cn-blue);
    color: #fff;
    border-color: var(--cn-blue);
}

/* Flyer en About */
.about1 .item img.cn-flyer-img {
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(21, 34, 41, 0.14);
}

.about1 .year-box .number.cn-price-badge {
    font-family: var(--cn-font-display);
    font-size: 36px;
    font-variant-numeric: tabular-nums;
}

/* Countdown en banda azul secundario con acento rojo */
.cn-countdown {
    background: linear-gradient(135deg, #2a85c8 0%, #5b9dcd 100%) !important;
    border-top: 4px solid var(--cn-red);
    color: #fff;

    .section-title {
        span {
            color: var(--cn-blue-dark) !important;
        }
    }
}

.cn-countdown .cn-count-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cn-count-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 3px solid var(--cn-red);
    border-radius: 8px;
    padding: 26px 12px;
    text-align: center;
}

.cn-count-num {
    display: block;
    font-size: 56px;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.cn-count-label {
    display: block;
    font-family: var(--cn-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
    .cn-countdown .cn-count-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cn-count-num {
        font-size: 42px;
    }
}

/* Equipos Inscritos sobre .events */
.events {
    .item {
        padding: 25px 0;
    }
}

.events .item .date>span {
    font-family: var(--cn-font-display);
    font-variant-numeric: tabular-nums;
    min-width: 60px;
    color: var(--cn-blue);
    font-size: 3.4rem;
}

.events .item:hover {
    border-bottom-color: var(--cn-blue);
}

.cn-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    line-height: 1.5 !important;
}

.cn-status-confirmado {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.cn-status-confirmando {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde047;
}

.cn-status-pendiente {
    background: #fee2e2;
    color: var(--cn-red-dark);
    border-color: #fca5a5;
}

.cn-team-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cn-team-actions .button-2,
.cn-team-actions .button-1 {
    margin: 0;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cn-btn-pay {
    background: var(--cn-red) !important;
    border-color: var(--cn-red) !important;
    color: #fff !important;
    font-variant-numeric: tabular-nums;
}

.cn-btn-pay:hover {
    background: var(--cn-red-dark) !important;
    border-color: var(--cn-red-dark) !important;
}

@media (max-width: 767.98px) {
    .cn-team-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

/* Premiación */
.price .item .value h4 {
    font-family: var(--cn-font-display);
    font-size: 34px;
    font-variant-numeric: tabular-nums;

    small {
        font-size: .5em;
    }
}

.price .item .feat li i.green {
    color: var(--cn-blue);
}

.cn-prize-alt {
    text-align: center;
    margin-top: 6px;
}

.cn-prize-or {
    display: inline-block;
    font-size: 38px;
    font-weight: 700;
    color: var(--cn-blue);
    margin-bottom: 6px;
    padding-bottom: 20px;
}

.cn-prize-products {
    font-family: var(--cn-font-display);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cn-red);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Patrocinadores */
.cn-sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 108px;
    padding: 18px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #152229;
    font-family: var(--cn-font-display);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cn-sponsor-card:hover {
    display: flex;
    width: 100%;
    background: #fff;
    border-color: var(--cn-blue);
    box-shadow: 0 10px 30px rgba(35, 110, 164, 0.12);
    color: var(--cn-blue);
}

.cn-sponsor-card img {
    width: auto !important;
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
}

/* Modal Roster */
.cn-modal .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.cn-modal .modal-title {
    font-size: 26px;
    color: #152229;
}

.cn-modal .list-group-item {
    border-color: #e2e8f0;
    color: #152229;
    font-size: 15px;
    font-weight: 500;
}

/* Registro / edición de equipos */
.cn-team-cta .button-1,
.cn-team-cta .button-2 {
    margin: 0 6px 10px;
    cursor: pointer;
}

.cn-form .form-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #152229;
    margin-bottom: 4px;
}

.cn-form input[type="text"],
.cn-form input[type="email"],
.cn-form input[type="tel"],
.cn-form .form-control {
    height: 40px;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #152229;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
}

.cn-form .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.cn-form .form-control:focus {
    color: #152229;
    background-color: #fff;
    border-color: var(--cn-blue);
    box-shadow: 0 0 0 0.2rem rgba(35, 110, 164, 0.15);
}

.cn-form .form-control[readonly] {
    background: #f1f5f9;
    color: #475569;
}

.cn-form .input-group .btn {
    height: 40px;
    padding: 0 12px;
}

.cn-roster-h {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #152229;
}

.cn-roster-h small {
    font-weight: 500;
    text-transform: none;
    color: #64748b;
}

.cn-btn-submit {
    background: var(--cn-red);
    border-color: var(--cn-red);
    color: #fff;
    font-weight: 600;
}

.cn-btn-submit:hover:not(:disabled) {
    background: var(--cn-red-dark);
    border-color: var(--cn-red-dark);
    color: #fff;
}

/* Alertas legibles en modales y en la sección de equipos */
.cn-modal .alert-success,
.cn-page-alert.alert-success {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #166534 !important;
}

.cn-modal .alert-danger,
.cn-page-alert.alert-danger {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

.cn-modal .alert-warning,
.cn-page-alert.alert-warning {
    background: #fef9c3 !important;
    border: 1px solid #fde047 !important;
    color: #854d0e !important;
}

.cn-modal .alert strong,
.cn-modal .alert li,
.cn-page-alert strong,
.cn-page-alert li {
    color: inherit !important;
}

.cn-page-alert {
    font-size: 15px;
    border-radius: 6px;
    margin-bottom: 24px;
}

/* Nota / coletilla de premiación */
.cn-prize-note {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--cn-blue);
    border-radius: 6px;
    padding: 16px 22px;
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.cn-prize-note-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cn-blue);
    margin-bottom: 6px;
}

.cn-prize-note ul {
    margin: 0;
    padding-left: 18px;
}

.cn-prize-note li {
    list-style: disc;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* Modales de Reglas (.pdf) y Layout (Light Mode) */
.cn-pdf-wrap {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.cn-pdf-viewer {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    border: 0;
}

.cn-layout-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cn-layout-card:hover {
    border-color: var(--cn-blue);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.cn-layout-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f8fafc;
    cursor: zoom-in;
}

.cn-layout-trigger img {
    display: block;
    max-height: 360px;
    object-fit: contain;
    background: #f8fafc;
}

.cn-layout-caption {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.cn-layout-zoom-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.cn-layout-zoom-box img {
    max-height: 72vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Modal de Pagos Manuales (Light Mode) */
.cn-pay-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

.cn-pay-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

#payMethodTabs .nav-link {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

#payMethodTabs .nav-link.active {
    background: var(--cn-blue);
    color: #fff;
    border-color: var(--cn-blue);
}

.cn-pay-qr {
    max-height: 260px;
    width: auto;
}

.cn-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cn-dropzone:hover,
.cn-dropzone:focus-visible,
.cn-dropzone.is-dragover {
    border-color: var(--cn-blue);
    background: #eff6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 110, 164, 0.12);
}

.cn-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--cn-blue);
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.cn-dropzone-preview img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    padding: 4px;
}