/**
 * Articulador3 - Estilos Premium v4.0
 * Diseño tipo "Leader of Leads"
 */

:root {
    /* Colores principales */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fff7ed;
    --secondary: #6366f1;
    --secondary-light: #eef2ff;

    /* Estados */
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --error-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;

    /* Neutros */
    --dark: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    /* Layout */
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #fef7ed 0%, #fff5eb 50%, #fefcfb 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER - Estilo Leader of Leads
═══════════════════════════════════════════════════════════════════════════ */
.main-header {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    gap: 1.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.03);
}

.header-logo {
    height: 44px;
    width: auto;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #222222;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-title .highlight {
    color: #222222;
}

.header-subtitle {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
}

/* ===== NAVEGACIÓN PILLS ===== */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: var(--gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-btn:hover {
    color: var(--gray-900);
    background: var(--white);
}

.nav-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-btn i {
    font-size: 0.95rem;
}

/* YouTube Nav Button */
.nav-btn-youtube.active {
    background: #dc2626;
}

/* ===== USER SECTION ===== */
.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.user-greeting i {
    color: var(--primary);
    font-size: 1.1rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--error-light);
    color: var(--error);
    border: 1px solid #fecaca;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECCIONES CON HEADER GRADIENTE
═══════════════════════════════════════════════════════════════════════════ */
.form-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

/* Header de sección con gradiente */
.section-header {
    background: linear-gradient(135deg, var(--primary), #ea580c);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.section-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges en header */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(4px);
}

.header-badge i {
    font-size: 0.7rem;
}

/* Contenido de sección */
.section-content {
    padding: 1.5rem;
}

/* Legacy h2 support */
.form-section > h2:first-child {
    background: linear-gradient(135deg, var(--primary), #ea580c);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
}

.form-section > h2:first-child::before {
    display: none;
}

.form-section > h2:first-child + * {
    padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULARIOS
═══════════════════════════════════════════════════════════════════════════ */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    min-width: 0;
    position: relative;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="url"],
input[type="date"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-800);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Estados de campos */
input[required],
select[required],
textarea[required] {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

input[required].filled,
select[required].filled,
textarea[required].filled,
input:not([required]).filled,
select:not([required]).filled,
textarea:not([required]).filled {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    border-color: #86efac !important;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    background: var(--white);
}

.radio-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-label.selected {
    border-color: var(--success);
    background: var(--success-light);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--success);
    background: var(--success);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-text strong {
    font-size: 0.9375rem;
    color: var(--gray-800);
    transition: color 0.2s;
}

.radio-label input[type="radio"]:checked ~ .radio-text strong {
    color: var(--success);
}

.radio-text small {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTONES
═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn.copied {
    background: linear-gradient(135deg, var(--success), #059669) !important;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.main-footer {
    margin-top: 2rem;
}

.footer-container {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--gray-200);
    border-bottom: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.footer-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}

.footer-brand-section {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.footer-logo i {
    font-size: 1.25rem;
    color: var(--primary);
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.footer-brand-name .highlight {
    color: var(--primary);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin: 0;
}

.footer-info-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.footer-stat i {
    color: var(--primary);
    font-size: 0.85rem;
}

.footer-stat strong {
    color: var(--gray-800);
    font-weight: 600;
}

.footer-divider {
    width: 1px;
    height: 14px;
    background: var(--gray-300);
}

.footer-copyright-section {
    text-align: center;
}

.footer-copyright-section p {
    color: var(--gray-400);
    font-size: 0.7rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS Y COMPONENTES ESPECIALES
═══════════════════════════════════════════════════════════════════════════ */

/* Section Header Row (para títulos con iconos a la derecha) */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header-row h2 {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.tutorial-icon {
    color: #dc2626;
    font-size: 1.5rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tutorial-icon:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.tutorial-icon.tutorial-icon-white {
    color: white !important;
}

.tutorial-icon.tutorial-icon-white:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Info boxes */
.section-info {
    background: var(--primary-light);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.section-info code {
    background: var(--white);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.8125rem;
}

/* Collapsible sections */
.collapsible .collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.collapsible .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
    background: var(--gray-100);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsible.collapsed .collapsible-content {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-spoke {
    background: #dbeafe;
    color: #1e40af;
}

.badge-pilar {
    background: #fef3c7;
    color: #92400e;
}

.badge-domain {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-intent {
    background: #d1fae5;
    color: #065f46;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROMPT OUTPUT & RESULTS
═══════════════════════════════════════════════════════════════════════════ */
.prompt-container {
    margin-bottom: 1.5rem;
}

.prompt-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#promptOutput {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-900);
    color: #e2e8f0;
    resize: vertical;
}

.summary-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.summary-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.summary-item label {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.summary-item span {
    font-size: 0.875rem;
    color: var(--gray-800);
}

.summary-item code {
    font-size: 0.8rem;
    background: var(--primary-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILIDADES
═══════════════════════════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--gray-200);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Error box */
.error-box {
    background: var(--error-light);
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.error-box h3 {
    color: var(--error);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.error-box ul {
    margin: 0 0 1rem 1.25rem;
    color: #991b1b;
}

/* Input wrapper con check icon */
.input-wrapper {
    position: relative;
}

.input-wrapper .check-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.input-wrapper .check-icon svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.input-wrapper.filled .check-icon {
    display: flex;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: translateY(-50%) scale(0); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

.input-wrapper input,
.input-wrapper select {
    padding-right: 44px;
}

/* Char/word count */
.char-count,
.word-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Field info */
.field-info {
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--gray-500);
}

.field-info code {
    background: var(--white);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    border: 1px solid var(--gray-200);
}

/* Video block */
.video-block {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.video-block:last-child {
    margin-bottom: 0;
}

.video-block h4 {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-user {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0.75rem;
    }

    .app-container {
        width: 100%;
    }

    .main-header {
        border-radius: var(--radius-lg);
        margin: 0 0 1rem;
    }

    .header-content {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .header-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-logo {
        height: 40px;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .header-nav {
        order: unset;
        padding: 0.25rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .header-user {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-greeting span {
        display: none;
    }

    .btn-logout span {
        display: none;
    }

    .form-section {
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
    }

    .section-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .section-content {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .radio-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .prompt-actions {
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .footer-info-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    input[type="text"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v5.0 - NUEVOS ESTILOS LEADER OF LEADS
═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

/* Layout Container */
.app-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 1.5rem;
}

.main-content {
    min-height: 50vh;
}

/* ===== NAVIGATION PILLS ===== */
.nav-pills {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: var(--gray-600);
    background: transparent;
}

.nav-pill:hover {
    color: var(--gray-900);
    background: var(--white);
}

.nav-pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-pill-youtube.active {
    background: #dc2626;
}

/* ===== USER INFO ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.user-info i {
    color: var(--primary);
    font-size: 1.25rem;
}

.user-name {
    color: var(--gray-700);
}

/* ===== SECTION CARD ===== */
.section-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-body {
    padding: 1.5rem;
}

/* Section Header Variations */
.section-header.youtube-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.section-header.summary-header,
.section-header.result-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.section-header.error-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.section-icon.youtube {
    background: rgba(255, 255, 255, 0.2);
}

.section-icon.success {
    background: rgba(255, 255, 255, 0.2);
}

.section-icon.error {
    background: rgba(255, 255, 255, 0.2);
}

.section-icon.accent {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== FORM CONTROLS ===== */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-800);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select.small {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-800);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-textarea.code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-textarea.large {
    min-height: 400px;
    background: var(--gray-900);
    color: #e2e8f0;
}

.form-textarea.small {
    min-height: 80px;
}

/* ===== RADIO CARDS ===== */
.radio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    background: var(--white);
}

.radio-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-card:has(input:checked) {
    border-color: var(--success);
    background: var(--success-light);
}

.radio-card input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--success);
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.radio-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.radio-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== BUTTON ROW ===== */
.btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-row.center {
    justify-content: center;
}

.btn-row.large-gap {
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ===== BUTTON VARIATIONS ===== */
.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-youtube {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-youtube:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ===== INFO BOX ===== */
.info-box {
    background: var(--primary-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.info-box ol {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.info-box li {
    margin-bottom: 0.375rem;
}

.info-box code {
    background: var(--white);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--primary-dark);
}

.info-highlight {
    margin-top: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    color: #065f46;
}

.info-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.info-text.small {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== PROGRESS CARD ===== */
.progress-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.progress-bar {
    flex: 1;
    min-width: 150px;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-item i {
    color: #22d3ee;
}

.stat-item strong {
    color: #67e8f9;
    font-family: monospace;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: #475569;
}

/* ===== ALERT ===== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.alert.visible {
    display: flex;
}

.alert.success,
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    display: flex;
}

.alert.warning,
.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    display: flex;
}

.alert.error,
.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: flex;
}

/* ===== MODE TABS ===== */
.mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.mode-tab {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.mode-tab:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.mode-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* ===== RESULTS PANEL ===== */
.results-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    display: none;
}

.results-panel.visible {
    display: block;
}

.results-panel.stored-panel {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

.results-title {
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.subsection-title {
    margin: 1rem 0 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* ===== BADGE ROW ===== */
.badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-gray {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.badge-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* ===== VIDEO LIST ===== */
.video-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.video-item:last-child {
    border-bottom: none;
}

.video-item:hover {
    background: #fef2f2;
}

.video-item.duplicate {
    background: var(--gray-100);
    opacity: 0.6;
}

.video-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.video-item.duplicate .video-number {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.video-link {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-link a {
    color: #ef4444;
    text-decoration: none;
}

.video-link a:hover {
    text-decoration: underline;
}

.video-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.video-type.short {
    background: #fef3c7;
    color: #92400e;
}

.video-type.video {
    background: #dbeafe;
    color: #1e40af;
}

.video-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.video-status.new {
    background: #dcfce7;
    color: #166534;
}

.video-status.duplicate {
    background: var(--gray-200);
    color: #4b5563;
}

/* ===== INLINE FORM ===== */
.inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-group.inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: none;
}

.form-group.inline .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

/* ===== PARSE PREVIEW ===== */
.parse-preview {
    font-size: 0.85rem;
    color: #047857;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== ERROR LIST ===== */
.error-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.error-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #991b1b;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.error-list li:last-child {
    border-bottom: none;
}

.error-list li i {
    color: #dc2626;
}

/* ===== RESULT META ===== */
.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.result-stats {
    display: flex;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== PREVIEW TITLE ===== */
.preview-title {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BLOCK TITLE ===== */
.block-title {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* ===== COLLAPSIBLE HEADER FOR SECTION CARDS ===== */
.section-card.collapsible .section-header {
    cursor: pointer;
    user-select: none;
}

.section-card.collapsible .toggle-icon {
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
}

.section-card.collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.section-card.collapsible.collapsed .collapsible-content {
    display: none;
}

/* ===== FOOTER NEW STRUCTURE ===== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand i {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SISTEMA DE BÚSQUEDA Y SELECCIÓN DE VÍDEOS v6.0
═══════════════════════════════════════════════════════════════════════════ */

/* Buscador de vídeos */
.video-search-box {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input-group .form-input {
    flex: 1;
}

.btn-small {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* Resultados de búsqueda */
.video-search-results {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.video-search-loading,
.video-search-error,
.video-search-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.video-search-loading i,
.video-search-error i,
.video-search-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.video-search-error {
    color: var(--error);
}

.video-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.video-results-header span {
    font-weight: 600;
    color: var(--success);
}

.video-results-header small {
    color: var(--gray-500);
}

.video-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Item de resultado de vídeo */
.video-result-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.video-result-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.video-result-item.selected {
    border-color: var(--success);
    background: var(--success-light);
}

.video-result-thumb {
    position: relative;
    width: 120px;
    min-width: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-result-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.video-type-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-result-info {
    flex: 1;
    min-width: 0;
}

.video-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.video-result-resumen {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-result-meta {
    display: flex;
    gap: 1rem;
}

.video-score {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 500;
}

.video-selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

/* Info box para adaptación */
.info-video-adaptation {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Contenedor de vídeos seleccionados */
#selectedVideosContainer {
    margin-top: 1.5rem;
}

#selectedVideosContainer .block-title {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#selectedVideosContainer .block-title i {
    color: var(--success);
}

/* Video block nuevo estilo */
.video-block {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 2px solid var(--gray-200);
}

.video-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.video-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.video-position {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.btn-clear-video {
    margin-left: auto;
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-clear-video:hover {
    background: var(--error-light);
    color: var(--error);
}

/* Preview de vídeo */
.video-preview {
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--white);
    border: 2px dashed var(--gray-300);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-preview.empty {
    flex-direction: column;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.video-preview.empty i {
    font-size: 1.5rem;
}

.video-preview:not(.empty) {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-light);
}

.video-preview-content {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.video-preview-thumb {
    width: 100px;
    min-width: 100px;
    height: auto;
    border-radius: var(--radius-sm);
}

.video-preview-info {
    flex: 1;
    min-width: 0;
}

.video-preview-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.video-preview-resumen {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.video-preview-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
}

/* Responsive para vídeos */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }

    .search-input-group .form-input,
    .search-input-group .btn {
        width: 100%;
    }

    .video-result-item {
        flex-direction: column;
    }

    .video-result-thumb {
        width: 100%;
    }

    .video-preview-content {
        flex-direction: column;
    }

    .video-preview-thumb {
        width: 100%;
        max-width: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PACK DE ARTÍCULOS - ESTILOS v7.0
═══════════════════════════════════════════════════════════════════════════ */

/* Pack Preview Container */
.pack-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--gray-200);
}

/* Header del pack preview con título y botón */
.pack-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pack-preview .preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.pack-preview .preview-title i {
    color: var(--success);
}

/* Acciones globales del pack (botón de asignación) */
.pack-global-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Lista de artículos del pack */
.pack-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cada artículo del pack */
.pack-article-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease;
}

.pack-article-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.pack-article-item.pilar {
    border-color: #10b981;
    border-left-width: 4px;
}

.pack-article-item.spoke {
    border-color: #3b82f6;
    border-left-width: 4px;
}

/* Header del artículo */
.pack-article-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    cursor: pointer;
}

.pack-article-item.pilar .pack-article-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
}

.pack-article-item.spoke .pack-article-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
}

/* Número del artículo */
.pack-article-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pack-article-item.pilar .pack-article-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.pack-article-item.spoke .pack-article-number {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Contenido principal */
.pack-article-main {
    flex: 1;
    min-width: 0;
}

.pack-article-type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.pack-article-item.pilar .pack-article-type {
    background: #dcfce7;
    color: #166534;
}

.pack-article-item.spoke .pack-article-type {
    background: #dbeafe;
    color: #1e40af;
}

.pack-article-keyword {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.pack-article-slug {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-family: 'Consolas', monospace;
}

/* Botón de toggle */
.pack-toggle-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
    flex-shrink: 0;
}

.pack-toggle-btn:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}

.pack-toggle-btn i {
    transition: transform 0.2s;
}

/* Variables del artículo (colapsable) */
.pack-article-variables {
    display: none;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.pack-article-variables.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

/* Cada variable */
.pack-var {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--success);
}

.pack-var-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pack-var-value {
    font-size: 0.875rem;
    color: var(--gray-800);
    word-break: break-word;
}

.pack-var-value.pack-var-url {
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    word-break: break-all;
}

/* Badge de intención */
.badge-intent {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

/* Progreso circular por artículo */
.pack-article-progress {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.pack-article-progress svg {
    display: block;
}

/* Item expandido */
.pack-article-item.expanded {
    box-shadow: var(--shadow-lg);
}

.pack-article-item.expanded .pack-toggle-btn {
    background: var(--gray-200);
}

/* Resumen del pack */
.pack-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: var(--radius-lg);
    border: 1px solid #86efac;
    font-size: 0.95rem;
}

.pack-summary-counts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pack-count {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.pack-count.pilar {
    background: #dcfce7;
    color: #166534;
}

.pack-count.pilar i {
    color: #16a34a;
}

.pack-count.spoke {
    background: #dbeafe;
    color: #1e40af;
}

.pack-count.spoke i {
    color: #3b82f6;
}

.pack-summary-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

.pack-summary-progress strong {
    color: #16a34a;
    font-size: 1.1rem;
}

/* Acciones del resumen del pack */
.pack-summary-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-assign-all-videos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    white-space: nowrap;
}

.btn-assign-all-videos:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-assign-all-videos i {
    font-size: 1rem;
}

/* Estado de campos completos/incompletos */
.pack-field-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
}

.field-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.field-indicator.filled {
    background: #dcfce7;
    color: #166534;
}

.field-indicator.filled i {
    color: #16a34a;
}

.field-indicator.empty {
    background: #fef2f2;
    color: #991b1b;
}

.field-indicator.empty i {
    color: #dc2626;
}

/* Variables faltantes warning */
.pack-missing-vars {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: var(--radius-md);
    border-left: 3px solid #f59e0b;
    font-size: 0.8rem;
    color: #92400e;
}

.pack-missing-vars i {
    margin-right: 0.375rem;
}

/* Sección de Videos en Pack */
.pack-var-section.video-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
}

.pack-var-section-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-var-section-title i {
    color: #dc2626;
}

.pack-var.video-var {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid #dc2626;
}

.pack-var.video-detail {
    padding-left: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.pack-var-value.pack-var-truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Indicador de video en badges */
.field-indicator.video-indicator {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.field-indicator.video-indicator i {
    color: #dc2626;
}

/* Checkbox de selección */
.pack-article-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.pack-article-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--success);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .pack-article-header {
        flex-wrap: wrap;
    }

    .pack-article-variables.expanded {
        grid-template-columns: 1fr;
    }

    .pack-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE VÍDEOS PARA PACK v7.1
═══════════════════════════════════════════════════════════════════════════ */

/* Botón de añadir videos en badges */
.field-indicator.video-add-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.field-indicator.video-add-btn:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.05);
}

.field-indicator.video-add-btn:hover i {
    color: white;
}

/* Modal de videos */
.pack-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.pack-video-modal.visible {
    display: flex;
}

.pack-video-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pack-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.pack-video-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-video-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pack-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pack-video-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.pack-video-search-box {
    margin-bottom: 1rem;
}

.pack-video-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Contenedor de videos seleccionados en el modal */
.pack-video-selected-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--gray-200);
}

.pack-video-selected-container h4 {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-video-selected-container h4 i {
    color: var(--success);
}

/* Slots de videos */
.pack-video-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pack-video-slot {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pack-video-slot.empty i {
    font-size: 1.5rem;
}

.pack-video-slot.filled {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-light);
    padding: 0;
    overflow: hidden;
}

.pack-video-slot-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pack-video-slot-content img {
    width: 100%;
    height: auto;
    display: block;
}

.pack-video-slot-info {
    padding: 0.5rem;
    background: white;
}

.pack-video-slot-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.3;
    display: block;
}

.pack-video-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pack-video-slot-remove:hover {
    background: #dc2626;
}

/* Responsive modal */
@media (max-width: 768px) {
    .pack-video-modal-content {
        max-height: 95vh;
    }

    .pack-video-slots {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SISTEMA DE VIDEOS INLINE PARA PACK
   ========================================== */

.pack-inline-video-section {
    grid-column: 1 / -1; /* Ocupa toda la fila */
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.pack-inline-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-inline-video-title {
    font-size: 14px;
    font-weight: 600;
    color: #ff0000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-inline-video-title i {
    font-size: 16px;
}

.btn-auto-match-inline {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-auto-match-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pack-inline-video-search {
    margin-bottom: 15px;
}

.pack-inline-search-row {
    display: flex;
    gap: 8px;
}

.pack-inline-search-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    transition: all 0.2s;
}

.pack-inline-search-input:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255, 255, 255, 0.08);
}

.pack-inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-search-inline {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-inline:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

/* Resultados de búsqueda inline */
.pack-inline-search-results {
    display: none;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.pack-inline-search-results.visible {
    display: block;
}

.pack-inline-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-inline-results-header span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-close-results {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-results:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pack-inline-results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.pack-inline-result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.pack-inline-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pack-inline-result-item.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.pack-inline-result-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.pack-inline-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-inline-selected-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #10b981;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pack-inline-result-title {
    padding: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estados de carga/error */
.pack-inline-loading,
.pack-inline-error,
.pack-inline-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.pack-inline-loading i {
    color: #ff0000;
    font-size: 18px;
    margin-right: 8px;
}

.pack-inline-error i {
    color: #ef4444;
}

.pack-inline-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* Slots de video inline */
.pack-inline-video-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pack-inline-video-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    min-height: 90px;
    transition: all 0.2s;
}

.pack-inline-video-slot.filled {
    background: rgba(16, 185, 129, 0.08);
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.3);
}

.pack-inline-video-slot.empty {
    border-color: rgba(255, 255, 255, 0.1);
}

.pack-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pack-slot-number {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pack-inline-video-slot.filled .pack-slot-number {
    color: #10b981;
}

.btn-remove-slot {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.btn-remove-slot:hover {
    background: #ef4444;
    color: white;
}

.pack-slot-content {
    display: flex;
    gap: 10px;
}

.pack-slot-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pack-slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-slot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pack-slot-info.full-width {
    width: 100%;
}

.pack-slot-title {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pack-slot-url {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pack-slot-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.pack-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.pack-slot-empty i {
    font-size: 20px;
    margin-bottom: 5px;
}

.pack-slot-empty span {
    font-size: 10px;
}

/* Responsive inline videos */
@media (max-width: 1200px) {
    .pack-inline-results-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1000px) {
    .pack-inline-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .pack-inline-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .pack-inline-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pack-inline-video-slots {
        grid-template-columns: 1fr;
    }

    .pack-slot-content {
        flex-direction: row;
    }
}

/* ===========================================
   SECCIÓN DE IMÁGENES EN PACK
   =========================================== */

.pack-inline-image-section {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2e1a 0%, #16213e 100%);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pack-inline-image-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-inline-image-title {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-inline-image-title i {
    font-size: 16px;
}

.pack-inline-image-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pack-image-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pack-image-label {
    min-width: 120px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.pack-image-input {
    flex: 1;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    font-size: 13px;
    transition: all 0.2s;
}

.pack-image-input::placeholder {
    color: #9ca3af;
}

.pack-image-input:focus {
    outline: none;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.pack-image-preview-icon {
    color: #10b981;
    font-size: 16px;
}

@media (max-width: 600px) {
    .pack-image-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pack-image-label {
        min-width: auto;
    }
}

/* Botón de información de imágenes */
.pack-image-info-btn {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.pack-image-info-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    transform: scale(1.1);
}

/* Modal de información de URLs de imágenes */
.image-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.image-info-modal-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.image-info-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.image-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 185, 129, 0.05);
}

.image-info-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-info-modal-header h3 i {
    font-size: 20px;
}

.image-info-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s;
}

.image-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.image-info-modal-content {
    padding: 24px;
}

.image-info-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.image-info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.image-info-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-info-section h4 i {
    color: #10b981;
}

.image-info-section p {
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.image-info-section ul,
.image-info-section ol {
    margin: 10px 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.image-info-section li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.image-info-section.highlight {
    background: rgba(16, 185, 129, 0.1);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 20px;
}

.image-info-code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #34d399;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin: 8px 0;
}

.image-info-code.error {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.05);
}

.image-info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px !important;
    margin-top: 8px !important;
}

.image-info-note i {
    font-size: 14px;
}

.image-info-note:not(.error) i {
    color: #10b981;
}

.image-info-note.error {
    color: #f87171 !important;
}

.image-info-note.error i {
    color: #f87171;
}

.image-info-section li code {
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #34d399;
}
