/* ==========================================================================
   AURAGEN BIO — Panel de Contactos y Promociones
   Estilos Administrativos Oficiales (Dark Mode Base + Soporte Light Mode)
   ========================================================================== */

:root {
    --negro-carbon: #050505;
    --negro-superficie: #0D0E11;
    --negro-elevado: #15161B;
    --negro-tarjeta: #1A1C23;
    --rojo-foil: #C8102E;
    --rojo-glow: rgba(200, 16, 46, 0.25);
    --rojo-hover: #E01335;
    --blanco-puro: #FFFFFF;
    --gris-texto: #9CA3AF;
    --gris-tenue: #6B7280;
    --borde-sutil: rgba(255, 255, 255, 0.08);
    --borde-hover: rgba(255, 255, 255, 0.16);
    --verde-exito: #10B981;
    --verde-glow: rgba(16, 185, 129, 0.2);
    --amarillo-aviso: #F59E0B;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radio-sm: 6px;
    --radio-md: 10px;
    --radio-lg: 16px;
    --sombra-tarjeta: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.light {
    --negro-carbon: #F3F4F6;
    --negro-superficie: #FFFFFF;
    --negro-elevado: #F9FAFB;
    --negro-tarjeta: #FFFFFF;
    --blanco-puro: #111827;
    --gris-texto: #4B5563;
    --gris-tenue: #9CA3AF;
    --borde-sutil: rgba(0, 0, 0, 0.09);
    --borde-hover: rgba(0, 0, 0, 0.18);
    --sombra-tarjeta: 0 10px 25px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--negro-carbon);
    color: var(--blanco-puro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Background Grid Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

body.light::before {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* TOP NAVBAR */
.admin-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(13, 14, 17, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borde-sutil);
    transition: background 0.3s ease, border-color 0.3s ease;
}
body.light .admin-navbar {
    background: rgba(255, 255, 255, 0.9);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blanco-puro);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-logo .dot {
    color: var(--rojo-foil);
}
.brand-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(200, 16, 46, 0.15);
    color: var(--rojo-foil);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* NAVIGATION TABS */
.nav-screen-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--negro-elevado);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--borde-sutil);
}
.screen-tab-btn {
    background: transparent;
    border: none;
    color: var(--gris-texto);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.screen-tab-btn.active {
    background: var(--rojo-foil);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--rojo-glow);
}
.screen-tab-btn:hover:not(.active) {
    color: var(--blanco-puro);
    background: rgba(255, 255, 255, 0.04);
}

/* TOP CONTROLS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-icon {
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    color: var(--blanco-puro);
    padding: 8px 12px;
    border-radius: var(--radio-sm);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-icon:hover {
    border-color: var(--borde-hover);
    background: var(--negro-tarjeta);
}

/* MAIN LAYOUT */
.admin-container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 60px;
    flex-grow: 1;
}

/* METRICS BAR (RESUMEN DE 3 CIFRAS) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
.metric-card {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--sombra-tarjeta);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--borde-hover);
}
.metric-info h4 {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gris-texto);
    margin-bottom: 6px;
}
.metric-info .metric-num {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blanco-puro);
}
.metric-info .metric-sub {
    font-size: 0.72rem;
    color: var(--gris-tenue);
    margin-top: 5px;
}
.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.icon-box-total { background: rgba(255, 255, 255, 0.05); color: var(--blanco-puro); }
.icon-box-email { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }
.icon-box-whatsapp { background: rgba(37, 211, 102, 0.12); color: #25D366; }

/* CONTROLS BAR (CONTACTS) */
.contacts-controls-bar {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.search-input-wrapper {
    position: relative;
    min-width: 260px;
}
.search-input-wrapper input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    color: var(--blanco-puro);
    font-family: var(--font-body);
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-input-wrapper input:focus {
    border-color: var(--rojo-foil);
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--gris-tenue);
    pointer-events: none;
}
.filter-select {
    padding: 9px 14px;
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    color: var(--blanco-puro);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}
.filter-select option {
    background: #111;
    color: #fff;
}
body.light .filter-select option {
    background: #fff;
    color: #111;
}

/* BUTTONS */
.btn {
    padding: 9px 16px;
    border-radius: var(--radio-sm);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--rojo-foil);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--rojo-hover);
    box-shadow: 0 4px 15px var(--rojo-glow);
}
.btn-secondary {
    background: var(--negro-elevado);
    color: var(--blanco-puro);
    border: 1px solid var(--borde-sutil);
}
.btn-secondary:hover {
    border-color: var(--borde-hover);
    background: var(--negro-tarjeta);
}
.btn-promo-action {
    background: linear-gradient(135deg, var(--rojo-foil) 0%, #850A1E 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--rojo-glow);
}
.btn-promo-action:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* TABLE SECTION (DESKTOP) */
.table-card {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    overflow: hidden;
    box-shadow: var(--sombra-tarjeta);
}
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.contacts-table th {
    background: var(--negro-elevado);
    color: var(--gris-texto);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--borde-sutil);
    white-space: nowrap;
}
.contacts-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--borde-sutil);
    color: var(--blanco-puro);
    vertical-align: middle;
}
.contacts-table tr:last-child td {
    border-bottom: none;
}
.contacts-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}
body.light .contacts-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* BADGES */
.badge-origin {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gris-texto);
    border: 1px solid var(--borde-sutil);
}
.badge-origin.cliente {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}
.badge-origin.promociones {
    background: rgba(200, 16, 46, 0.12);
    color: #F87171;
    border-color: rgba(200, 16, 46, 0.3);
}
.badge-origin.cotizacion {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.3);
}
.badge-origin.web {
    background: rgba(59, 130, 246, 0.12);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.3);
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
}
.channel-pill.active-email { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.channel-pill.active-wa { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.channel-pill.unsub { background: rgba(239, 68, 68, 0.12); color: #F87171; text-decoration: line-through; }
.channel-pill.none { background: rgba(255, 255, 255, 0.04); color: var(--gris-tenue); }

/* MOBILE CARDS */
.mobile-contacts-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 900px) {
    .table-card { display: none; }
    .mobile-contacts-list { display: flex; }
}
.mobile-contact-card {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 16px;
    box-shadow: var(--sombra-tarjeta);
}
.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.mobile-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}
.mobile-card-row {
    font-size: 0.82rem;
    color: var(--gris-texto);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mobile-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--borde-sutil);
}

/* PAGINATION */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--borde-sutil);
    font-size: 0.8rem;
    color: var(--gris-texto);
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-page {
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    color: var(--blanco-puro);
    cursor: pointer;
    font-size: 0.78rem;
}
.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   PANTALLA: ENVIAR PROMOCIÓN (7 PASOS)
   ========================================================================== */
.promo-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: start;
}
@media (max-width: 960px) {
    .promo-layout {
        grid-template-columns: 1fr;
    }
}

.promo-form-panel {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 24px;
    box-shadow: var(--sombra-tarjeta);
}
.step-section {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--borde-sutil);
}
.step-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rojo-foil);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-title {
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--blanco-puro);
}

/* Radio Cards / Tabs for Channel Selection */
.channel-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.channel-card-option {
    border: 2px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    padding: 14px;
    cursor: pointer;
    background: var(--negro-elevado);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.channel-card-option:hover {
    border-color: var(--borde-hover);
}
.channel-card-option.selected {
    border-color: var(--rojo-foil);
    background: rgba(200, 16, 46, 0.05);
}
.channel-icon {
    font-size: 1.5rem;
}
.channel-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
}
.channel-status-sub {
    font-size: 0.72rem;
    color: var(--gris-texto);
}

/* Audience Options */
.audience-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.audience-label-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    cursor: pointer;
    font-size: 0.84rem;
}
.audience-label-box input[type="radio"] {
    accent-color: var(--rojo-foil);
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    color: var(--blanco-puro);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-control:focus {
    border-color: var(--rojo-foil);
}
textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

/* PREVIEW PANEL */
.preview-sticky-panel {
    position: sticky;
    top: 90px;
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 22px;
    box-shadow: var(--sombra-tarjeta);
}
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--borde-sutil);
}
.preview-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanco-puro);
}

/* Audience Counter Box */
.audience-counter-box {
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
}
.counter-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.counter-row.final {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--borde-sutil);
    font-weight: 700;
    color: var(--rojo-foil);
    font-size: 0.9rem;
}

/* Live Simulator: Email */
.email-mockup-frame {
    background: #08080A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.82rem;
    color: #E5E7EB;
}
.mockup-header-bar {
    background: #121318;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: #9CA3AF;
}
.email-mockup-body {
    padding: 20px 18px;
}
.email-brand-banner {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.email-brand-banner span {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #FFFFFF;
}
.email-brand-banner .red { color: var(--rojo-foil); }
.email-mockup-subject {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}
.email-mockup-text {
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
    color: #D1D5DB;
}
.email-mockup-cta {
    display: inline-block;
    background: var(--rojo-foil);
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 22px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.email-mockup-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    font-size: 0.68rem;
    color: #6B7280;
    line-height: 1.4;
}

/* Live Simulator: WhatsApp */
.wa-mockup-frame {
    background: #0B141A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.82rem;
}
.wa-bubble {
    background: #005C4B;
    color: #E9EDEF;
    border-radius: 8px 8px 8px 2px;
    padding: 12px 14px;
    max-width: 90%;
    margin-bottom: 8px;
    line-height: 1.45;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.wa-bubble-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 4px;
}
.wa-template-pill {
    display: inline-block;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalPop 0.25s ease-out;
}
@keyframes modalPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--borde-sutil);
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blanco-puro);
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--gris-texto);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* HISTORIAL DE CAMPAÑAS */
.campaign-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 14px;
}
.campaign-history-table th {
    background: var(--negro-elevado);
    color: var(--gris-texto);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.campaign-history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--borde-sutil);
}

/* TOAST NOTIFICATIONS */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--negro-elevado);
    border: 1px solid var(--rojo-foil);
    color: var(--blanco-puro);
    padding: 14px 20px;
    border-radius: var(--radio-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   BLOQUE: IMAGEN Y ARCHIVOS (ENVÍO DE PROMOCIONES)
   ========================================================================== */
.files-upload-block {
    background: var(--negro-elevado);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-md);
    padding: 18px 20px;
    margin-top: 16px;
    transition: border-color 0.2s ease;
}

.upload-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.upload-block-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blanco-puro);
    display: flex;
    align-items: center;
    gap: 7px;
}
.upload-limits-badge {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borde-sutil);
    color: var(--gris-texto);
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}
body.light .upload-limits-badge {
    background: rgba(0, 0, 0, 0.04);
}

/* DROPZONE */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radio-sm);
    padding: 24px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--rojo-foil);
    background: rgba(200, 16, 46, 0.04);
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.1);
}
.upload-dropzone-icon {
    font-size: 1.8rem;
    color: var(--gris-texto);
    margin-bottom: 2px;
}
.upload-dropzone-text {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--blanco-puro);
}
.upload-dropzone-sub {
    font-size: 0.74rem;
    color: var(--gris-tenue);
}

/* Barra de progreso de carga */
.upload-progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
    display: none;
}
.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--rojo-foil);
    transition: width 0.3s ease;
}

/* Errores de carga */
.upload-error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: var(--radio-sm);
    font-size: 0.78rem;
    margin-top: 10px;
    display: none;
    align-items: flex-start;
    gap: 8px;
}

/* LISTA DE ARCHIVOS CARGADOS */
.uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.file-card {
    background: var(--negro-superficie);
    border: 1px solid var(--borde-sutil);
    border-radius: var(--radio-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.2s ease;
}
.file-card:hover {
    border-color: var(--borde-hover);
}
.file-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.file-thumb-container {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--borde-sutil);
}
.file-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-thumb-pdf-icon {
    font-size: 1.4rem;
    color: #F87171;
}
.file-meta-info {
    overflow: hidden;
}
.file-name-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blanco-puro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.file-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--gris-texto);
    margin-top: 3px;
}
.file-type-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--blanco-puro);
    text-transform: uppercase;
}
.file-type-badge.badge-img {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}
.file-type-badge.badge-pdf {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.file-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-file-action {
    background: transparent;
    border: 1px solid var(--borde-sutil);
    color: var(--gris-texto);
    font-size: 0.72rem;
    padding: 5px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-file-action:hover {
    color: var(--blanco-puro);
    border-color: var(--borde-hover);
    background: rgba(255, 255, 255, 0.05);
}
.btn-file-action.btn-remove:hover {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

/* OPCIONES DE UBICACIÓN DE IMAGEN (CORREO) */
.image-placement-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--borde-sutil);
}
.image-placement-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.image-placement-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.placement-pill-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--blanco-puro);
}
.placement-pill-label input[type="radio"] {
    accent-color: var(--rojo-foil);
}

/* ELEMENTOS EN VISTA PREVIA (SIMULADORES) */
.preview-inline-img-container {
    margin: 14px 0;
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
    max-height: 220px;
    background: #000;
}
.preview-inline-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
}
.preview-attachments-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-attachments-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.preview-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.72rem;
    color: #E5E7EB;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* AVISO DE INCOMPATIBILIDAD WHATSAPP */
.wa-incompatibility-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    padding: 10px 14px;
    border-radius: var(--radio-sm);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-top: 12px;
    display: none;
}
.wa-incompatibility-warning strong {
    color: #FDE68A;
}

