/* === assets/css/nt-replicator.css === */

/* === ESTILOS MODERNOS (SCOPE LOCAL) === 
   Se utilizan prefijos 'nt-modern-' para evitar conflictos con la página padre.
*/

:root {
    --nt-primary: #3b82f6; /* Azul moderno */
    --nt-primary-hover: #2563eb;
    --nt-bg-card: #1e293b; /* Slate 800 */
    --nt-bg-inner: #0f172a; /* Slate 900 */
    --nt-border: #334155;
    --nt-text-main: #e2e8f0;
    --nt-text-muted: #94a3b8;
    --nt-accent: #0ea5e9; /* Sky blue */
}

/* Contenedor principal que aisla los estilos */
.nt-modern-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--nt-text-main);
    max-width: 900px;
    margin: 0 auto;
}

/* Tarjeta principal con efecto sutil */
.nt-modern-card {
    background-color: var(--nt-bg-card);
    background-image: linear-gradient(to bottom right, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
    border: 1px solid var(--nt-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Encabezado */
.nt-modern-header {
    background: var(--nt-bg-inner);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--nt-border);
    position: relative;
}

.nt-modern-header h2 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    font-size: 1.75rem;
}

.nt-modern-header p {
    color: var(--nt-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Cuerpo de la tarjeta */
.nt-modern-body {
    padding: 40px;
}

/* Selector de Idioma */
.nt-lang-selector {
    text-align: center;
    padding: 20px 0;
}
.nt-lang-title {
    font-size: 1.2rem;
    color: var(--nt-text-muted);
    margin-bottom: 30px;
}

.nt-btn-lang {
    background: transparent;
    border: 2px solid var(--nt-border);
    color: var(--nt-text-main);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: inline-block;
    min-width: 160px;
}

.nt-btn-lang:hover {
    border-color: var(--nt-primary);
    background: rgba(59, 130, 246, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Botón Volver */
.nt-btn-back {
    background: transparent;
    border: 1px solid var(--nt-border);
    color: var(--nt-text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nt-btn-back:hover {
    background: var(--nt-border);
    color: #fff;
    text-decoration: none;
}

/* === TIMELINE / STEPPER AUTOMÁTICO === */
.nt-timeline {
    position: relative;
    padding-left: 20px;
    /* Inicializa el contador de pasos */
    counter-reset: step-counter; 
}

/* Línea vertical */
.nt-timeline::before {
    content: '';
    position: absolute;
    left: 19px; /* Ajuste centro círculo */
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--nt-border);
}

.nt-step {
    position: relative;
    padding-left: 50px; /* Espacio para el círculo */
    margin-bottom: 40px;
}

/* El círculo con el número */
.nt-step::before {
    /* Incrementa el contador automáticamente */
    counter-increment: step-counter;
    content: counter(step-counter);
    
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nt-bg-inner);
    border: 2px solid var(--nt-primary);
    color: var(--nt-primary);
    font-weight: bold;
    text-align: center;
    line-height: 36px; /* Centrado vertical */
    z-index: 2;
    box-shadow: 0 0 0 4px var(--nt-bg-card); /* Anillo externo para separar de la línea */
    font-size: 1.1rem;
}

/* Título del paso (opcional, extraído del texto) */
.nt-step-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--nt-text-main);
}

/* Resaltar texto importante */
.nt-step-content strong {
    color: #fff;
    font-weight: 700;
}

/* === BOTÓN DESCARGA === */
.nt-dl-wrapper {
    background: rgba(14, 165, 233, 0.1);
    border: 1px dashed rgba(14, 165, 233, 0.3);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 15px;
}

.nt-btn-download {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: white !important;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

.nt-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
}

/* === IMÁGENES === */
.nt-img-wrapper-center {
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.nt-img-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--nt-border);
    display: inline-block;
    background: #000;
    transition: border-color 0.3s;
}
.nt-img-container:hover {
    border-color: var(--nt-primary);
}
.nt-img-thumb {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.3s;
    cursor: zoom-in;
}
.nt-img-thumb:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* === ALERTA VIRUS / EDGE === */
.nt-alert-toggle-btn {
    background: #334155;
    color: #f1f5f9;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.nt-alert-toggle-btn:hover {
    background: #475569;
}
.nt-alert-toggle-btn::after {
    content: '▼';
    font-size: 0.8rem;
}

.nt-virus-box {
    background: rgba(245, 158, 11, 0.1); /* Amber tint */
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}
.nt-virus-text {
    color: #fbbf24; /* Amber 400 */
    margin: 0;
    font-size: 0.95rem;
}
.nt-virus-text strong {
    color: #fcd34d; /* Amber 300 */
}

/* Animaciones */
@keyframes ntFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nt-fade-in {
    animation: ntFadeIn 0.4s ease-out forwards;
}

/* Modal de Imagen */
.nt-modal-backdrop {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(5px);
}
.nt-modal-close {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    cursor: pointer;
}
.nt-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.nt-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--nt-border);
    background: #000;
    margin-top: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: border-color 0.3s;
}
.nt-video-container:hover {
    border-color: var(--nt-primary);
}
.nt-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Caja de Información (Azul) */
.nt-info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--nt-primary);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    color: var(--nt-text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}
.nt-info-icon {
    font-size: 1.5rem;
    filter: grayscale(0.2);
}

/* Variante de descarga Warning (Para herramientas opcionales) */
.nt-dl-wrapper.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}
.nt-btn-download.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.nt-btn-download.warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}