/* ---------- tools Button Section ---------- */
.tools-section {
    text-align: center;
    margin: 1rem 0;
}

.tools-btn {
    background: #000000;
    color: #00ff00;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    position: relative;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tools-btn::before {
    content: '● ● ●';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 3px 8px;
    background: #000000;
    color: #999;
    font-size: 10px;
    letter-spacing: 2px;
}

.tools-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.1) 1px,
        transparent 2px,
        transparent 100%
    );
    pointer-events: none;
    animation: scan-lines 8s linear infinite;
}

.tools-btn i {
    margin-right: 8px;
    color: #00ff00;
    animation: blink 1.5s ease infinite;
}

.tools-btn span {
    display: inline-block;
    padding-top: 15px;
}

.tools-btn:hover {
    background: #000000;
    color: #00ff00;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 8px #00ff00;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes scan-lines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@media (max-width: 768px) {
    .tools-btn {
        width: 180px;
        padding: 10px 20px;
    }
}

/* ---------- Popup Styles ---------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #2c3e50;
}

.popup-content h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-image-container {
    margin-bottom: 1.5rem;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.tools-preview {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.macbook-versions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.version-tab {
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #666;
    user-select: none;
    border: 1px solid transparent;
}

.version-tab:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.version-tab.active {
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-color: rgba(255,255,255,0.1);
}

.version-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-content.active {
    display: block;
    opacity: 1;
}

.version-content h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e1e1;
}

.instruction-method {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.instruction-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.instruction-method h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-method ol {
    margin-left: 1.5rem;
    color: #4a5568;
}

.instruction-method li {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.tools-tips {
    background: #fff8e5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tools-tips h4 {
    color: #b7791f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tools-tips ul {
    list-style: none;
    margin-left: 1rem;
}

.tools-tips li {
    color: #744210;
    margin: 0.5rem 0;
    position: relative;
}

.tools-tips li::before {
    content: "→";
    position: absolute;
    left: -1rem;
    color: #b7791f;
}

.key {
    background: #2c3e50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .popup-content {
        padding: 1rem;
        width: 98%;
        max-height: 90vh;
    }

    .tools-preview {
        max-width: 100%;
    }

    .instruction-method {
        padding: 0.8rem;
    }

    .macbook-versions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .version-tab {
        width: 100%;
        text-align: center;
    }

    h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.tools-popup {
  position: fixed;
  inset: 0;
  z-index: 9999; /* Asegura que esté por encima de todo */
  display: none;
  justify-content: center;
  align-items: flex-start; /* 👈 Importante: contenido arriba */
  padding: 60px 20px 20px; /* 👈 espacio desde arriba */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.popup-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-height: 95vh;
  overflow-y: auto;
}



.titulo-bypass {
    background-image: radial-gradient(circle farthest-corner at 6.3% 21.8%, rgba(236,6,117,1) 0%, rgba(13,32,67,1) 90%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    margin: 25px auto 15px;
    display: inline-block;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.video-wrapper {
    margin: 30px auto;
    max-width: 600px;
    width: 90%;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.video-frame {
    width: 100%;
    height: 350px;
    border: none;
}

