/* ──────────────────────────────────────────────
   MODAL DE SORTEOS PÚBLICO — NexoColonia
   ────────────────────────────────────────────── */

.nc-sorteo-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), visibility .3s;
}
.nc-sorteo-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.nc-sorteo-modal-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.94) translateY(12px);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    color: #1e293b;
}
.nc-sorteo-modal-backdrop.is-active .nc-sorteo-modal-panel {
    transform: scale(1) translateY(0);
}

/* Close Button */
.nc-sorteo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
}
.nc-sorteo-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

/* Header & Logos */
.nc-sorteo-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.nc-sorteo-brand-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nc-sorteo-logo-portal img {
    height: 32px;
    width: auto;
    display: block;
}
.nc-sorteo-logo-divider {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.nc-sorteo-logo-donor {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: #0f172a;
}
.nc-sorteo-logo-donor img {
    max-height: 28px;
    max-width: 90px;
    object-fit: contain;
}

/* Prize Visual Banner */
.nc-sorteo-prize-banner {
    position: relative;
    width: 100%;
    height: 200px;
    background: #0f172a;
    overflow: hidden;
}
.nc-sorteo-prize-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}
.nc-sorteo-prize-badge {
    position: absolute;
    bottom: .85rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: .35rem .75rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Content Body */
.nc-sorteo-modal-content {
    padding: 1.25rem 1.5rem 1.5rem;
}
.nc-sorteo-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0284c7;
    margin-bottom: .35rem;
}
.nc-sorteo-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 .5rem;
}
.nc-sorteo-desc {
    font-size: .875rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 1rem;
}

/* Countdown bar */
.nc-sorteo-countdown-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.nc-countdown-text {
    font-size: .75rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nc-countdown-digits {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-family: monospace;
    font-size: .95rem;
    font-weight: 800;
    color: #1e3a8a;
}
.nc-countdown-unit {
    background: #ffffff;
    padding: .2rem .4rem;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

/* Participation Form */
.nc-sorteo-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.nc-sorteo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.nc-sorteo-group {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.nc-sorteo-label {
    font-size: .75rem;
    font-weight: 700;
    color: #334155;
}
.nc-sorteo-label .req {
    color: #dc2626;
}
.nc-sorteo-input {
    width: 100%;
    padding: .55rem .75rem;
    font-size: .85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.nc-sorteo-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Checkboxes */
.nc-sorteo-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: .35rem;
    padding: .75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.nc-sorteo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .78rem;
    color: #334155;
    cursor: pointer;
    line-height: 1.4;
}
.nc-sorteo-checkbox-label input[type="checkbox"] {
    margin-top: .15rem;
    accent-color: #0284c7;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Submit Button */
.nc-sorteo-submit-btn {
    width: 100%;
    padding: .75rem 1.25rem;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .15s, transform .1s;
    margin-top: .5rem;
}
.nc-sorteo-submit-btn:hover {
    background: #0369a1;
}
.nc-sorteo-submit-btn:active {
    transform: scale(0.99);
}
.nc-sorteo-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Feedback message */
.nc-sorteo-feedback {
    padding: 1rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-top: .5rem;
    display: none;
}
.nc-sorteo-feedback.is-success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.nc-sorteo-feedback.is-error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ──────────────────────────────────────────────
   BOTÓN FLOTANTE MINIMIZADO
   ────────────────────────────────────────────── */

.nc-sorteo-floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99990;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: .65rem 1rem .65rem .85rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s;
    animation: float-gentle 4s ease-in-out infinite;
}
.nc-sorteo-floating-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 28px -5px rgba(2, 132, 199, 0.5);
}
.nc-sorteo-floating-btn.is-hidden {
    display: none !important;
}
.nc-floating-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Portada: un único modal para sorteo activo + comunidad del Foro. */
.nc-sorteo-modal-panel.is-home-unified{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(390px,1.22fr);max-width:min(980px,96vw);max-height:92vh;overflow:hidden;padding:0}
.nc-home-forum-promo{display:flex;min-width:0;flex-direction:column;background:linear-gradient(155deg,#071a37 0%,#0b315d 58%,#087f5b 160%);color:#fff}
.nc-home-forum-promo-media{position:relative;min-height:215px;overflow:hidden;background:#071a37}.nc-home-forum-promo-media img{width:100%;height:100%;min-height:215px;object-fit:cover;opacity:.72}.nc-home-forum-promo-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(7,26,55,.88) 100%)}.nc-home-forum-promo-media span{position:absolute;z-index:1;left:1.3rem;bottom:1.1rem;font-size:.66rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.nc-home-forum-promo-copy{display:flex;flex:1;flex-direction:column;padding:1.45rem 1.45rem 1.4rem}.nc-home-forum-kicker{color:#7ee0b0;font-size:.66rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.nc-home-forum-promo-copy h2{margin:.55rem 0 .7rem;color:#fff;font:800 clamp(1.65rem,3vw,2.45rem)/1.06 var(--nc-font-editorial);letter-spacing:-.04em}.nc-home-forum-promo-copy p{margin:0;color:#d6e4f1;font-size:.86rem;line-height:1.55}.nc-home-forum-action,.nc-home-forum-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:1.15rem;border-radius:9px;text-decoration:none;font-size:.8rem;font-weight:800}.nc-home-forum-action{background:#fff;color:#0756ba}.nc-home-forum-secondary{margin-top:.55rem;border:1px solid rgba(255,255,255,.3);color:#fff}.nc-home-forum-promo-copy small{margin-top:auto;padding-top:1.1rem;color:#bcd0e2;font-size:.68rem;line-height:1.45}.nc-home-forum-promo-copy small a{color:#8ed7ff;font-weight:700}.nc-home-unified-raffle{min-width:0;max-height:92vh;overflow-y:auto;background:#fff}.nc-home-unified-raffle .nc-sorteo-modal-header{border-top-left-radius:0}.nc-home-unified-raffle .nc-sorteo-modal-content{padding-bottom:1.4rem}
@media(max-width:760px){.nc-sorteo-modal-panel.is-home-unified{display:flex;flex-direction:column;max-height:95vh;min-height:0}.nc-home-forum-promo{display:grid;grid-template-columns:38% 62%;flex:none}.nc-home-forum-promo-media,.nc-home-forum-promo-media img{min-height:190px}.nc-home-forum-promo-copy{padding:1rem}.nc-home-forum-promo-copy h2{font-size:1.45rem}.nc-home-forum-promo-copy p{font-size:.76rem}.nc-home-forum-action,.nc-home-forum-secondary{min-height:36px;margin-top:.65rem;font-size:.72rem}.nc-home-forum-promo-copy small{padding-top:.7rem;font-size:.62rem}.nc-home-unified-raffle{flex:1;min-height:0;max-height:none;overflow-y:auto}}
@media(max-width:520px){.nc-home-forum-promo{display:flex}.nc-home-forum-promo-media{min-height:145px;max-height:29vh}.nc-home-forum-promo-media img{min-height:145px}.nc-home-forum-promo-copy{padding:1rem 1.1rem}.nc-home-forum-promo-copy h2{font-size:1.55rem}}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ──────────────────────────────────────────────
   Responsive Mobile
   ────────────────────────────────────────────── */

@media (max-width: 600px) {
    .nc-sorteo-modal-backdrop {
        padding: .75rem;
    }
    .nc-sorteo-modal-panel {
        max-height: 95vh;
        border-radius: 12px;
    }
    .nc-sorteo-form-row {
        grid-template-columns: 1fr;
    }
    .nc-sorteo-prize-banner {
        height: 150px;
    }
    .nc-sorteo-floating-btn {
        bottom: 1rem;
        right: 1rem;
        padding: .55rem .85rem;
        font-size: .8rem;
    }
    .nc-sorteo-brand-logos {
        gap: .5rem;
    }
    .nc-sorteo-logo-portal img {
        height: 24px;
    }
}

/* Refinamiento premium de la portada unificada. */
.nc-sorteo-modal-backdrop.is-home-unified{padding:clamp(1.5rem,4vw,3.5rem)}
.nc-sorteo-modal-panel.is-home-unified{grid-template-columns:minmax(360px,.88fr) minmax(520px,1.12fr);max-width:min(1180px,calc(100vw - 4rem));margin:0 1rem;border-radius:24px;box-shadow:0 32px 100px rgba(2,16,37,.38)}
.nc-home-forum-promo{min-height:100%;background:#071a37}
.nc-home-forum-promo-media{min-height:560px;height:100%;background:#071a37}
.nc-home-forum-promo-media img{min-height:560px;opacity:.76;object-position:center center}
.nc-home-forum-promo-media:after{background:linear-gradient(180deg,rgba(7,26,55,.08) 12%,rgba(7,26,55,.22) 38%,rgba(7,26,55,.94) 100%)}
.nc-home-forum-media-label{left:2rem!important;bottom:auto!important;top:1.7rem;font-size:.72rem!important;color:#fff;letter-spacing:.16em;position:absolute!important}
.nc-home-forum-overlay-copy{position:absolute;z-index:2;right:0;bottom:0;left:0;padding:2rem 2.25rem 2.35rem;color:#fff}
.nc-home-forum-overlay-copy .nc-home-forum-kicker{position:static!important;display:block;color:#9af0c4;font-size:.72rem;letter-spacing:.16em}
.nc-home-forum-overlay-copy h2{max-width:13ch;margin:.7rem 0 .85rem;color:#fff;font:800 clamp(2.1rem,4vw,3.6rem)/1.02 var(--nc-font-editorial);letter-spacing:-.045em;text-shadow:0 3px 22px rgba(0,0,0,.28)}
.nc-home-forum-overlay-copy p{max-width:42ch;margin:0;color:#f2f7fb;font-size:.98rem;line-height:1.6;text-shadow:0 2px 12px rgba(0,0,0,.34)}
.nc-home-forum-promo-copy{justify-content:flex-start;padding:2.35rem 2.55rem 2.4rem;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)}
.nc-home-forum-action,.nc-home-forum-secondary,.nc-home-forum-invite{width:100%;box-sizing:border-box}
.nc-home-forum-action{min-height:50px;background:linear-gradient(135deg,#0756ba,#0b7a45);color:#fff;box-shadow:0 12px 24px rgba(7,86,186,.2)}
.nc-home-forum-secondary{min-height:46px;border-color:#cbd8e6;color:#0b315d;background:#fff}
.nc-home-forum-invite{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:.7rem;padding:.7rem 1rem;border:1px solid #f2b84b;border-radius:9px;background:linear-gradient(135deg,#fff7df,#fff);color:#9a5b00;font:800 .8rem inherit;cursor:pointer;transition:transform .16s,box-shadow .16s}
.nc-home-forum-invite:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(198,133,16,.18)}
.nc-home-forum-invite-status{display:block;min-height:1.2em;margin-top:.45rem;color:#087f5b;font-size:.72rem;font-weight:700;text-align:center}
.nc-home-forum-promo-copy small{margin-top:auto;padding-top:1.5rem;color:#647487}
.nc-sorteo-modal-header{padding:1.8rem 2.4rem 1.35rem}
.nc-sorteo-brand-logos{width:100%;gap:1.35rem}
.nc-sorteo-logo-donor{width:100%;gap:1.25rem;font-size:1rem;align-items:center}
.nc-sorteo-logo-donor img{width:auto;max-height:218px;max-width:598px;object-fit:contain;background:transparent;mix-blend-mode:multiply;filter:drop-shadow(0 8px 16px rgba(11,49,93,.1))}
.nc-sorteo-donor-copy{display:flex;flex-direction:column;gap:.18rem;min-width:12rem}
.nc-sorteo-donor-kicker{color:#087f5b;font-size:.68rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.nc-sorteo-donor-copy strong{color:#071a37;font-size:1.08rem;line-height:1.15}
.nc-sorteo-donor-copy small{max-width:22rem;color:#647487;font-size:.72rem;line-height:1.35}
.nc-sorteo-prize-banner{height:270px;background:radial-gradient(circle at 50% 35%,#204c75,#071a37 72%);padding:1.1rem;box-sizing:border-box}
.nc-sorteo-prize-banner img{object-fit:contain;opacity:1;filter:drop-shadow(0 14px 22px rgba(0,0,0,.28))}
.nc-sorteo-prize-badge{left:1.6rem;bottom:1.5rem;padding:.6rem 1rem;border-radius:10px;font-size:.9rem}
.nc-home-unified-raffle .nc-sorteo-modal-content{padding:2rem 2.4rem 2.6rem}
.nc-sorteo-kicker{font-size:.78rem;color:#087f5b}
.nc-sorteo-title{font-size:clamp(1.65rem,3vw,2.35rem);letter-spacing:-.025em}
.nc-sorteo-desc{font-size:.96rem}
.nc-sorteo-countdown-bar{margin:1.3rem 0 1.5rem;padding:1rem 1.15rem;border:1px solid #cfe2f5;border-radius:14px;background:linear-gradient(135deg,#eff8ff,#f5fffb);box-shadow:0 8px 18px rgba(11,49,93,.06)}
.nc-countdown-text{color:#0b315d;font-size:.72rem}
.nc-countdown-digits{gap:.45rem;font-family:inherit;font-size:1rem;color:#071a37}
.nc-countdown-unit{display:inline-flex;min-width:3.7rem;flex-direction:column;align-items:center;gap:.1rem;padding:.5rem .45rem;border:1px solid #c9dced;border-radius:10px;background:#fff;box-shadow:0 4px 10px rgba(11,49,93,.08)}
.nc-countdown-unit strong{font-size:1.25rem;line-height:1;color:#0756ba}.nc-countdown-unit small{font-size:.58rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#718198}
.nc-sorteo-form{gap:1rem}.nc-sorteo-form-row{gap:1rem}.nc-sorteo-label{font-size:.72rem;letter-spacing:.02em}.nc-sorteo-input{min-height:46px;padding:.7rem .85rem;border-color:#c4d3e1;border-radius:10px;font-size:.9rem}.nc-sorteo-checkbox-group{padding:1rem;border-radius:12px;background:#f5f9fd}.nc-sorteo-checkbox-label{font-size:.78rem}.nc-sorteo-submit-btn{min-height:52px;margin-top:.65rem;border-radius:11px;background:linear-gradient(135deg,#0756ba,#0b7a45);box-shadow:0 12px 24px rgba(7,86,186,.2);font-size:1rem}.nc-sorteo-submit-btn:hover{background:linear-gradient(135deg,#064697,#096940)}
@media(max-width:860px){.nc-sorteo-modal-panel.is-home-unified{grid-template-columns:1fr;max-width:min(720px,calc(100vw - 2rem));max-height:94vh}.nc-home-forum-promo{min-height:0}.nc-home-forum-promo-media,.nc-home-forum-promo-media img{min-height:330px}.nc-home-unified-raffle{max-height:62vh}}
@media(max-width:600px){.nc-sorteo-modal-backdrop.is-home-unified{padding:.5rem}.nc-sorteo-modal-panel.is-home-unified{max-width:calc(100vw - 1rem);margin:0;border-radius:17px}.nc-home-forum-promo-media,.nc-home-forum-promo-media img{min-height:250px}.nc-home-forum-overlay-copy{padding:1.25rem 1.25rem 1.5rem}.nc-home-forum-overlay-copy h2{font-size:2rem}.nc-home-forum-promo-copy{padding:1.35rem 1.25rem 1.5rem}.nc-sorteo-modal-header{padding:1.25rem 1.25rem 1rem}.nc-sorteo-logo-donor{gap:.75rem;align-items:flex-start}.nc-sorteo-logo-donor img{max-height:136px;max-width:345px}.nc-sorteo-donor-copy{min-width:0}.nc-sorteo-donor-copy strong{font-size:.9rem}.nc-sorteo-donor-copy small{font-size:.65rem}.nc-sorteo-prize-banner{height:220px;padding:.65rem}.nc-sorteo-prize-badge{left:1rem;bottom:1rem;font-size:.78rem}.nc-home-unified-raffle .nc-sorteo-modal-content{padding:1.4rem 1.25rem 1.8rem}.nc-sorteo-countdown-bar{align-items:flex-start;flex-direction:column;gap:.7rem}.nc-countdown-unit{min-width:3.2rem}.nc-countdown-unit strong{font-size:1.05rem}}
.nc-home-forum-promo-copy{justify-content:flex-start;overflow-y:auto;min-height:0}
.nc-home-forum-promo-copy small{margin-top:.85rem;padding-top:.35rem}
.nc-home-forum-action{margin-top:.7rem}
@media(max-width:860px){.nc-home-forum-promo{grid-template-columns:42% 58%;max-height:340px;overflow:hidden}.nc-home-forum-promo-media,.nc-home-forum-promo-media img{min-height:220px}.nc-home-forum-promo-copy{padding:1.05rem;overflow-y:auto}.nc-home-forum-promo-copy h2{margin:.3rem 0 .45rem}.nc-home-forum-promo-copy p{line-height:1.35}.nc-home-forum-action,.nc-home-forum-secondary{margin-top:.5rem}}
@media(max-width:600px){.nc-home-forum-promo{display:flex;max-height:none;overflow:visible}.nc-home-forum-promo-media,.nc-home-forum-promo-media img{min-height:170px;max-height:24vh}.nc-home-forum-promo-copy{max-height:230px;padding:.9rem 1.1rem 1rem;overflow-y:auto}.nc-home-forum-promo-copy h2{font-size:1.45rem}.nc-home-forum-promo-copy p{font-size:.74rem}.nc-home-forum-action,.nc-home-forum-invite{min-height:42px;margin-top:.45rem}.nc-home-forum-secondary{min-height:38px;margin-top:.4rem}.nc-home-forum-promo-copy small{margin-top:.55rem;padding-top:.2rem}}
